Пример #1
0
 public void InsertMessage(string channelId, Message message)
 {
     if (widget.messages.ContainsKey(channelId))
     {
         setState(() => { widget.messages[channelId].Insert(0, message); });
     }
 }
Пример #2
0
 public Message(
     Models.Message Msg,
     Dictionary <string, User> Users,
     bool ShowTime,
     bool IsNew,
     DateTime CreateTime,
     Action OnBuild
     ) : base(key: new ObjectKey(Msg.id.isEmpty() ? Msg.id : Msg.nonce))
 {
     this.Msg        = Msg;
     this.Users      = Users;
     this.ShowTime   = ShowTime;
     this.IsNew      = IsNew;
     this.CreateTime = CreateTime;
     this.OnBuild    = OnBuild;
 }