void onLocationSuccessful(string str) { //成功回调 LocationBean mallscenicsbrandbean = JsonMapper.ToObject <LocationBean>(str); location(mallscenicsbrandbean); }
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); }
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); } }
/// <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. }