@@ -13,7 +13,7 @@ public class ReactionsWithActivity
1313 {
1414 [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore , PropertyName = "results" ) ]
1515 public IEnumerable < Reaction > Reactions { get ; internal set ; }
16-
16+
1717 public EnrichedActivity Activity { get ; internal set ; }
1818 }
1919
@@ -73,7 +73,7 @@ public ReactionFiltering WithFilter(ReactionFilter filter)
7373 }
7474
7575 internal ReactionFiltering WithActivityData ( )
76- {
76+ {
7777 _filter = ( _filter == null ) ? ReactionFilter . Where ( ) . WithActivityData ( ) : _filter . WithActivityData ( ) ;
7878
7979 return this ;
@@ -178,7 +178,7 @@ internal static EnrichedActivity GetActivity(string json)
178178
179179 return null ;
180180 }
181- }
181+ }
182182
183183 internal Reactions ( StreamClient client )
184184 {
@@ -217,7 +217,7 @@ public async Task<Reaction> AddChild(Reaction parent, string kind, string userID
217217
218218 public async Task < Reaction > Get ( string reactionID )
219219 {
220- var request = this . _client . BuildJWTAppRequest ( $ "reaction/{ reactionID } /", HttpMethod . GET ) ;
220+ var request = this . _client . BuildAppRequest ( $ "reaction/{ reactionID } /", HttpMethod . GET ) ;
221221
222222 var response = await this . _client . MakeRequest ( request ) ;
223223
@@ -228,19 +228,19 @@ public async Task<Reaction> Get(string reactionID)
228228 }
229229
230230 public async Task < IEnumerable < Reaction > > Filter ( ReactionFiltering filtering , ReactionPagination pagination )
231- {
231+ {
232232 var response = await FilterHelper ( filtering , pagination ) ;
233233
234234 if ( response . StatusCode == System . Net . HttpStatusCode . OK )
235- {
235+ {
236236 return JsonConvert . DeserializeObject < ReactionsFilterResponse > ( response . Content ) . Reactions ;
237237 }
238238
239239 throw StreamException . FromResponse ( response ) ;
240240 }
241241
242242 public async Task < ReactionsWithActivity > FilterWithActivityData ( ReactionFiltering filtering , ReactionPagination pagination )
243- {
243+ {
244244 var response = await FilterHelper ( filtering . WithActivityData ( ) , pagination ) ;
245245
246246 if ( response . StatusCode == System . Net . HttpStatusCode . OK )
@@ -261,9 +261,9 @@ public async Task<ReactionsWithActivity> FilterWithActivityData(ReactionFilterin
261261 private async Task < RestResponse > FilterHelper ( ReactionFiltering filtering , ReactionPagination pagination )
262262 {
263263 var urlPath = pagination . GetPath ( ) ;
264- var request = this . _client . BuildJWTAppRequest ( $ "reaction/{ urlPath } ", HttpMethod . GET ) ;
264+ var request = this . _client . BuildAppRequest ( $ "reaction/{ urlPath } ", HttpMethod . GET ) ;
265265 filtering . Apply ( request ) ;
266-
266+
267267 var response = await this . _client . MakeRequest ( request ) ;
268268
269269 return response ;
@@ -278,7 +278,7 @@ public async Task<Reaction> Update(string reactionID, IDictionary<string, object
278278 TargetFeeds = targetFeeds
279279 } ;
280280
281- var request = this . _client . BuildJWTAppRequest ( $ "reaction/{ reactionID } /", HttpMethod . PUT ) ;
281+ var request = this . _client . BuildAppRequest ( $ "reaction/{ reactionID } /", HttpMethod . PUT ) ;
282282 request . SetJsonBody ( JsonConvert . SerializeObject ( r ) ) ;
283283
284284 var response = await this . _client . MakeRequest ( request ) ;
@@ -292,7 +292,7 @@ public async Task<Reaction> Update(string reactionID, IDictionary<string, object
292292
293293 public async Task Delete ( string reactionID )
294294 {
295- var request = this . _client . BuildJWTAppRequest ( $ "reaction/{ reactionID } /", HttpMethod . DELETE ) ;
295+ var request = this . _client . BuildAppRequest ( $ "reaction/{ reactionID } /", HttpMethod . DELETE ) ;
296296
297297 var response = await this . _client . MakeRequest ( request ) ;
298298
@@ -302,7 +302,7 @@ public async Task Delete(string reactionID)
302302
303303 private async Task < Reaction > Add ( Reaction r )
304304 {
305- var request = this . _client . BuildJWTAppRequest ( "reaction/" , HttpMethod . POST ) ;
305+ var request = this . _client . BuildAppRequest ( "reaction/" , HttpMethod . POST ) ;
306306 request . SetJsonBody ( JsonConvert . SerializeObject ( r ) ) ;
307307
308308 var response = await this . _client . MakeRequest ( request ) ;
0 commit comments