Example #1
0
        public static async Task <RestChannelFollow> GetFollowAsync(BaseTwitchClient client, ulong userId, ulong channelId, RequestOptions options)
        {
            var model = await client.ApiClient.GetFollowAsync(userId, channelId, options).ConfigureAwait(false);

            return(RestChannelFollow.Create(client, model));
        }
Example #2
0
        // Follows
        public static async Task <IReadOnlyCollection <RestChannelFollow> > GetFollowsAsync(BaseTwitchClient client, ulong userId, SortMode sort, bool ascending, PageOptions paging = null, RequestOptions options = null)
        {
            var model = await client.ApiClient.GetFollowsAsync(userId, sort, ascending, paging, options).ConfigureAwait(false);

            return(model.Follows.Select(x => RestChannelFollow.Create(client, x)).ToArray());
        }