Example #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);
        }
Example #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);
        }
Example #3
0
 private void OnDeserialized(StreamingContext context)
 {
     Artwork = new LastFmArtworkProvider(this);
 }
Example #4
0
 private void OnDeserialized(StreamingContext context)
 {
     Artwork = new LastFmArtworkProvider(this);
 }