public AlbumForUserContract(AlbumForUser albumForUser, ContentLanguagePreference languagePreference) { ParamIs.NotNull(() => albumForUser); Album = new AlbumWithAdditionalNamesContract(albumForUser.Album, languagePreference); Id = albumForUser.Id; MediaType = albumForUser.MediaType; PurchaseStatus = albumForUser.PurchaseStatus; Rating = albumForUser.Rating; User = new UserContract(albumForUser.User); }
public ArtistForAlbumContract(ArtistForAlbum artistForAlbum, ContentLanguagePreference languagePreference) { ParamIs.NotNull(() => artistForAlbum); Album = new AlbumWithAdditionalNamesContract(artistForAlbum.Album, languagePreference); Artist = (artistForAlbum.Artist != null ? new ArtistWithAdditionalNamesContract(artistForAlbum.Artist, languagePreference) : null); Categories = artistForAlbum.ArtistCategories; EffectiveRoles = artistForAlbum.EffectiveRoles; Id = artistForAlbum.Id; IsSupport = artistForAlbum.IsSupport; Name = (Artist != null ? Artist.Name : artistForAlbum.Name); Roles = artistForAlbum.Roles; }
public AlbumForArtistEditContract(AlbumWithAdditionalNamesContract albumContract) { AlbumId = albumContract.Id; AlbumName = albumContract.Name; AlbumAdditionalNames = albumContract.AdditionalNames; }
public AlbumTagUsageContract(AlbumTagUsage tagUsage, ContentLanguagePreference languagePreference) : base(tagUsage) { Album = new AlbumWithAdditionalNamesContract(tagUsage.Album, languagePreference); }