UNPKG

musicbrainz-api

Version:

MusicBrainz API client for reading and submitting metadata

19 lines 481 B
import { XmlIsrc } from './xml-isrc.js'; export class XmlIsrcList { constructor() { this.items = []; } pushIsrc(isrc) { this.items.push(new XmlIsrc(isrc)); } toXml() { return this.items.length === 0 ? null : { name: 'isrc-list', attrs: { count: this.items.length }, children: this.items.map(isrc => isrc.toXml()) }; } } //# sourceMappingURL=xml-isrc-list.js.map