UNPKG

xboxstatus

Version:

A nodejs library for the Xbox Live Service Status v5 API.

19 lines (15 loc) 336 B
const Service = require("./Service"); module.exports = class ServiceCategory { constructor({ name, data }) { this.name = name; this.services = data.map((service) => { return new Service(service); }); } getName() { return this.name; } getServices() { return this.services; } };