Exemple #1
0
        public static Track From_TrackToTrack(_Track _Track)
        {
            Track TempTrack = new Track(_Track);

            if (_Track._PrimaryGenres != null)
            {
                foreach (_MusicGenreList _MusicGenreList in _Track._PrimaryGenres._MusicGenreList)
                {
                    TempTrack.MusicGenreList.Add(new MusicGenre(_MusicGenreList));
                }
            }
            if (_Track._SecondaryGenres != null)
            {
                foreach (_MusicGenreList _MusicGenreList in _Track._SecondaryGenres._MusicGenreList)
                {
                    TempTrack.MusicGenreList.Add(new MusicGenre(_MusicGenreList));
                }
            }
            if (_Track._TrackNameTranslationList != null)
            {
                foreach (_TrackNameTranslationList _TrackNameTranslationList in _Track._TrackNameTranslationList)
                {
                    TempTrack.TrackNameTranslationList.Add(new TrackNameTranslation(_TrackNameTranslationList));
                }
            }

            return(TempTrack);
        }
Exemple #2
0
 public Track(_Track _Track)
 {
     this.AlbumId                  = _Track._AlbumId;
     this.AlbumName                = _Track._AlbumName;
     this.ArtistName               = _Track._ArtistName;
     this.CommontrackId            = _Track._CommontrackId;
     this.Explicit                 = _Track._Explicit;
     this.HasLyrics                = _Track._HasLyrics;
     this.HasRichsync              = _Track._HasRichsync;
     this.HasSubtitles             = _Track._HasSubtitles;
     this.Instrumental             = _Track._Instrumental;
     this.NumFavourite             = _Track._NumFavourite;
     this.Restricted               = _Track._Restricted;
     this.TrackEditUrl             = _Track._TrackEditUrl;
     this.TrackId                  = _Track._TrackId;
     this.TrackName                = _Track._TrackName;
     this.TrackRating              = _Track._TrackRating;
     this.TrackShareUrl            = _Track._TrackShareUrl;
     this.UpdatedTime              = _Track._UpdatedTime;
     this.TrackNameTranslationList = new List <TrackNameTranslation>();
     this.MusicGenreList           = new List <MusicGenre>();
 }