// private static void Detect() public IPSType GetIPSType(Guid regionGuid) { IPSType regionIPSType = new IPSType(); regionIPSType = _navigationGraph.GetRegionIPSType(regionGuid); return(regionIPSType); }
public void ADDGPS(Guid regionGuid, List <Guid> waypointGuids) { IPSType ipsType = _navigationGraph.GetRegionIPSType(regionGuid); if (ipsType == IPSType.GPS) { _haveIPSKind[IPSType.GPS] = true; } }
public void ADDLBeacon(Guid regionGuid, List <Guid> waypointGuids) { IPSType ipsType = _navigationGraph.GetRegionIPSType(regionGuid); if (ipsType == IPSType.LBeacon) { _haveIPSKind[IPSType.LBeacon] = true; _monitorLBeaconGuid.AddRange( FindTheMappingOfWaypointAndItsBeacon(regionGuid, waypointGuids)); } }
public void OpenCurrentIPSClient(IPSType currentIPSType) { switch (currentIPSType) { case IPSType.LBeacon: IsLBeaconType(); break; case IPSType.iBeacon: IsIBeaconType(); break; case IPSType.GPS: IsGPSType(); break; //TODO: if add new client, here needs to add } }
public void CompareToCurrentAndNextIPSType(Guid currentRegionGuid, Guid nextRegionGuid, int firstStep) { IPSType currentIPSType = _navigationGraph.GetRegionIPSType(currentRegionGuid); IPSType nextIPSType = _navigationGraph.GetRegionIPSType(nextRegionGuid); if (!nextIPSType.Equals(currentIPSType) || firstStep == _firstStep) { HaveBeaconAllFalse(); CloseStartAllExistClient(); OpenCurrentIPSClient(currentIPSType); OpenCurrentIPSClient(nextIPSType); } }