コード例 #1
0
        public static MixResultAlbum CreateInstance(LibraryAlbumInfo libraryAlbumInfo)
        {
            MixResultAlbum mixResultAlbum = new MixResultAlbum();

            mixResultAlbum.Initialize(MixResultType.Album, string.Empty, libraryAlbumInfo.AlbumTitle, libraryAlbumInfo.ArtistName, libraryAlbumInfo.ZuneMediaId.ToString(), libraryAlbumInfo.AlbumArtUrl, Guid.Empty, null);
            return(mixResultAlbum);
        }
コード例 #2
0
        public static MixResultAlbum CreateInstance(
            DataProviderObject dataProviderObject,
            string reason)
        {
            MixResultAlbum mixResultAlbum = new MixResultAlbum();
            Album          album          = (Album)dataProviderObject;
            MiniArtist     primaryArtist  = album.PrimaryArtist;
            string         secondaryText  = primaryArtist != null ? primaryArtist.Title : string.Empty;

            mixResultAlbum.Initialize(MixResultType.Album, reason, album.Title ?? string.Empty, secondaryText, album.Id.ToString(), string.Empty, album.ImageId, null);
            return(mixResultAlbum);
        }