Пример #1
0
 public bool Equals(YoutubeResult other)
 {
     return
         (Id.Equals(other.Id) &&
          Type == other.Type &&
          Songs.SequenceEqual(other.Songs) &&
          SongsLoaded == other.SongsLoaded &&
          PlaylistInfo.Equals(other.PlaylistInfo)
         );
 }
Пример #2
0
 public YoutubeResult()
 {
     Id                       = null;
     Type                     = YoutubeResultType.None;
     Songs                    = Enumerable.Empty <SongInfo>().ToList();
     PlaylistInfo             = new PlaylistInfo();
     SongsLoaded              = false;
     SongDetailsLoaded        = false;
     _detailsLoadingTask      = null;
     _cancellationTokenSource = new CancellationTokenSource();
 }