Example #1
0
 /// <summary>
 /// 注册自定义数据下行透传信息
 /// </summary>
 /// <typeparam name="TJT808_0x8900_Ext"></typeparam>
 /// <param name="attachInfoId"></param>
 public JT808GlobalConfig Register_0x8900_Ext(byte passthroughType, Type jJT808_0x8900_Ext)
 {
     if (!JT808_0x8900_BodyBase.JT808_0x8900Method.ContainsKey(passthroughType))
     {
         JT808_0x8900_BodyBase.AddJT808_0x8900Method(passthroughType, jJT808_0x8900_Ext);
     }
     return(instance.Value);
 }
Example #2
0
 /// <summary>
 /// 注册自定义数据下行透传信息
 /// </summary>
 /// <typeparam name="TJT808_0x8900_Ext"></typeparam>
 /// <param name="attachInfoId"></param>
 public JT808GlobalConfig Register_0x8900_Ext <TJT808_0x8900_Ext>(byte passthroughType)
     where TJT808_0x8900_Ext : JT808_0x8900_BodyBase
 {
     if (!JT808_0x8900_BodyBase.JT808_0x8900Method.ContainsKey(passthroughType))
     {
         JT808_0x8900_BodyBase.AddJT808_0x8900Method <TJT808_0x8900_Ext>(passthroughType);
     }
     return(instance.Value);
 }