internal override void Update(Model model)
 {
     User = new RestUser(Client, model.User.Id);
     User.Update(model.User);
     base.Update(model);
 }
Exemple #2
0
        public static async Task <IReadOnlyCollection <RestUser> > GetEditorsAsync(BaseTwitchClient client, ulong channelId, RequestOptions options = null)
        {
            var model = await client.ApiClient.GetChannelEditorsAsync(channelId, options).ConfigureAwait(false);

            return(model.Users.Select(x => RestUser.Create(client, x)).ToArray());
        }