public static byte[] CreatePacket(ChatPacket cp) { var json = JsonConvert.SerializeObject(cp); return(Encoding.ASCII.GetBytes(json)); }
public ChatEventArgs(PacketHeader header, ChatPacket body) : base(header) { SourceId = body.SourceId; ChatContent = body.ChatContent; }