Пример #1
0
        internal Album(List <Track> trackList, string title, string albumArtist, int year)
        {
            Contract.Requires(trackList != null);
            Contract.Requires(!string.IsNullOrEmpty(title));
            Contract.Requires(!string.IsNullOrEmpty(albumArtist));

            _TrackList   = trackList;
            _Title       = title;
            _AlbumArtist = albumArtist;
            _Year        = year;
            _AlbumID     = (uint)(31 * Title.GetHashCode() + AlbumArtist.GetHashCode());
            Artwork      = new LastFmArtworkProvider(this);
        }
Пример #2
0
        internal Album(List<Track> trackList, string title, string albumArtist, int year)
        {
            Contract.Requires(trackList != null);
            Contract.Requires(!string.IsNullOrEmpty(title));
            Contract.Requires(!string.IsNullOrEmpty(albumArtist));

            _TrackList = trackList;
            _Title = title;
            _AlbumArtist = albumArtist;
            _Year = year;
            _AlbumID = (uint)(31 * Title.GetHashCode() + AlbumArtist.GetHashCode());
            Artwork = new LastFmArtworkProvider(this);
        }
Пример #3
0
 private void OnDeserialized(StreamingContext context)
 {
     Artwork = new LastFmArtworkProvider(this);
 }
Пример #4
0
 private void OnDeserialized(StreamingContext context)
 {
     Artwork = new LastFmArtworkProvider(this);
 }