Beispiel #1
0
        internal new static RestChannel Create(BaseRestClient client, Model model)
        {
            var entity = new RestChannel(client, model.Id);

            entity.Update(model);
            return(entity);
        }
Beispiel #2
0
 internal override void Update(Model model)
 {
     base.Update(model);
     Channels = model.Channels.Select(x =>
     {
         var entity = new RestChannel(Client, x.Id);
         entity.Update(x);
         return(entity);
     }).ToArray();
 }
Beispiel #3
0
        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 override void Update(Model model)
 {
     Channel = new RestChannel(Client, model.Channel.Id);
     Channel.Update(model.Channel);
     base.Update(model);
 }