예제 #1
0
 public async Task <ClipCollection> GetFollowedClipsAsync(bool istrending, PageOptions paging, RequestOptions options)
 {
     paging  = PageOptions.CreateOrClone(paging);
     options = RequestOptions.CreateOrClone(options);
     return(await SendAsync <ClipCollection>(new GetFollowedClipsRequest(istrending, paging), options));
 }
예제 #2
0
 public async Task <VideoCollection> GetChannelVideosAsync(ulong channelId, PageOptions paging, RequestOptions options)
 {
     paging  = PageOptions.CreateOrClone(paging);
     options = RequestOptions.CreateOrClone(options);
     return(await SendAsync <VideoCollection>("GET", $"channels/{channelId}/videos", options).ConfigureAwait(false));
 }
예제 #3
0
 public async Task <VideoCollection> GetFollowedVideosAsync(string broadcastType, string language, string sort, PageOptions paging, RequestOptions options)
 {
     paging  = PageOptions.CreateOrClone(paging);
     options = RequestOptions.CreateOrClone(options);
     return(await SendAsync <VideoCollection>(new GetFollowedVideosRequest(broadcastType, language, sort, paging), options).ConfigureAwait(false));
 }
예제 #4
0
 public async Task <SubscriptionCollection> GetChannelSubscribersAsync(ulong channelId, bool ascending, PageOptions paging, RequestOptions options)
 {
     paging  = PageOptions.CreateOrClone(paging);
     options = RequestOptions.CreateOrClone(options);
     return(await SendAsync <SubscriptionCollection>(new GetSubscribersRequest(channelId, ascending, paging), options).ConfigureAwait(false));
 }
예제 #5
0
 public async Task <TeamCollection> GetTeamsAsync(PageOptions paging, RequestOptions options)
 {
     paging  = PageOptions.CreateOrClone(paging);
     options = RequestOptions.CreateOrClone(options);
     return(await SendAsync <TeamCollection>(new GetTeamsRequest(paging), options).ConfigureAwait(false));
 }
예제 #6
0
 public async Task <StreamCollection> FindStreamsAsync(string query, bool?hls, PageOptions paging, RequestOptions options)
 {
     paging  = PageOptions.CreateOrClone(paging);
     options = RequestOptions.CreateOrClone(options);
     return(await SendAsync <StreamCollection>(new FindStreamsRequest(query, hls, paging), options).ConfigureAwait(false));
 }
예제 #7
0
 public async Task <StreamCollection> GetFollowedStreamsAsync(StreamType type, PageOptions paging, RequestOptions options)
 {
     paging  = PageOptions.CreateOrClone(paging);
     options = RequestOptions.CreateOrClone(options);
     return(await SendAsync <StreamCollection>(new GetFollowedStreamsRequest(type, paging), options).ConfigureAwait(false));
 }
예제 #8
0
 public async Task <FollowCollection> GetFollowsAsync(ulong userId, SortMode sort, bool ascending, PageOptions paging, RequestOptions options)
 {
     paging  = PageOptions.CreateOrClone(paging);
     options = RequestOptions.CreateOrClone(options);
     return(await SendAsync <FollowCollection>(new GetFollowsRequest(userId, sort, ascending, paging), options).ConfigureAwait(false));
 }
예제 #9
0
 public async Task <CommunityCollection> GetCommunityTimeoutsAsync(string communityId, PageOptions paging, RequestOptions options)        // Paging is unused
 {
     paging  = PageOptions.CreateOrClone(paging);
     options = RequestOptions.CreateOrClone(options);
     return(await SendAsync <CommunityCollection>("GET", $"communities/{communityId}/timeouts", options).ConfigureAwait(false));
 }
예제 #10
0
 public async Task <ChannelCollection> FindChannelsAsync(string query, PageOptions paging, RequestOptions options)
 {
     paging  = PageOptions.CreateOrClone(paging);
     options = RequestOptions.CreateOrClone(options);
     return(await SendAsync <ChannelCollection>(new FindChannelsRequest(query, paging), options).ConfigureAwait(false));
 }