Beispiel #1
0
 public void TestOddTPDA()
 {
     TPDA SUT = new TPDA();
     SUT.parse("05821235F5");
     Assert.AreEqual(5, SUT.NumberOfNibble);
     Assert.AreEqual("82", SUT.TON_NPI);
     Assert.AreEqual("1235F5", SUT.Address);
     Assert.AreEqual("21535", SUT.RealAddress);
 }
Beispiel #2
0
        public Data_0340(string val)
        {
            StringStack SS = new StringStack(val);
            TP_MTI = SS.getByte();
            TPOA = new TPDA();
            val = TPOA.parse(SS.getRemaining());

            SS = new StringStack(val);
            TP_PID = SS.getByte();
            TP_DCS = SS.getByte();
            TP_SCTS = SS.getBytes(7);

            UserData = new Data_0348(SS.getRemaining());
        }
Beispiel #3
0
        public Data_0340(string val)
        {
            StringStack SS = new StringStack(val);

            TP_MTI = SS.getByte();
            TPOA   = new TPDA();
            val    = TPOA.parse(SS.getRemaining());

            SS      = new StringStack(val);
            TP_PID  = SS.getByte();
            TP_DCS  = SS.getByte();
            TP_SCTS = SS.getBytes(7);

            UserData = new Data_0348(SS.getRemaining());
        }