Exemple #1
0
 public JT808GlobalConfig Register_0x0200_Attach(byte attachInfoId, Type jT808LocationAttach)
 {
     if (!JT808LocationAttachBase.JT808LocationAttachMethod.ContainsKey(attachInfoId))
     {
         JT808LocationAttachBase.AddJT808LocationAttachMethod(attachInfoId, jT808LocationAttach);
     }
     return(instance.Value);
 }
Exemple #2
0
 /// <summary>
 /// 注册自定义定位信息附加数据
 /// </summary>
 /// <typeparam name="TJT808LocationAttach"></typeparam>
 /// <param name="attachInfoId"></param>
 public JT808GlobalConfig Register_0x0200_Attach <TJT808LocationAttach>(byte attachInfoId)
     where TJT808LocationAttach : JT808LocationAttachBase
 {
     if (!JT808LocationAttachBase.JT808LocationAttachMethod.ContainsKey(attachInfoId))
     {
         JT808LocationAttachBase.AddJT808LocationAttachMethod <TJT808LocationAttach>(attachInfoId);
     }
     return(instance.Value);
 }
Exemple #3
0
 static JT808_0x0200Test()
 {
     JT808LocationAttachBase.AddJT808LocationAttachMethod <JT808LocationAttachImpl0x06>(0x06);
 }
Exemple #4
0
 public static void Register_JT808_0x0200_Attach <TJT808LocationAttach>(byte attachInfoId)
     where TJT808LocationAttach : JT808LocationAttachBase
 {
     JT808LocationAttachBase.AddJT808LocationAttachMethod <TJT808LocationAttach>(attachInfoId);
 }
 public static void RegisterJT808LocationAttach <TJT808LocationAttach>(byte sttachInfoId)
     where TJT808LocationAttach : JT808LocationAttachBase
 {
     JT808LocationAttachBase.AddJT808LocationAttachMethod <TJT808LocationAttach>(sttachInfoId);
 }