示例#1
0
        // private static void Detect()
        public IPSType GetIPSType(Guid regionGuid)
        {
            IPSType regionIPSType = new IPSType();

            regionIPSType = _navigationGraph.GetRegionIPSType(regionGuid);
            return(regionIPSType);
        }
示例#2
0
        public void ADDGPS(Guid regionGuid, List <Guid> waypointGuids)
        {
            IPSType ipsType = _navigationGraph.GetRegionIPSType(regionGuid);

            if (ipsType == IPSType.GPS)
            {
                _haveIPSKind[IPSType.GPS] = true;
            }
        }
示例#3
0
        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));
            }
        }
示例#4
0
        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
            }
        }
示例#5
0
        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);
            }
        }