Ejemplo n.º 1
0
        protected virtual Estimote.BeaconRegion ToNative(BeaconRegion region)
        {
            var uuid = new NSUuid(region.Uuid);

            Estimote.BeaconRegion native = null;

            if (region.Major > 0 && region.Minor > 0)
            {
                native = new Estimote.BeaconRegion(uuid, region.Major.Value, region.Minor.Value, region.Identifier);
            }

            else if (region.Major > 0)
            {
                native = new Estimote.BeaconRegion(uuid, region.Major.Value, region.Identifier);
            }

            else
            {
                native = new Estimote.BeaconRegion(uuid, region.Identifier);
            }

            native.NotifyEntryStateOnDisplay = true;
            native.NotifyOnEntry             = true;
            native.NotifyOnExit = true;

            return(native);
        }
Ejemplo n.º 2
0
 protected virtual BeaconRegion FromNative(Estimote.BeaconRegion native)
 {
     return(new BeaconRegion(
                native.Identifier,
                native.ProximityUuid.AsString(),
                native.Major.UInt16Value,
                native.Minor.UInt16Value
                ));
 }
Ejemplo n.º 3
0
        protected virtual Estimote.BeaconRegion ToNative(BeaconRegion region) {
			var uuid = new NSUuid(region.Uuid);
			Estimote.BeaconRegion native = null;

			if (region.Major > 0 && region.Minor > 0)
				native = new Estimote.BeaconRegion(uuid, region.Major.Value, region.Minor.Value, region.Identifier);

			else if (region.Major > 0)
				native = new Estimote.BeaconRegion(uuid, region.Major.Value, region.Identifier);

			else
				native = new Estimote.BeaconRegion(uuid, region.Identifier);

			native.NotifyEntryStateOnDisplay = true;
			native.NotifyOnEntry = true;
			native.NotifyOnExit = true;

			return native;
        }