@@ -3,10 +3,10 @@ using BenchmarkDotNet.Configs; | |||||
using BenchmarkDotNet.Environments; | using BenchmarkDotNet.Environments; | ||||
using BenchmarkDotNet.Jobs; | using BenchmarkDotNet.Jobs; | ||||
using BenchmarkDotNet.Toolchains.CsProj; | using BenchmarkDotNet.Toolchains.CsProj; | ||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.Enums; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
@@ -51,15 +51,15 @@ namespace JT809.Protocol.Benchmark | |||||
EncryptKey = 9999, | EncryptKey = 9999, | ||||
EncryptFlag = JT809Header_Encrypt.None, | EncryptFlag = JT809Header_Encrypt.None, | ||||
Version = new JT809Header_Version(1, 0, 0), | Version = new JT809Header_Version(1, 0, 0), | ||||
BusinessType = JT809Enums.JT809BusinessType.从链路报警信息交互消息, | |||||
BusinessType = JT809BusinessType.从链路报警信息交互消息, | |||||
MsgGNSSCENTERID = 20180920, | MsgGNSSCENTERID = 20180920, | ||||
}; | }; | ||||
JT809_0x9400 bodies = new JT809_0x9400 | JT809_0x9400 bodies = new JT809_0x9400 | ||||
{ | { | ||||
VehicleNo = "粤A12345", | VehicleNo = "粤A12345", | ||||
VehicleColor = JT809Enums.JT809VehicleColorType.黄色, | |||||
SubBusinessType = JT809Enums.JT809SubBusinessType.报警督办请求, | |||||
VehicleColor = JT809VehicleColorType.黄色, | |||||
SubBusinessType = JT809SubBusinessType.报警督办请求, | |||||
}; | }; | ||||
JT809_0x9400_0x9401 jT809_0x9400_0x9401 = new JT809_0x9400_0x9401 | JT809_0x9400_0x9401 jT809_0x9400_0x9401 = new JT809_0x9400_0x9401 | ||||
@@ -1,4 +1,5 @@ | |||||
using JT809.Protocol.Extensions.DependencyInjection.Options; | |||||
using JT809.Protocol.Configs; | |||||
using JT809.Protocol.Extensions.DependencyInjection.Options; | |||||
using Microsoft.Extensions.Configuration; | using Microsoft.Extensions.Configuration; | ||||
using Microsoft.Extensions.DependencyInjection; | using Microsoft.Extensions.DependencyInjection; | ||||
using Microsoft.Extensions.Hosting; | using Microsoft.Extensions.Hosting; | ||||
@@ -24,7 +25,7 @@ namespace JT809.Protocol.Extensions.DependencyInjection.Test | |||||
// 方式2: | // 方式2: | ||||
services.AddJT809Configure(new JT809Options | services.AddJT809Configure(new JT809Options | ||||
{ | { | ||||
HeaderOptions=new JT809Configs.JT809HeaderOptions { | |||||
HeaderOptions=new JT809HeaderOptions { | |||||
MsgGNSSCENTERID=20181012, | MsgGNSSCENTERID=20181012, | ||||
EncryptFlag= JT809Header_Encrypt.Common, | EncryptFlag= JT809Header_Encrypt.Common, | ||||
EncryptKey= 9999, | EncryptKey= 9999, | ||||
@@ -34,7 +35,7 @@ namespace JT809.Protocol.Extensions.DependencyInjection.Test | |||||
Build= 2 | Build= 2 | ||||
} | } | ||||
}, | }, | ||||
EncryptOptions = new JT809Configs.JT809EncryptOptions { | |||||
EncryptOptions = new JT809EncryptOptions { | |||||
M1= 10000000, | M1= 10000000, | ||||
IA1=20000000, | IA1=20000000, | ||||
IC1=30000000 | IC1=30000000 | ||||
@@ -3,9 +3,9 @@ using Microsoft.Extensions.DependencyInjection.Extensions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
using JT809.Protocol.JT809Configs; | |||||
using JT809.Protocol.Configs; | |||||
using Microsoft.Extensions.Configuration; | using Microsoft.Extensions.Configuration; | ||||
using JT809.Protocol.JT809Encrypt; | |||||
using JT809.Protocol.Encrypt; | |||||
using JT809.Protocol.Extensions.DependencyInjection.Options; | using JT809.Protocol.Extensions.DependencyInjection.Options; | ||||
using Microsoft.Extensions.Options; | using Microsoft.Extensions.Options; | ||||
@@ -1,4 +1,4 @@ | |||||
using JT809.Protocol.JT809Configs; | |||||
using JT809.Protocol.Configs; | |||||
using Microsoft.Extensions.Options; | using Microsoft.Extensions.Options; | ||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
@@ -1,10 +1,10 @@ | |||||
using JT809.Protocol.JT809Configs; | |||||
using JT809.Protocol.JT809Encrypt; | |||||
using JT809.Protocol.Configs; | |||||
using JT809.Protocol.Encrypt; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.Extensions; | |||||
namespace JT809.Protocol.Test.JT809Encrypt | namespace JT809.Protocol.Test.JT809Encrypt | ||||
{ | { | ||||
@@ -1,5 +1,5 @@ | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
@@ -3,9 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.Extensions; | |||||
using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
using System.Diagnostics; | using System.Diagnostics; | ||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test | namespace JT809.Protocol.Test | ||||
{ | { | ||||
@@ -17,7 +18,7 @@ namespace JT809.Protocol.Test | |||||
JT809Header jT809Header = new JT809Header(); | JT809Header jT809Header = new JT809Header(); | ||||
jT809Header.MsgLength = 24; | jT809Header.MsgLength = 24; | ||||
jT809Header.MsgSN = 1024; | jT809Header.MsgSN = 1024; | ||||
jT809Header.BusinessType = JT809Enums.JT809BusinessType.从链路静态信息交换消息; | |||||
jT809Header.BusinessType = JT809BusinessType.从链路静态信息交换消息; | |||||
jT809Header.MsgGNSSCENTERID = 1200; | jT809Header.MsgGNSSCENTERID = 1200; | ||||
jT809Header.Version = new JT809Header_Version(); | jT809Header.Version = new JT809Header_Version(); | ||||
jT809Header.EncryptFlag = JT809Header_Encrypt.None; | jT809Header.EncryptFlag = JT809Header_Encrypt.None; | ||||
@@ -34,7 +35,7 @@ namespace JT809.Protocol.Test | |||||
JT809Header jT809Header= JT809Serializer.Deserialize<JT809Header>(bytes); | JT809Header jT809Header= JT809Serializer.Deserialize<JT809Header>(bytes); | ||||
Assert.Equal((uint)24, jT809Header.MsgLength); | Assert.Equal((uint)24, jT809Header.MsgLength); | ||||
Assert.Equal((uint)1024, jT809Header.MsgSN); | Assert.Equal((uint)1024, jT809Header.MsgSN); | ||||
Assert.Equal(JT809Enums.JT809BusinessType.从链路静态信息交换消息, jT809Header.BusinessType); | |||||
Assert.Equal(JT809BusinessType.从链路静态信息交换消息, jT809Header.BusinessType); | |||||
Assert.Equal((uint)1200, jT809Header.MsgGNSSCENTERID); | Assert.Equal((uint)1200, jT809Header.MsgGNSSCENTERID); | ||||
Assert.Equal(new JT809Header_Version().ToString(), jT809Header.Version.ToString()); | Assert.Equal(new JT809Header_Version().ToString(), jT809Header.Version.ToString()); | ||||
Assert.Equal(JT809Header_Encrypt.None, jT809Header.EncryptFlag); | Assert.Equal(JT809Header_Encrypt.None, jT809Header.EncryptFlag); | ||||
@@ -61,7 +62,7 @@ namespace JT809.Protocol.Test | |||||
JT809Header jT809Header = new JT809Header(); | JT809Header jT809Header = new JT809Header(); | ||||
jT809Header.MsgLength = 24; | jT809Header.MsgLength = 24; | ||||
jT809Header.MsgSN = 1024; | jT809Header.MsgSN = 1024; | ||||
jT809Header.BusinessType = JT809Enums.JT809BusinessType.从链路静态信息交换消息; | |||||
jT809Header.BusinessType = JT809BusinessType.从链路静态信息交换消息; | |||||
jT809Header.MsgGNSSCENTERID = 1200; | jT809Header.MsgGNSSCENTERID = 1200; | ||||
jT809Header.Version = new JT809Header_Version (0xFF,0xAA,0xBB); | jT809Header.Version = new JT809Header_Version (0xFF,0xAA,0xBB); | ||||
jT809Header.EncryptFlag = JT809Header_Encrypt.None; | jT809Header.EncryptFlag = JT809Header_Encrypt.None; | ||||
@@ -3,9 +3,9 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
namespace JT809.Protocol.Test.JT809MessageBody | namespace JT809.Protocol.Test.JT809MessageBody | ||||
{ | { | ||||
@@ -3,9 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809MessageBody | namespace JT809.Protocol.Test.JT809MessageBody | ||||
{ | { | ||||
@@ -15,7 +16,7 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
public void Test1() | public void Test1() | ||||
{ | { | ||||
JT809_0x1002 jT809_0X1002 = new JT809_0x1002(); | JT809_0x1002 jT809_0X1002 = new JT809_0x1002(); | ||||
jT809_0X1002.Result = JT809Enums.JT809_0x1002_Result.成功; | |||||
jT809_0X1002.Result = JT809_0x1002_Result.成功; | |||||
jT809_0X1002.VerifyCode = 54456; | jT809_0X1002.VerifyCode = 54456; | ||||
var hex = JT809Serializer.Serialize(jT809_0X1002).ToHexString(); | var hex = JT809Serializer.Serialize(jT809_0X1002).ToHexString(); | ||||
//"00 00 00 D4 B8" | //"00 00 00 D4 B8" | ||||
@@ -27,7 +28,7 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
{ | { | ||||
var bytes = "00 00 00 D4 B8".ToHexBytes(); | var bytes = "00 00 00 D4 B8".ToHexBytes(); | ||||
JT809_0x1002 jT809_0X1002 = JT809Serializer.Deserialize<JT809_0x1002>(bytes); | JT809_0x1002 jT809_0X1002 = JT809Serializer.Deserialize<JT809_0x1002>(bytes); | ||||
Assert.Equal(JT809Enums.JT809_0x1002_Result.成功, jT809_0X1002.Result); | |||||
Assert.Equal(JT809_0x1002_Result.成功, jT809_0X1002.Result); | |||||
Assert.Equal((uint)54456, jT809_0X1002.VerifyCode); | Assert.Equal((uint)54456, jT809_0X1002.VerifyCode); | ||||
} | } | ||||
} | } | ||||
@@ -3,9 +3,9 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
namespace JT809.Protocol.Test.JT809MessageBody | namespace JT809.Protocol.Test.JT809MessageBody | ||||
{ | { | ||||
@@ -1,5 +1,5 @@ | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
@@ -1,7 +1,7 @@ | |||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
@@ -1,11 +1,12 @@ | |||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809MessageBody | namespace JT809.Protocol.Test.JT809MessageBody | ||||
{ | { | ||||
@@ -15,7 +16,7 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
public void Test1() | public void Test1() | ||||
{ | { | ||||
JT809_0x1007 jT809_0X1007 = new JT809_0x1007(); | JT809_0x1007 jT809_0X1007 = new JT809_0x1007(); | ||||
jT809_0X1007.ErrorCode = JT809Enums.JT809_0x1007_ErrorCode.主链路断开; | |||||
jT809_0X1007.ErrorCode = JT809_0x1007_ErrorCode.主链路断开; | |||||
var hex = JT809Serializer.Serialize(jT809_0X1007).ToHexString(); | var hex = JT809Serializer.Serialize(jT809_0X1007).ToHexString(); | ||||
Assert.Equal("00", hex); | Assert.Equal("00", hex); | ||||
} | } | ||||
@@ -25,7 +26,7 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
{ | { | ||||
var bytes = "00".ToHexBytes(); | var bytes = "00".ToHexBytes(); | ||||
JT809_0x1007 jT809_0X1007 = JT809Serializer.Deserialize<JT809_0x1007>(bytes); | JT809_0x1007 jT809_0X1007 = JT809Serializer.Deserialize<JT809_0x1007>(bytes); | ||||
Assert.Equal(JT809Enums.JT809_0x1007_ErrorCode.主链路断开, jT809_0X1007.ErrorCode); | |||||
Assert.Equal(JT809_0x1007_ErrorCode.主链路断开, jT809_0X1007.ErrorCode); | |||||
} | } | ||||
} | } | ||||
} | } |
@@ -1,11 +1,12 @@ | |||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809MessageBody | namespace JT809.Protocol.Test.JT809MessageBody | ||||
{ | { | ||||
@@ -15,7 +16,7 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
public void Test1() | public void Test1() | ||||
{ | { | ||||
JT809_0x1008 jT809_0X1008 = new JT809_0x1008(); | JT809_0x1008 jT809_0X1008 = new JT809_0x1008(); | ||||
jT809_0X1008.ReasonCode = JT809Enums.JT809_0x1008_ReasonCode.网关重启; | |||||
jT809_0X1008.ReasonCode = JT809_0x1008_ReasonCode.网关重启; | |||||
var hex = JT809Serializer.Serialize(jT809_0X1008).ToHexString(); | var hex = JT809Serializer.Serialize(jT809_0X1008).ToHexString(); | ||||
Assert.Equal("00", hex); | Assert.Equal("00", hex); | ||||
} | } | ||||
@@ -25,7 +26,7 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
{ | { | ||||
var bytes = "00".ToHexBytes(); | var bytes = "00".ToHexBytes(); | ||||
JT809_0x1008 jT809_0X1008 = JT809Serializer.Deserialize<JT809_0x1008>(bytes); | JT809_0x1008 jT809_0X1008 = JT809Serializer.Deserialize<JT809_0x1008>(bytes); | ||||
Assert.Equal(JT809Enums.JT809_0x1008_ReasonCode.网关重启, jT809_0X1008.ReasonCode); | |||||
Assert.Equal(JT809_0x1008_ReasonCode.网关重启, jT809_0X1008.ReasonCode); | |||||
} | } | ||||
} | } | ||||
} | } |
@@ -1,12 +1,13 @@ | |||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809MessageBody | namespace JT809.Protocol.Test.JT809MessageBody | ||||
{ | { | ||||
@@ -17,8 +18,8 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
{ | { | ||||
JT809_0x1200 jT809_0X1200 = new JT809_0x1200(); | JT809_0x1200 jT809_0X1200 = new JT809_0x1200(); | ||||
jT809_0X1200.VehicleNo= "粤A12345"; | jT809_0X1200.VehicleNo= "粤A12345"; | ||||
jT809_0X1200.VehicleColor = JT809Enums.JT809VehicleColorType.蓝色; | |||||
jT809_0X1200.SubBusinessType = JT809Enums.JT809SubBusinessType.上传车辆注册信息; | |||||
jT809_0X1200.VehicleColor = JT809VehicleColorType.蓝色; | |||||
jT809_0X1200.SubBusinessType = JT809SubBusinessType.上传车辆注册信息; | |||||
jT809_0X1200.DataLength = 61; | jT809_0X1200.DataLength = 61; | ||||
JT809_0x1200_0x1201 jT809_0X1200_0X1201 = new JT809_0x1200_0x1201 | JT809_0x1200_0x1201 jT809_0X1200_0X1201 = new JT809_0x1200_0x1201 | ||||
{ | { | ||||
@@ -41,8 +42,8 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
var bytes = "D4 C1 41 31 32 33 34 35 00 00 00 00 00 00 00 00 00 00 00 00 00 01 12 01 00 00 00 3D 00 00 00 00 00 00 00 42 3A 35 C7 00 00 00 00 00 00 00 42 3A 35 C7 31 31 31 31 31 31 31 31 00 00 00 00 00 00 00 00 00 00 00 00 31 31 31 31 31 41 41 32 32 32 32 32 32 32 32 32 32 32 32".ToHexBytes(); | var bytes = "D4 C1 41 31 32 33 34 35 00 00 00 00 00 00 00 00 00 00 00 00 00 01 12 01 00 00 00 3D 00 00 00 00 00 00 00 42 3A 35 C7 00 00 00 00 00 00 00 42 3A 35 C7 31 31 31 31 31 31 31 31 00 00 00 00 00 00 00 00 00 00 00 00 31 31 31 31 31 41 41 32 32 32 32 32 32 32 32 32 32 32 32".ToHexBytes(); | ||||
JT809_0x1200 jT809_0X9001 = JT809Serializer.Deserialize<JT809_0x1200>(bytes); | JT809_0x1200 jT809_0X9001 = JT809Serializer.Deserialize<JT809_0x1200>(bytes); | ||||
Assert.Equal("粤A12345", jT809_0X9001.VehicleNo); | Assert.Equal("粤A12345", jT809_0X9001.VehicleNo); | ||||
Assert.Equal(JT809Enums.JT809VehicleColorType.蓝色, jT809_0X9001.VehicleColor); | |||||
Assert.Equal(JT809Enums.JT809SubBusinessType.上传车辆注册信息, jT809_0X9001.SubBusinessType); | |||||
Assert.Equal(JT809VehicleColorType.蓝色, jT809_0X9001.VehicleColor); | |||||
Assert.Equal(JT809SubBusinessType.上传车辆注册信息, jT809_0X9001.SubBusinessType); | |||||
Assert.Equal((ushort)61, jT809_0X9001.DataLength); | Assert.Equal((ushort)61, jT809_0X9001.DataLength); | ||||
JT809_0x1200_0x1201 jT809_0X1200_0X1201 = jT809_0X9001.SubBodies as JT809_0x1200_0x1201; | JT809_0x1200_0x1201 jT809_0X1200_0X1201 = jT809_0X9001.SubBodies as JT809_0x1200_0x1201; | ||||
Assert.Equal("1111111111", jT809_0X1200_0X1201.PlateformId); | Assert.Equal("1111111111", jT809_0X1200_0X1201.PlateformId); | ||||
@@ -1,12 +1,13 @@ | |||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809MessageBody | namespace JT809.Protocol.Test.JT809MessageBody | ||||
{ | { | ||||
@@ -16,13 +17,13 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
public void Test1() | public void Test1() | ||||
{ | { | ||||
JT809_0x1300 jT809Bodies = new JT809_0x1300(); | JT809_0x1300 jT809Bodies = new JT809_0x1300(); | ||||
jT809Bodies.SubBusinessType = JT809Enums.JT809SubBusinessType.平台查岗应答; | |||||
jT809Bodies.SubBusinessType = JT809SubBusinessType.平台查岗应答; | |||||
jT809Bodies.SubBodies = new JT809_0x1300_0x1301 | jT809Bodies.SubBodies = new JT809_0x1300_0x1301 | ||||
{ | { | ||||
ObjectID="111", | ObjectID="111", | ||||
InfoContent= "22ha22", | InfoContent= "22ha22", | ||||
InfoID= 1234, | InfoID= 1234, | ||||
ObjectType= JT809Enums.JT809_0x1301_ObjectType.当前连接的下级平台 | |||||
ObjectType= JT809_0x1301_ObjectType.当前连接的下级平台 | |||||
}; | }; | ||||
var hex = JT809Serializer.Serialize(jT809Bodies).ToHexString(); | var hex = JT809Serializer.Serialize(jT809Bodies).ToHexString(); | ||||
//"13 01 00 00 00 1B 01 31 31 31 00 00 00 00 00 00 00 00 00 00 00 04 D2 00 00 00 06 32 32 68 61 32 32" | //"13 01 00 00 00 1B 01 31 31 31 00 00 00 00 00 00 00 00 00 00 00 04 D2 00 00 00 06 32 32 68 61 32 32" | ||||
@@ -34,12 +35,12 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
{ | { | ||||
var bytes = "13 01 00 00 00 1B 01 31 31 31 00 00 00 00 00 00 00 00 00 00 00 04 D2 00 00 00 06 32 32 68 61 32 32".ToHexBytes(); | var bytes = "13 01 00 00 00 1B 01 31 31 31 00 00 00 00 00 00 00 00 00 00 00 04 D2 00 00 00 06 32 32 68 61 32 32".ToHexBytes(); | ||||
JT809_0x1300 jT809Bodies = JT809Serializer.Deserialize<JT809_0x1300>(bytes); | JT809_0x1300 jT809Bodies = JT809Serializer.Deserialize<JT809_0x1300>(bytes); | ||||
Assert.Equal(JT809Enums.JT809SubBusinessType.平台查岗应答, jT809Bodies.SubBusinessType); | |||||
Assert.Equal(JT809SubBusinessType.平台查岗应答, jT809Bodies.SubBusinessType); | |||||
JT809_0x1300_0x1301 jT809SubBodies = (JT809_0x1300_0x1301)jT809Bodies.SubBodies; | JT809_0x1300_0x1301 jT809SubBodies = (JT809_0x1300_0x1301)jT809Bodies.SubBodies; | ||||
Assert.Equal("111", jT809SubBodies.ObjectID); | Assert.Equal("111", jT809SubBodies.ObjectID); | ||||
Assert.Equal("22ha22", jT809SubBodies.InfoContent); | Assert.Equal("22ha22", jT809SubBodies.InfoContent); | ||||
Assert.Equal((uint)1234, jT809SubBodies.InfoID); | Assert.Equal((uint)1234, jT809SubBodies.InfoID); | ||||
Assert.Equal(JT809Enums.JT809_0x1301_ObjectType.当前连接的下级平台, jT809SubBodies.ObjectType); | |||||
Assert.Equal(JT809_0x1301_ObjectType.当前连接的下级平台, jT809SubBodies.ObjectType); | |||||
} | } | ||||
} | } | ||||
} | } |
@@ -1,12 +1,13 @@ | |||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809MessageBody | namespace JT809.Protocol.Test.JT809MessageBody | ||||
{ | { | ||||
@@ -17,8 +18,8 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
{ | { | ||||
JT809_0x1600 jT809Bodies = new JT809_0x1600(); | JT809_0x1600 jT809Bodies = new JT809_0x1600(); | ||||
jT809Bodies.VehicleNo = "粤A12345"; | jT809Bodies.VehicleNo = "粤A12345"; | ||||
jT809Bodies.VehicleColor = JT809Enums.JT809VehicleColorType.蓝色; | |||||
jT809Bodies.SubBusinessType = JT809Enums.JT809SubBusinessType.补报车辆静态信息应答; | |||||
jT809Bodies.VehicleColor = JT809VehicleColorType.蓝色; | |||||
jT809Bodies.SubBusinessType = JT809SubBusinessType.补报车辆静态信息应答; | |||||
jT809Bodies.SubBodies = new JT809_0x1600_0x1601 | jT809Bodies.SubBodies = new JT809_0x1600_0x1601 | ||||
{ | { | ||||
CarInfo = "什么鬼" | CarInfo = "什么鬼" | ||||
@@ -34,8 +35,8 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
var bytes = "D4 C1 41 31 32 33 34 35 00 00 00 00 00 00 00 00 00 00 00 00 00 01 16 01 00 00 00 06 CA B2 C3 B4 B9 ED".ToHexBytes(); | var bytes = "D4 C1 41 31 32 33 34 35 00 00 00 00 00 00 00 00 00 00 00 00 00 01 16 01 00 00 00 06 CA B2 C3 B4 B9 ED".ToHexBytes(); | ||||
JT809_0x1600 jT809Bodies = JT809Serializer.Deserialize<JT809_0x1600>(bytes); | JT809_0x1600 jT809Bodies = JT809Serializer.Deserialize<JT809_0x1600>(bytes); | ||||
Assert.Equal("粤A12345", jT809Bodies.VehicleNo); | Assert.Equal("粤A12345", jT809Bodies.VehicleNo); | ||||
Assert.Equal(JT809Enums.JT809VehicleColorType.蓝色, jT809Bodies.VehicleColor); | |||||
Assert.Equal(JT809Enums.JT809SubBusinessType.补报车辆静态信息应答, jT809Bodies.SubBusinessType); | |||||
Assert.Equal(JT809VehicleColorType.蓝色, jT809Bodies.VehicleColor); | |||||
Assert.Equal(JT809SubBusinessType.补报车辆静态信息应答, jT809Bodies.SubBusinessType); | |||||
Assert.Equal("什么鬼", ((JT809_0x1600_0x1601)jT809Bodies.SubBodies).CarInfo); | Assert.Equal("什么鬼", ((JT809_0x1600_0x1601)jT809Bodies.SubBodies).CarInfo); | ||||
} | } | ||||
} | } | ||||
@@ -1,7 +1,7 @@ | |||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
@@ -1,11 +1,12 @@ | |||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809MessageBody | namespace JT809.Protocol.Test.JT809MessageBody | ||||
{ | { | ||||
@@ -15,7 +16,7 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
public void Test1() | public void Test1() | ||||
{ | { | ||||
JT809_0x9002 jT809_0X9002 = new JT809_0x9002(); | JT809_0x9002 jT809_0X9002 = new JT809_0x9002(); | ||||
jT809_0X9002.Result = JT809Enums.JT809_0x9002_Result.成功; | |||||
jT809_0X9002.Result = JT809_0x9002_Result.成功; | |||||
var hex = JT809Serializer.Serialize(jT809_0X9002).ToHexString(); | var hex = JT809Serializer.Serialize(jT809_0X9002).ToHexString(); | ||||
Assert.Equal("00", hex); | Assert.Equal("00", hex); | ||||
} | } | ||||
@@ -25,7 +26,7 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
{ | { | ||||
var bytes = "00".ToHexBytes(); | var bytes = "00".ToHexBytes(); | ||||
JT809_0x9002 jT809_0X9002 = JT809Serializer.Deserialize<JT809_0x9002>(bytes); | JT809_0x9002 jT809_0X9002 = JT809Serializer.Deserialize<JT809_0x9002>(bytes); | ||||
Assert.Equal(JT809Enums.JT809_0x9002_Result.成功, jT809_0X9002.Result); | |||||
Assert.Equal(JT809_0x9002_Result.成功, jT809_0X9002.Result); | |||||
} | } | ||||
} | } | ||||
} | } |
@@ -1,7 +1,7 @@ | |||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
@@ -1,11 +1,12 @@ | |||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809MessageBody | namespace JT809.Protocol.Test.JT809MessageBody | ||||
{ | { | ||||
@@ -15,7 +16,7 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
public void Test1() | public void Test1() | ||||
{ | { | ||||
JT809_0x9007 jT809_0X9007 = new JT809_0x9007(); | JT809_0x9007 jT809_0X9007 = new JT809_0x9007(); | ||||
jT809_0X9007.ReasonCode = JT809Enums.JT809_0x9007_ReasonCode.无法连接下级平台指定的服务IP与端口; | |||||
jT809_0X9007.ReasonCode = JT809_0x9007_ReasonCode.无法连接下级平台指定的服务IP与端口; | |||||
var hex = JT809Serializer.Serialize(jT809_0X9007).ToHexString(); | var hex = JT809Serializer.Serialize(jT809_0X9007).ToHexString(); | ||||
Assert.Equal("00", hex); | Assert.Equal("00", hex); | ||||
} | } | ||||
@@ -25,7 +26,7 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
{ | { | ||||
var bytes = "00".ToHexBytes(); | var bytes = "00".ToHexBytes(); | ||||
JT809_0x9007 jT809_0X9007 = JT809Serializer.Deserialize<JT809_0x9007>(bytes); | JT809_0x9007 jT809_0X9007 = JT809Serializer.Deserialize<JT809_0x9007>(bytes); | ||||
Assert.Equal(JT809Enums.JT809_0x9007_ReasonCode.无法连接下级平台指定的服务IP与端口, jT809_0X9007.ReasonCode); | |||||
Assert.Equal(JT809_0x9007_ReasonCode.无法连接下级平台指定的服务IP与端口, jT809_0X9007.ReasonCode); | |||||
} | } | ||||
} | } | ||||
} | } |
@@ -1,11 +1,12 @@ | |||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809MessageBody | namespace JT809.Protocol.Test.JT809MessageBody | ||||
{ | { | ||||
@@ -15,7 +16,7 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
public void Test1() | public void Test1() | ||||
{ | { | ||||
JT809_0x9008 jT809_0X9008 = new JT809_0x9008(); | JT809_0x9008 jT809_0X9008 = new JT809_0x9008(); | ||||
jT809_0X9008.ReasonCode = JT809Enums.JT809_0x9008_ReasonCode.其它原因; | |||||
jT809_0X9008.ReasonCode = JT809_0x9008_ReasonCode.其它原因; | |||||
var hex = JT809Serializer.Serialize(jT809_0X9008).ToHexString(); | var hex = JT809Serializer.Serialize(jT809_0X9008).ToHexString(); | ||||
Assert.Equal("01", hex); | Assert.Equal("01", hex); | ||||
} | } | ||||
@@ -25,7 +26,7 @@ namespace JT809.Protocol.Test.JT809MessageBody | |||||
{ | { | ||||
var bytes = "01".ToHexBytes(); | var bytes = "01".ToHexBytes(); | ||||
JT809_0x9008 jT809_0X9008 = JT809Serializer.Deserialize<JT809_0x9008>(bytes); | JT809_0x9008 jT809_0X9008 = JT809Serializer.Deserialize<JT809_0x9008>(bytes); | ||||
Assert.Equal(JT809Enums.JT809_0x9008_ReasonCode.其它原因, jT809_0X9008.ReasonCode); | |||||
Assert.Equal(JT809_0x9008_ReasonCode.其它原因, jT809_0X9008.ReasonCode); | |||||
} | } | ||||
} | } | ||||
} | } |
@@ -1,7 +1,7 @@ | |||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
@@ -3,9 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Encrypt; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Encrypt; | |||||
using JT809.Protocol.Enums; | |||||
using JT809.Protocol.Configs; | |||||
namespace JT809.Protocol.Test.JT809Packages | namespace JT809.Protocol.Test.JT809Packages | ||||
{ | { | ||||
@@ -13,7 +15,7 @@ namespace JT809.Protocol.Test.JT809Packages | |||||
{ | { | ||||
public JT809_0x1001EncryptPackageTest() | public JT809_0x1001EncryptPackageTest() | ||||
{ | { | ||||
JT809GlobalConfig.Instance.SetEncrypt(new JT809EncryptImpl(new JT809Configs.JT809EncryptOptions() | |||||
JT809GlobalConfig.Instance.SetEncrypt(new JT809EncryptImpl(new JT809EncryptOptions() | |||||
{ | { | ||||
IA1 = 20000000, | IA1 = 20000000, | ||||
IC1 = 20000000, | IC1 = 20000000, | ||||
@@ -30,7 +32,7 @@ namespace JT809.Protocol.Test.JT809Packages | |||||
EncryptFlag = JT809Header_Encrypt.Common, | EncryptFlag = JT809Header_Encrypt.Common, | ||||
MsgSN = 133, | MsgSN = 133, | ||||
EncryptKey = 256178, | EncryptKey = 256178, | ||||
BusinessType = JT809Enums.JT809BusinessType.主链路登录请求消息, | |||||
BusinessType = JT809BusinessType.主链路登录请求消息, | |||||
MsgGNSSCENTERID = 20180920, | MsgGNSSCENTERID = 20180920, | ||||
}; | }; | ||||
JT809_0x1001 jT809_0X1001 = new JT809_0x1001(); | JT809_0x1001 jT809_0X1001 = new JT809_0x1001(); | ||||
@@ -54,7 +56,7 @@ namespace JT809.Protocol.Test.JT809Packages | |||||
Assert.Equal((uint)72, jT809Package.Header.MsgLength); | Assert.Equal((uint)72, jT809Package.Header.MsgLength); | ||||
Assert.Equal((uint)133, jT809Package.Header.MsgSN); | Assert.Equal((uint)133, jT809Package.Header.MsgSN); | ||||
Assert.Equal((uint)20180920, jT809Package.Header.MsgGNSSCENTERID); | Assert.Equal((uint)20180920, jT809Package.Header.MsgGNSSCENTERID); | ||||
Assert.Equal(JT809Enums.JT809BusinessType.主链路登录请求消息, jT809Package.Header.BusinessType); | |||||
Assert.Equal(JT809BusinessType.主链路登录请求消息, jT809Package.Header.BusinessType); | |||||
Assert.Equal("1.0.0", jT809Package.Header.Version.ToString()); | Assert.Equal("1.0.0", jT809Package.Header.Version.ToString()); | ||||
JT809_0x1001 jT809_0X1001 = (JT809_0x1001)jT809Package.Bodies; | JT809_0x1001 jT809_0X1001 = (JT809_0x1001)jT809Package.Bodies; | ||||
Assert.Equal((uint)20180920, jT809_0X1001.UserId); | Assert.Equal((uint)20180920, jT809_0X1001.UserId); | ||||
@@ -3,8 +3,9 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809Packages | namespace JT809.Protocol.Test.JT809Packages | ||||
{ | { | ||||
@@ -18,7 +19,7 @@ namespace JT809.Protocol.Test.JT809Packages | |||||
{ | { | ||||
MsgSN= 133, | MsgSN= 133, | ||||
EncryptKey=9999, | EncryptKey=9999, | ||||
BusinessType= JT809Enums.JT809BusinessType.主链路登录请求消息, | |||||
BusinessType= JT809BusinessType.主链路登录请求消息, | |||||
MsgGNSSCENTERID= 20180920, | MsgGNSSCENTERID= 20180920, | ||||
}; | }; | ||||
JT809_0x1001 jT809_0X1001 = new JT809_0x1001(); | JT809_0x1001 jT809_0X1001 = new JT809_0x1001(); | ||||
@@ -54,7 +55,7 @@ namespace JT809.Protocol.Test.JT809Packages | |||||
Assert.Equal((uint)133, jT809Package.Header.MsgSN); | Assert.Equal((uint)133, jT809Package.Header.MsgSN); | ||||
Assert.Equal((uint)9999, jT809Package.Header.EncryptKey); | Assert.Equal((uint)9999, jT809Package.Header.EncryptKey); | ||||
Assert.Equal((uint)20180920, jT809Package.Header.MsgGNSSCENTERID); | Assert.Equal((uint)20180920, jT809Package.Header.MsgGNSSCENTERID); | ||||
Assert.Equal(JT809Enums.JT809BusinessType.主链路登录请求消息, jT809Package.Header.BusinessType); | |||||
Assert.Equal(JT809BusinessType.主链路登录请求消息, jT809Package.Header.BusinessType); | |||||
Assert.Equal(new JT809Header_Version().ToString(), jT809Package.Header.Version.ToString()); | Assert.Equal(new JT809Header_Version().ToString(), jT809Package.Header.Version.ToString()); | ||||
JT809_0x1001 jT809_0X1001 = (JT809_0x1001)jT809Package.Bodies; | JT809_0x1001 jT809_0X1001 = (JT809_0x1001)jT809Package.Bodies; | ||||
Assert.Equal((uint)20180920, jT809_0X1001.UserId); | Assert.Equal((uint)20180920, jT809_0X1001.UserId); | ||||
@@ -3,10 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
using JT809.Protocol.Configs; | |||||
namespace JT809.Protocol.Test.JT809Packages | namespace JT809.Protocol.Test.JT809Packages | ||||
{ | { | ||||
@@ -23,15 +24,15 @@ namespace JT809.Protocol.Test.JT809Packages | |||||
EncryptKey = 9999, | EncryptKey = 9999, | ||||
EncryptFlag= JT809Header_Encrypt.None, | EncryptFlag= JT809Header_Encrypt.None, | ||||
Version = new JT809Header_Version(1, 0, 0), | Version = new JT809Header_Version(1, 0, 0), | ||||
BusinessType = JT809Enums.JT809BusinessType.从链路报警信息交互消息, | |||||
BusinessType = JT809BusinessType.从链路报警信息交互消息, | |||||
MsgGNSSCENTERID = 20180920, | MsgGNSSCENTERID = 20180920, | ||||
}; | }; | ||||
JT809_0x9400 bodies = new JT809_0x9400 | JT809_0x9400 bodies = new JT809_0x9400 | ||||
{ | { | ||||
VehicleNo="粤A12345", | VehicleNo="粤A12345", | ||||
VehicleColor= JT809Enums.JT809VehicleColorType.黄色, | |||||
SubBusinessType= JT809Enums.JT809SubBusinessType.报警督办请求, | |||||
VehicleColor= JT809VehicleColorType.黄色, | |||||
SubBusinessType= JT809SubBusinessType.报警督办请求, | |||||
}; | }; | ||||
JT809_0x9400_0x9401 jT809_0x9400_0x9401 = new JT809_0x9400_0x9401 | JT809_0x9400_0x9401 jT809_0x9400_0x9401 = new JT809_0x9400_0x9401 | ||||
@@ -64,13 +65,13 @@ namespace JT809.Protocol.Test.JT809Packages | |||||
Assert.Equal((uint)9999, jT809Package.Header.EncryptKey); | Assert.Equal((uint)9999, jT809Package.Header.EncryptKey); | ||||
Assert.Equal(JT809Header_Encrypt.None, jT809Package.Header.EncryptFlag); | Assert.Equal(JT809Header_Encrypt.None, jT809Package.Header.EncryptFlag); | ||||
Assert.Equal((uint)20180920, jT809Package.Header.MsgGNSSCENTERID); | Assert.Equal((uint)20180920, jT809Package.Header.MsgGNSSCENTERID); | ||||
Assert.Equal(JT809Enums.JT809BusinessType.从链路报警信息交互消息, jT809Package.Header.BusinessType); | |||||
Assert.Equal(JT809BusinessType.从链路报警信息交互消息, jT809Package.Header.BusinessType); | |||||
Assert.Equal(new JT809Header_Version().ToString(), jT809Package.Header.Version.ToString()); | Assert.Equal(new JT809Header_Version().ToString(), jT809Package.Header.Version.ToString()); | ||||
JT809_0x9400 jT809_0X400 = (JT809_0x9400)jT809Package.Bodies; | JT809_0x9400 jT809_0X400 = (JT809_0x9400)jT809Package.Bodies; | ||||
Assert.Equal("粤A12345", jT809_0X400.VehicleNo); | Assert.Equal("粤A12345", jT809_0X400.VehicleNo); | ||||
Assert.Equal(JT809Enums.JT809VehicleColorType.黄色, jT809_0X400.VehicleColor); | |||||
Assert.Equal(JT809Enums.JT809SubBusinessType.报警督办请求, jT809_0X400.SubBusinessType); | |||||
Assert.Equal(JT809VehicleColorType.黄色, jT809_0X400.VehicleColor); | |||||
Assert.Equal(JT809SubBusinessType.报警督办请求, jT809_0X400.SubBusinessType); | |||||
Assert.Equal((uint)92, jT809_0X400.DataLength); | Assert.Equal((uint)92, jT809_0X400.DataLength); | ||||
JT809_0x9400_0x9401 jT809_0x9400_0x9401 = (JT809_0x9400_0x9401)jT809_0X400.SubBodies; | JT809_0x9400_0x9401 jT809_0x9400_0x9401 = (JT809_0x9400_0x9401)jT809_0X400.SubBodies; | ||||
@@ -88,7 +89,7 @@ namespace JT809.Protocol.Test.JT809Packages | |||||
[Fact] | [Fact] | ||||
public void Test3() | public void Test3() | ||||
{ | { | ||||
JT809GlobalConfig.Instance.SetHeaderOptions(new JT809Configs.JT809HeaderOptions | |||||
JT809GlobalConfig.Instance.SetHeaderOptions(new JT809HeaderOptions | |||||
{ | { | ||||
EncryptKey= 9999, | EncryptKey= 9999, | ||||
MsgGNSSCENTERID= 20180920 | MsgGNSSCENTERID= 20180920 | ||||
@@ -96,8 +97,8 @@ namespace JT809.Protocol.Test.JT809Packages | |||||
JT809Package jT809Package = JT809BusinessType.从链路报警信息交互消息.Create(new JT809_0x9400 | JT809Package jT809Package = JT809BusinessType.从链路报警信息交互消息.Create(new JT809_0x9400 | ||||
{ | { | ||||
VehicleNo = "粤A12345", | VehicleNo = "粤A12345", | ||||
VehicleColor = JT809Enums.JT809VehicleColorType.黄色, | |||||
SubBusinessType = JT809Enums.JT809SubBusinessType.报警督办请求, | |||||
VehicleColor = JT809VehicleColorType.黄色, | |||||
SubBusinessType = JT809SubBusinessType.报警督办请求, | |||||
SubBodies = new JT809_0x9400_0x9401 | SubBodies = new JT809_0x9400_0x9401 | ||||
{ | { | ||||
WarnSrc = JT809WarnSrc.车载终端, | WarnSrc = JT809WarnSrc.车载终端, | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,10 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -20,7 +21,7 @@ namespace JT809.Protocol.Test.JT809SubMessageBody | |||||
ObjectID = "111", | ObjectID = "111", | ||||
InfoContent = "22ha22", | InfoContent = "22ha22", | ||||
InfoID = 1234, | InfoID = 1234, | ||||
ObjectType = JT809Enums.JT809_0x1301_ObjectType.当前连接的下级平台 | |||||
ObjectType = JT809_0x1301_ObjectType.当前连接的下级平台 | |||||
}; | }; | ||||
var hex = JT809Serializer.Serialize(jT809_0x1300_0x1301).ToHexString(); | var hex = JT809Serializer.Serialize(jT809_0x1300_0x1301).ToHexString(); | ||||
//"01 31 31 31 00 00 00 00 00 00 00 00 00 00 00 04 D2 00 00 00 06 32 32 68 61 32 32" | //"01 31 31 31 00 00 00 00 00 00 00 00 00 00 00 04 D2 00 00 00 06 32 32 68 61 32 32" | ||||
@@ -35,7 +36,7 @@ namespace JT809.Protocol.Test.JT809SubMessageBody | |||||
Assert.Equal("111", jT809_0x1300_0x1301.ObjectID); | Assert.Equal("111", jT809_0x1300_0x1301.ObjectID); | ||||
Assert.Equal("22ha22", jT809_0x1300_0x1301.InfoContent); | Assert.Equal("22ha22", jT809_0x1300_0x1301.InfoContent); | ||||
Assert.Equal((uint)1234, jT809_0x1300_0x1301.InfoID); | Assert.Equal((uint)1234, jT809_0x1300_0x1301.InfoID); | ||||
Assert.Equal(JT809Enums.JT809_0x1301_ObjectType.当前连接的下级平台, jT809_0x1300_0x1301.ObjectType); | |||||
Assert.Equal(JT809_0x1301_ObjectType.当前连接的下级平台, jT809_0x1300_0x1301.ObjectType); | |||||
} | } | ||||
} | } | ||||
} | } |
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -18,7 +18,7 @@ namespace JT809.Protocol.Test.JT809SubMessageBody | |||||
{ | { | ||||
JT809_0x1400_0x1402 jT809_0x1400_0x1402 = new JT809_0x1400_0x1402 | JT809_0x1400_0x1402 jT809_0x1400_0x1402 = new JT809_0x1400_0x1402 | ||||
{ | { | ||||
WarnSrc= JT809Enums.JT809WarnSrc.车载终端, | |||||
WarnSrc= JT809WarnSrc.车载终端, | |||||
WarnType = JT809WarnType.偏离路线报警, | WarnType = JT809WarnType.偏离路线报警, | ||||
WarnTime=DateTime.Parse("2018-09-26"), | WarnTime=DateTime.Parse("2018-09-26"), | ||||
InfoContent = "gfdf454553", | InfoContent = "gfdf454553", | ||||
@@ -34,7 +34,7 @@ namespace JT809.Protocol.Test.JT809SubMessageBody | |||||
{ | { | ||||
var bytes = "01 00 0B 00 00 00 00 5B AA 5B 80 00 00 0D 10 00 00 00 0A 67 66 64 66 34 35 34 35 35 33".ToHexBytes(); | var bytes = "01 00 0B 00 00 00 00 5B AA 5B 80 00 00 0D 10 00 00 00 0A 67 66 64 66 34 35 34 35 35 33".ToHexBytes(); | ||||
JT809_0x1400_0x1402 jT809_0x1400_0x1402 = JT809Serializer.Deserialize<JT809_0x1400_0x1402>(bytes); | JT809_0x1400_0x1402 jT809_0x1400_0x1402 = JT809Serializer.Deserialize<JT809_0x1400_0x1402>(bytes); | ||||
Assert.Equal(JT809Enums.JT809WarnSrc.车载终端, jT809_0x1400_0x1402.WarnSrc); | |||||
Assert.Equal(JT809WarnSrc.车载终端, jT809_0x1400_0x1402.WarnSrc); | |||||
Assert.Equal("gfdf454553", jT809_0x1400_0x1402.InfoContent); | Assert.Equal("gfdf454553", jT809_0x1400_0x1402.InfoContent); | ||||
Assert.Equal(JT809WarnType.偏离路线报警, jT809_0x1400_0x1402.WarnType); | Assert.Equal(JT809WarnType.偏离路线报警, jT809_0x1400_0x1402.WarnType); | ||||
Assert.Equal((uint)3344, jT809_0x1400_0x1402.InfoID); | Assert.Equal((uint)3344, jT809_0x1400_0x1402.InfoID); | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,12 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
using JT809.Protocol.Metadata; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -19,7 +20,7 @@ namespace JT809.Protocol.Test.JT809SubMessageBody | |||||
JT809_0x1500_0x1502 jT809_0x1500_0x1502 = new JT809_0x1500_0x1502 | JT809_0x1500_0x1502 jT809_0x1500_0x1502 = new JT809_0x1500_0x1502 | ||||
{ | { | ||||
PhotoRspFlag= JT809_0x1502_PhotoRspFlag.完成拍照, | PhotoRspFlag= JT809_0x1502_PhotoRspFlag.完成拍照, | ||||
VehiclePosition=new JT809Properties.JT809VehiclePositionProperties | |||||
VehiclePosition=new JT809VehiclePositionProperties | |||||
{ | { | ||||
Encrypt= JT809_VehiclePositionEncrypt.未加密, | Encrypt= JT809_VehiclePositionEncrypt.未加密, | ||||
Day=19, | Day=19, | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,10 +3,10 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -3,11 +3,11 @@ using System.Collections.Generic; | |||||
using System.Text; | using System.Text; | ||||
using Xunit; | using Xunit; | ||||
using JT809.Protocol; | using JT809.Protocol; | ||||
using JT809.Protocol.JT809Extensions; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.JT809Exceptions; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Extensions; | |||||
using JT809.Protocol.MessageBody; | |||||
using JT809.Protocol.Exceptions; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using JT809.Protocol.Enums; | |||||
namespace JT809.Protocol.Test.JT809SubMessageBody | namespace JT809.Protocol.Test.JT809SubMessageBody | ||||
{ | { | ||||
@@ -1,6 +1,6 @@ | |||||
using System; | using System; | ||||
namespace JT809.Protocol.JT809Attributes | |||||
namespace JT809.Protocol.Attributes | |||||
{ | { | ||||
[AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)] | [AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)] | ||||
public sealed class JT809BodiesTypeAttribute : Attribute | public sealed class JT809BodiesTypeAttribute : Attribute |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Attributes | |||||
namespace JT809.Protocol.Attributes | |||||
{ | { | ||||
[AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)] | [AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)] | ||||
public sealed class JT809BusinessTypeDescriptionAttribute : Attribute | public sealed class JT809BusinessTypeDescriptionAttribute : Attribute |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Attributes | |||||
namespace JT809.Protocol.Attributes | |||||
{ | { | ||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false, Inherited = true)] | [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false, Inherited = true)] | ||||
public sealed class JT809FormatterAttribute:Attribute | public sealed class JT809FormatterAttribute:Attribute |
@@ -1,9 +1,9 @@ | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Enums; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Attributes | |||||
namespace JT809.Protocol.Attributes | |||||
{ | { | ||||
[AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)] | [AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)] | ||||
public sealed class JT809SubBusinessTypeDescriptionAttribute : Attribute | public sealed class JT809SubBusinessTypeDescriptionAttribute : Attribute |
@@ -1,4 +1,4 @@ | |||||
namespace JT809.Protocol.JT809Configs | |||||
namespace JT809.Protocol.Configs | |||||
{ | { | ||||
public class JT809EncryptOptions | public class JT809EncryptOptions | ||||
{ | { |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Configs | |||||
namespace JT809.Protocol.Configs | |||||
{ | { | ||||
public class JT809HeaderOptions | public class JT809HeaderOptions | ||||
{ | { |
@@ -1,6 +1,6 @@ | |||||
using JT809.Protocol.JT809Configs; | |||||
using JT809.Protocol.Configs; | |||||
namespace JT809.Protocol.JT809Encrypt | |||||
namespace JT809.Protocol.Encrypt | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// JT809 异或加密解密为同一算法 | /// JT809 异或加密解密为同一算法 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 报警标志 | /// 报警标志 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
[Flags] | [Flags] | ||||
public enum JT808_Status : uint | public enum JT808_Status : uint |
@@ -1,8 +1,8 @@ | |||||
using JT809.Protocol.JT809Attributes; | |||||
using JT809.Protocol.JT809MessageBody; | |||||
using JT809.Protocol.Attributes; | |||||
using JT809.Protocol.MessageBody; | |||||
using System.ComponentModel; | using System.ComponentModel; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 业务数据类型标识 | /// 业务数据类型标识 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 命令字ID | /// 命令字ID |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
public enum JT809ErrorCode | public enum JT809ErrorCode | ||||
{ | { |
@@ -1,8 +1,8 @@ | |||||
using JT809.Protocol.JT809Attributes; | |||||
using JT809.Protocol.JT809SubMessageBody; | |||||
using JT809.Protocol.Attributes; | |||||
using JT809.Protocol.SubMessageBody; | |||||
using System.ComponentModel; | using System.ComponentModel; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
///<summary> | ///<summary> | ||||
///子业务类型标识 | ///子业务类型标识 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 车辆颜色,按照 JT/T415-2006 中5.4.12 的规定 | /// 车辆颜色,按照 JT/T415-2006 中5.4.12 的规定 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 报警信息来源 | /// 报警信息来源 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 报警类型 | /// 报警类型 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 验证结果 | /// 验证结果 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 错误代码 | /// 错误代码 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 错误代码 | /// 错误代码 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 查岗对象的类型 | /// 查岗对象的类型 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 报警处理结果 | /// 报警处理结果 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 报警处理结果 | /// 报警处理结果 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 应答结果 | /// 应答结果 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 拍照应答标识 | /// 拍照应答标识 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 应答结果 | /// 应答结果 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 应答结果 | /// 应答结果 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 验证结果 | /// 验证结果 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 错误代码 | /// 错误代码 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 错误代码 | /// 错误代码 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 错误代码 | /// 错误代码 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 错误代码 | /// 错误代码 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 验证结果 | /// 验证结果 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 验证结果 | /// 验证结果 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 验证结果 | /// 验证结果 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 查岗对象的类型 | /// 查岗对象的类型 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 查岗对象的类型 | /// 查岗对象的类型 |
@@ -2,7 +2,7 @@ | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Enums | |||||
namespace JT809.Protocol.Enums | |||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// 定位信息是否使用国家测绘局批准的地图保密插件进行加密。 | /// 定位信息是否使用国家测绘局批准的地图保密插件进行加密。 |
@@ -1,9 +1,9 @@ | |||||
using JT809.Protocol.JT809Enums; | |||||
using JT809.Protocol.Enums; | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | using System.Text; | ||||
namespace JT809.Protocol.JT809Exceptions | |||||
namespace JT809.Protocol.Exceptions | |||||
{ | { | ||||
public class JT809Exception:Exception | public class JT809Exception:Exception | ||||
{ | { |