internal static RestStream Create(BaseRestClient client, Model model) { var entity = new RestStream(client, model.Id); entity.Update(model); return(entity); }
internal static RestGameSummary Create(Model model) { var entity = new RestGameSummary(); entity.Update(model); return(entity); }
internal virtual void Update(Model model) { Channel = new RestChannel(Client, model.Channel.Id); Channel.Update(model.Channel); CreatedAt = model.CreatedAt; Game = model.Game; Delay = model.Delay; Viewers = model.Viewers; VideoHeight = model.VideoHeight; AverageFps = model.AverageFps; IsPlaylist = model.IsPlaylist; Previews = model.Previews; }
internal virtual void Update(Model model) { Channels = model.Channels; Viewers = model.Viewers; }