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

            entity.Update(model);
            return(entity);
        }
示例#2
0
        internal static RestGameSummary Create(Model model)
        {
            var entity = new RestGameSummary();

            entity.Update(model);
            return(entity);
        }
示例#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;
        }
示例#4
0
 internal virtual void Update(Model model)
 {
     Channels = model.Channels;
     Viewers  = model.Viewers;
 }