예제 #1
0
        internal static PubsubSimpleChannel Create(TwitchPubsubClient client, SubModel model)
        {
            var entity = new PubsubSimpleChannel(client, model.ChannelId);

            entity.Update(model);
            return(entity);
        }
예제 #2
0
        internal virtual void Update(Model model)
        {
            Channel = new PubsubSimpleChannel(Client, model.ChannelId);
            Channel.Update(model);
            User = new PubsubSimpleUser(Client, model.UserId);
            User.Update(model);

            BitsUsed      = model.BitsUsed;
            TotalBitsUsed = model.TotalBitsUsed;
            Context       = model.Context;
            Type          = model.MessageType;
            Version       = model.Version;
        }