Example #1
0
 public void Read(IStarReader reader)
 {
     ReceivedMessage = new ChatReceivedMessage
     {
         Context = new MessageContext
         {
             Mode = (Mode)reader.ReadByte(),
             ChannelName = reader.ReadString()
         },
         ClientId = reader.ReadInt32(),
         FromNick = reader.ReadString(),
         Text = reader.ReadString()
     };
 }
Example #2
0
 public void Read(IStarReader reader)
 {
     Message = reader.ReadString();
     Mode = (SendMode)reader.ReadByte();
 }