コード例 #1
0
 internal override void Update(Model model)
 {
     User = new RestUser(Client, model.User.Id);
     User.Update(model.User);
     base.Update(model);
 }
コード例 #2
0
ファイル: ChannelHelper.cs プロジェクト: kouweizhong/NTwitch
        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());
        }