Beispiel #1
0
        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);
        }
Beispiel #2
0
 public AlbumForArtistEditContract(AlbumWithAdditionalNamesContract albumContract)
 {
     AlbumId              = albumContract.Id;
     AlbumName            = albumContract.Name;
     AlbumAdditionalNames = albumContract.AdditionalNames;
 }