Ejemplo n.º 1
0
        private NcmTrack ParseTrack(JToken json, bool isShortName)
        {
            var track    = new Track((string)json["name"], ParseNames(json[isShortName ? "ar" : "artists"]));
            var ncmTrack = new NcmTrack(track, (int)json["id"]);

            return(ncmTrack);
        }
Ejemplo n.º 2
0
        private static NcmTrack ParseTrack(JToken json, bool fromAlbumDetail)
        {
            Track    track;
            NcmTrack ncmTrack;

            track    = new Track((string)json["name"], ParseNames((JArray)json[fromAlbumDetail ? "ar" : "artists"]));
            ncmTrack = new NcmTrack(track, (int)json["id"]);
            return(ncmTrack);
        }