public PDULandLineCommand(string from, string to, LandLineType landLineType, LandLineCommand cmd, string ip, int port) : base(from, to) { LandLineType = landLineType; Command = cmd; IP = ip; Port = port; }
private static bool LookupCommand(string identifier, out LandLineType landLineType, out LandLineCommand cmd) { bool found = false; landLineType = LandLineType.Override; cmd = LandLineCommand.Request; for (int i = 0; i < 3; i++) { for (int j = 0; j < 4; j++) { if (sCommandMap[i, j] == identifier) { landLineType = (LandLineType)i; cmd = (LandLineCommand)j; return(true); } } } return(found); }
public PDULandLineCommand(string from, string to, LandLineType landLineType, LandLineCommand cmd) : this(from, to, landLineType, cmd, "", 0) { }