예제 #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));
 }
예제 #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);
        }
예제 #3
0
 public override bool Equals(PlayableBase other)
 {
     return(other == this);
 }