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); }
public Java.Lang.Object Invoke(Java.Lang.Object p0) { IProximityAttachment attachment = (IProximityAttachment)p0; Log.Debug("app", $"MyEnterHandler"); return(null); }
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); }
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); }