コード例 #1
0
        public async Task PopulateReleaseGroups()
        {
            //search the database for this artist specifically
            var doc = await MBServer.Lookup(MBEntityType.artist, this.MBID, new string[] { "release-groups" });

            //create a new artist object - the new function will grab the release list this time
            var artistNode = new XMLNodeG(XMLFns.GetChildren(doc.DocumentElement, "artist").First());
            var tmpArtist  = new Artist(artistNode);

            //copy the release groups from the temporary arist to this one
            this.ReleaseGroups = tmpArtist.ReleaseGroups;
        } //requires a server search
コード例 #2
0
        public async Task PopulateReleases()
        {
            //search the database for this artist specifically
            var doc = await MBServer.Lookup(MBEntityType.releaseGroup, this.MBID, new string[] { "releases" });

            //create a new releaseGroupobject - the new function will grab the release list this time
            var releaseGroupNode = new XMLNodeG(XMLFns.GetChildren(doc.DocumentElement, "release-group").First());
            var tmpGroup         = new ReleaseGroup(releaseGroupNode);

            //copy the releases from the temporary group to this one
            this.Releases = tmpGroup.Releases;
        }