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() }; }
public void Read(IStarReader reader) { Message = reader.ReadString(); Mode = (SendMode)reader.ReadByte(); }