@@ -13,8 +13,8 @@ namespace Stream
1313{
1414 public class StreamFeed : IStreamFeed
1515 {
16- static Regex _feedRegex = new Regex ( @"^\w+$" , RegexOptions . Compiled ) ;
17- static Regex _userRegex = new Regex ( @"^[-\w]+$" , RegexOptions . Compiled ) ;
16+ static readonly Regex _feedRegex = new Regex ( @"^\w+$" , RegexOptions . Compiled ) ;
17+ static readonly Regex _userRegex = new Regex ( @"^[-\w]+$" , RegexOptions . Compiled ) ;
1818
1919 readonly StreamClient _client ;
2020 readonly string _feedSlug ;
@@ -111,7 +111,7 @@ public async Task UpdateActivities(IEnumerable<Activity> activities)
111111 if ( activities . SafeCount ( ) > 100 )
112112 throw new ArgumentNullException ( "activities" , "Maximum length is 100" ) ;
113113
114- var request = _client . BuildActivitiesRequest ( this ) ;
114+ var request = _client . BuildActivitiesRequest ( ) ;
115115 request . SetJsonBody ( Activity . ToActivitiesJson ( activities , this . _client ) ) ;
116116
117117 var response = await _client . MakeRequest ( request ) ;
@@ -369,7 +369,7 @@ public Task UnfollowFeed(string targetFeedSlug, string targetUserId, bool keepHi
369369
370370 internal class FollowersResponse
371371 {
372- public IEnumerable < Follower > results { get ; set ; }
372+ public IEnumerable < Follower > Results { get ; set ; }
373373 }
374374
375375 public async Task < IEnumerable < Follower > > Followers ( int offset = 0 , int limit = 25 , string [ ] filterBy = null )
@@ -391,7 +391,7 @@ public async Task<IEnumerable<Follower>> Followers(int offset = 0, int limit = 2
391391 if ( response . StatusCode != System . Net . HttpStatusCode . OK )
392392 throw StreamException . FromResponse ( response ) ;
393393
394- return JsonConvert . DeserializeObject < FollowersResponse > ( response . Content ) . results ;
394+ return JsonConvert . DeserializeObject < FollowersResponse > ( response . Content ) . Results ;
395395 }
396396
397397 public async Task < IEnumerable < Follower > > Following ( int offset = 0 , int limit = 25 , string [ ] filterBy = null )
@@ -413,7 +413,7 @@ public async Task<IEnumerable<Follower>> Following(int offset = 0, int limit = 2
413413 if ( response . StatusCode != System . Net . HttpStatusCode . OK )
414414 throw StreamException . FromResponse ( response ) ;
415415
416- return JsonConvert . DeserializeObject < FollowersResponse > ( response . Content ) . results ;
416+ return JsonConvert . DeserializeObject < FollowersResponse > ( response . Content ) . Results ;
417417 }
418418
419419 private void ValidateFeedFollow ( IStreamFeed feed )
0 commit comments