Exemplo n.º 1
0
        /// <inheritdoc />
        public bool Equals([AllowNull] MapBox other)
        {
            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Domain == other.Domain ||
                     Domain != null &&
                     Domain.Equals(other.Domain)
                     ) &&
                 (
                     AccessToken == other.AccessToken ||
                     AccessToken != null &&
                     AccessToken.Equals(other.AccessToken)
                 ) &&
                 (
                     Style == other.Style ||
                     Style != null &&
                     Style.Equals(other.Style)
                 ) &&
                 (
                     Center == other.Center ||
                     Center != null &&
                     Center.Equals(other.Center)
                 ) &&
                 (
                     Zoom == other.Zoom ||
                     Zoom != null &&
                     Zoom.Equals(other.Zoom)
                 ) &&
                 (
                     Bearing == other.Bearing ||
                     Bearing != null &&
                     Bearing.Equals(other.Bearing)
                 ) &&
                 (
                     Pitch == other.Pitch ||
                     Pitch != null &&
                     Pitch.Equals(other.Pitch)
                 ) &&
                 (
                     Equals(Layers, other.Layers) ||
                     Layers != null && other.Layers != null &&
                     Layers.SequenceEqual(other.Layers)
                 ) &&
                 (
                     UiRevision == other.UiRevision ||
                     UiRevision != null &&
                     UiRevision.Equals(other.UiRevision)
                 ));
        }
Exemplo n.º 2
0
 public bool Equals(Location other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Latitude.Equals(other.Latitude) && Longitude.Equals(other.Longitude) && Accuracy.Equals(other.Accuracy) && Altitude.Equals(other.Altitude) && VerticalAccuracy.Equals(other.VerticalAccuracy) && Bearing.Equals(other.Bearing) && Speed.Equals(other.Speed));
 }