Example #1
0
 public override bool Equals(PlayableBase other)
 {
     if (other == null)
     {
         return(false);
     }
     if (GetType() != other.GetType())
     {
         return(false);
     }
     return((SongResult.Type == ((AnyListenTrack)other).SongResult.Type) &&
            (SongResult.SongId == ((AnyListenTrack)other).SongResult.SongId));
 }
Example #2
0
        public override bool Equals(PlayableBase other)
        {
            if (other == null)
            {
                return(false);
            }
            if (!other.TrackExists || !TrackExists)
            {
                return(false);
            }
            if (GetType() != other.GetType())
            {
                return(false);
            }

            var otherAsLocalTrack = (LocalTrack)other;

            if (UniqueId == otherAsLocalTrack.UniqueId)
            {
                return(true);
            }
            return(false);
        }
Example #3
0
 public override bool Equals(PlayableBase other)
 {
     return(other == this);
 }