public static bool DeserializePing(IStreamReader stream, out PingCommand ping) { Timestamp remoteTime; TimestampDeserializer.DeserializeTimestamp(stream, out remoteTime); ping = new PingCommand(remoteTime); return(true); }
public static bool DeserializePong(IStreamReader stream, out PongCommand pong) { Timestamp remoteTime; TimestampDeserializer.DeserializeTimestamp(stream, out remoteTime); Timestamp echoedTime; TimestampDeserializer.DeserializeTimestamp(stream, out echoedTime); pong = new PongCommand(remoteTime, echoedTime); return(true); }