Ejemplo n.º 1
0
 public Beacon(EstimoteSdk.Beacon beacon)
 {
     this.beacon = beacon;
     var prox = Utils.ComputeProximity(beacon);
     if (prox == Utils.Proximity.Far)
         this.Proximity = Proximity.Far;
     else if (prox == Utils.Proximity.Immediate)
         this.Proximity = Proximity.Immediate;
     else if (prox == Utils.Proximity.Near)
         this.Proximity = Proximity.Near;
     else
         this.Proximity = Proximity.Unknown;
 }
Ejemplo n.º 2
0
        public Beacon(EstimoteSdk.Beacon beacon)
        {
            this.beacon = beacon;
            var prox = Utils.ComputeProximity(beacon);

            if (prox == Utils.Proximity.Far)
            {
                this.Proximity = Proximity.Far;
            }
            else if (prox == Utils.Proximity.Immediate)
            {
                this.Proximity = Proximity.Immediate;
            }
            else if (prox == Utils.Proximity.Near)
            {
                this.Proximity = Proximity.Near;
            }
            else
            {
                this.Proximity = Proximity.Unknown;
            }
        }