public Compatibility CheckServerCompatibility(string clientIdentification) { Assembly assembly = typeof(AbstractCommand).Assembly; FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location); var cmd = new CheckCompatibilityCommand() { ImplementedProtocolVersion = fvi.FileVersion, ClientIdentification = clientIdentification }; Send(cmd); var rsp = WaitAndReceive <CheckCompatibilityResponse>(); return(new Compatibility { Success = rsp.Success, AvailableGames = rsp.AvailableGames, ImplementedProtocolVersion = rsp.ImplementedProtocolVersion, Message = rsp.Message, MessageId = rsp.MessageId, ServerIdentification = rsp.ServerIdentification, SupportedLobbyTypes = rsp.SupportedLobbyTypes }); }
private static void CompareCheckCompatibilityCommand(CheckCompatibilityCommand c, CheckCompatibilityCommand dc) { Assert.AreEqual(c.ImplementedProtocolVersion, dc.ImplementedProtocolVersion); }
private static void CompareCheckCompatibilityCommand(CheckCompatibilityCommand c, CheckCompatibilityCommand dc) { Assert.AreEqual(c.ImplementedProtocolVersion,dc.ImplementedProtocolVersion); }