Class that represents a discovered beacon
Esempio n. 1
0
        private void NewBeacon(BeaconLocation newBeacon)
        {
            var newBeacons = currentBeacons
                             .Where(_ => !_.Equals(newBeacon))
                             .Concat(new [] { newBeacon })
                             .OrderBy(_ => _.Data)
                             .ThenBy(_ => _.Address, IPEndPointComparer.Instance)
                             .ToList();
            var u = BeaconsUpdated;

            u?.Invoke(newBeacons);
            currentBeacons = newBeacons;
        }
Esempio n. 2
0
 protected bool Equals(BeaconLocation other)
 {
     return(Equals(Address, other.Address));
 }
Esempio n. 3
0
 protected bool Equals(BeaconLocation other)
 {
     return Equals(Address, other.Address);
 }