public Java.Lang.Object Invoke(Java.Lang.Object p0)
        {
            try
            {
                var detectedBeacons = (Java.Util.AbstractCollection)p0;

                foreach (var item in detectedBeacons.ToArray())
                {
                    IProximityAttachment attachment = (IProximityAttachment)item;

                    Log.Debug("app", $"OnChangeZoneHandler: {attachment.DeviceId}");

                    if (zoneBeacons.Any(x => x == attachment.DeviceId))
                    {
                        this.model.LastReceivedEvent = new EstimoteZoneEvent(new DetectedBeacon(attachment.DeviceId, attachment.Payload), EstimoteZoneEventTypes.CHANGE);
                    }
                }
            }
            catch (Exception e)
            {
                Log.Debug("app", $"OnChangeZoneHandler-Error: {e}");
            }

            return(null);
        }
Beispiel #2
0
            public Java.Lang.Object Invoke(Java.Lang.Object p0)
            {
                IProximityAttachment attachment = (IProximityAttachment)p0;

                Log.Debug("app", $"MyEnterHandler");

                return(null);
            }
Beispiel #3
0
        public Java.Lang.Object Invoke(Java.Lang.Object p0)
        {
            IProximityAttachment attachment = (IProximityAttachment)p0;

            Log.Debug("app", $"OnExitZoneHandler: {attachment.DeviceId}");

            this.model.LastReceivedEventFromDefaultZone = new EstimoteZoneEvent(new DetectedBeacon(attachment.DeviceId, attachment.Payload), EstimoteZoneEventTypes.EXIT);

            return(null);
        }
Beispiel #4
0
        public Java.Lang.Object Invoke(Java.Lang.Object p0)
        {
            IProximityAttachment attachment = (IProximityAttachment)p0;

            Log.Debug("app", $"OnEnterZoneHandler: {attachment.DeviceId}");

            if (zoneBeacons.Any(x => x == attachment.DeviceId))
            {
                this.model.LastReceivedEvent = new EstimoteZoneEvent(new DetectedBeacon(attachment.DeviceId, attachment.Payload), EstimoteZoneEventTypes.ENTER);
            }

            return(null);
        }