コード例 #1
0
 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;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public PDULandLineCommand(string from, string to, LandLineType landLineType, LandLineCommand cmd)
     : this(from, to, landLineType, cmd, "", 0)
 {
 }