Beispiel #1
0
        public void Test1()
        {
            JT808_0x9201 jT808_0x9201 = new JT808_0x9201()
            {
                LogicChannelNo = 1,
                AVItemType     = 2,
                BeginTime      = Convert.ToDateTime("2019-07-16 10:10:10"),
                EndTime        = Convert.ToDateTime("2019-07-16 10:10:10"),
                FastForwardOrFastRewindMultiples = 3,
                MemType        = 5,
                PlayBackWay    = 6,
                ServerIp       = "127.0.0.1",
                ServerIpLength = 9,
                StreamType     = 7,
                TcpPort        = 80,
                UdpPort        = 8080
            };
            var hex = JT808Serializer.Serialize(jT808_0x9201).ToHexString();

            Assert.Equal("093132372E302E302E3100501F90010207050603190716101010190716101010", hex);
        }
Beispiel #2
0
        public void Test1()
        {
            JT808_0x9201 jT808_0x9201 = new JT808_0x9201()
            {
                ChannelNo      = 1,
                MediaType      = 2,
                BeginTime      = Convert.ToDateTime("2019-07-16 10:10:10"),
                EndTime        = Convert.ToDateTime("2019-07-16 10:10:10"),
                PlaySpeed      = 3,
                MemoryType     = 5,
                PlaybackWay    = 6,
                ServerIp       = "127.0.0.1",
                ServerIpLength = 9,
                StreamType     = 7,
                TcpPort        = 80,
                UdpPort        = 8080
            };
            var hex = JT808Serializer.Serialize(jT808_0x9201).ToHexString();

            Assert.Equal("093132372E302E302E3100501F90010207050603190716101010190716101010", hex);
        }