internal new static RestSelfChannel Create(BaseTwitchClient client, Model model) { var entity = new RestSelfChannel(client, model.Id); entity.Update(model); return(entity); }
internal static RestSimpleChannel Create(BaseRestClient client, Model model) { var entity = new RestSimpleChannel(client, model.Id); entity.Update(model); return(entity); }
internal override void Update(Model model) { CreatedAt = model.CreatedAt; UpdatedAt = model.UpdatedAt; Status = model.Status; BroadcasterLanguage = model.BroadcasterLanguage; Game = model.Game; Language = model.Language; LogoUrl = model.LogoUrl; VideoBannerUrl = model.VideoBannerUrl; ProfileBannerUrl = model.ProfileBannerUrl; ProfileBannerBackgroundColor = model.ProfileBannerBackgroundColor; Url = model.Url; IsMature = model.IsMature == true; IsPartner = model.IsPartner == true; Views = model.Views; Followers = model.Followers; base.Update(model); }
internal override void Update(Model model) { Email = model?.Email ?? Email; StreamKey = model.StreamKey; base.Update(model); }
internal virtual void Update(Model model) { DisplayName = model.DisplayName; Name = model.Name; }