コード例 #1
0
        void onLocationSuccessful(string str)
        {
            //成功回调
            LocationBean mallscenicsbrandbean = JsonMapper.ToObject <LocationBean>(str);

            location(mallscenicsbrandbean);
        }
コード例 #2
0
ファイル: LostPackFormModel.cs プロジェクト: 287396159/WQWORK
        public override void reveData(byte[] buf, string ip)
        {
            if (buf.Length != 15 || buf[1] != 0x03)
            {
                return;
            }
            //reveDataCount++;
            loIntBean.LocationReve++;
            LocationBean loBean = new LocationBean(buf);

            LocationBeans.Add(loBean);
        }
コード例 #3
0
 void onNavigationInfo(string nextName, double x1, double y1, double x2, double y2)
 {
     if (Info != null)
     {
         LocationBean double1 = new LocationBean();
         double1.latitude  = x1;
         double1.longitude = y1;
         LocationBean double2 = new LocationBean();
         double2.latitude  = x2;
         double2.longitude = y2;
         Info(nextName, double1, double2);
     }
 }
コード例 #4
0
ファイル: LostPackFormModel.cs プロジェクト: 287396159/WQWORK
 /// <summary>
 /// 是否是丢包处理
 /// </summary>
 private void dealLost(LocationBean newLoBean)
 {
     /*List<LocationBean> dealLs = getNoDealLocationBean(newLoBean.TagId);
      * byte minIndex = getminIndex(newLoBean.TagId);
      * if (dealLs == null || dealLs.Count == 0) return;
      * // loIntBean
      * if (minIndex > newLoBean.MIndex && minIndex > 0xfe && newLoBean.MIndex < 0x05) {
      *  lostCountRe(dealLs, newLoBean.MIndex, 0xff);
      *  lostCountRe(dealLs, 0, newLoBean.MIndex);
      * }
      * else if (minIndex < newLoBean.MIndex)
      *  lostCountRe(dealLs,minIndex,newLoBean.MIndex);*/
     //loIntBean.
 }