Пример #1
0
        internal static RestVideo Create(BaseTwitchClient client, Model model)
        {
            var entity = new RestVideo(client, model.Id);

            entity.Update(model);
            return(entity);
        }
Пример #2
0
        public static async Task ModifyAsync(RestVideo video, Action <ModifyVideoParams> changes, RequestOptions options)
        {
            var modify = new ModifyVideoParams();

            changes.Invoke(modify);

            var model = await video.Client.ApiClient.ModifyVideoAsync(video.Id, modify, options);

            video.Update(model);
        }