Exemplo n.º 1
0
        internal static ChatSimpleChannel Create(TwitchChatClient client, MsgEventModel model)
        {
            var entity = new ChatSimpleChannel(client, model.ChannelId);

            entity.Update(model);
            return(entity);
        }
Exemplo n.º 2
0
        internal virtual void Update(Model model)
        {
            CreatedAt    = model.SentTimestamp;
            TmiCreatedAt = model.TmiSentTimestamp;
            Badges       = model.Badges;
            Emotes       = model.Emotes;
            Content      = model.Content;

            Channel = ChatSimpleChannel.Create(Client, model);
            User    = ChatUser.Create(Client, model);
        }