public static Message GetMessage(byte[] data) { return(JsonConvert.DeserializeObject <Message>(Encoding.ASCII.GetString(data), CLanJSON.Settings())); }
public byte[] ToByteArray() { return(Encoding.ASCII.GetBytes(JsonConvert.SerializeObject(this, CLanJSON.Settings()))); }