internal static RestBlockedUser Create(BaseRestClient client, Model model) { var entity = new RestBlockedUser(client, model.Id); entity.Update(model); return(entity); }
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()); }