Example #1
0
        public static byte[] CreatePacket(ChatPacket cp)
        {
            var json = JsonConvert.SerializeObject(cp);

            return(Encoding.ASCII.GetBytes(json));
        }
Example #2
0
 public ChatEventArgs(PacketHeader header, ChatPacket body)
     : base(header)
 {
     SourceId    = body.SourceId;
     ChatContent = body.ChatContent;
 }
Example #3
0
 public ChatEventArgs(PacketHeader header, ChatPacket body)
     : base(header)
 {
     SourceId = body.SourceId;
     ChatContent = body.ChatContent;
 }