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