internal static ChatSimpleChannel Create(TwitchChatClient client, MsgEventModel model) { var entity = new ChatSimpleChannel(client, model.ChannelId); entity.Update(model); return(entity); }
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); }