public static void SendHand(MessageHand message) { string jsonMessage = JsonConvert.SerializeObject(message); SendMessage(jsonMessage); }
public static void ReceiveHand(string message) { MessageHand msg = JsonConvert.DeserializeObject <MessageHand>(message); GameFlowControl.ReceiveHand(msg); }