예제 #1
0
        internal static RestBlockedUser Create(BaseRestClient client, Model model)
        {
            var entity = new RestBlockedUser(client, model.Id);

            entity.Update(model);
            return(entity);
        }
예제 #2
0
        public static async Task <IReadOnlyCollection <RestBlockedUser> > GetBlocksAsync(BaseTwitchClient client, ulong userId, PageOptions paging, RequestOptions options)
        {
            var model = await client.ApiClient.GetUserBlocksAsync(userId, paging, options).ConfigureAwait(false);

            return(model.Blocks.Select(x => RestBlockedUser.Create(client, x)).ToArray());
        }