public SongInListForApiContract(SongInList songInList, ContentLanguagePreference languagePreference, SongOptionalFields fields) {
			
			this.Notes = songInList.Notes;
			this.Order = songInList.Order;
			this.Song = new SongForApiContract(songInList.Song, null, languagePreference, fields);

		}
        public SongInListContract(SongInList songInList, ContentLanguagePreference languagePreference)
        {
            ParamIs.NotNull(() => songInList);

            Order = songInList.Order;
            Notes = songInList.Notes;
            Song = new SongWithAdditionalNamesContract(songInList.Song, languagePreference);
        }
Example #3
0
        public virtual SongInList AddSong(Song song, int order, string notes)
        {
            ParamIs.NotNull(() => song);

            var link = new SongInList(song, this, order, notes);

            AllSongs.Add(link);
            return(link);
        }
        public SongInListEditContract(SongInList songInList, ContentLanguagePreference languagePreference)
        {
            ParamIs.NotNull(() => songInList);

            SongInListId = songInList.Id;
            Order = songInList.Order;
            Notes = songInList.Notes;
            SongName = songInList.Song.TranslatedName[languagePreference];
            SongAdditionalNames = string.Join(", ", songInList.Song.AllNames.Where(n => n != SongName));
            SongArtistString = songInList.Song.ArtistString[languagePreference];
            SongId = songInList.Song.Id;
        }
Example #5
0
        public virtual SongInList AddSong(Song song, int order, string notes)
        {
            ParamIs.NotNull(() => song);

            var link = new SongInList(song, this, order, notes);
            AllSongs.Add(link);
            return link;
        }