xboxstatus
Version:
A nodejs library for the Xbox Live Service Status v5 API.
21 lines (16 loc) • 335 B
JavaScript
// there are only two types, 1 - None || 2 - Impacted
module.exports = class ServiceStatus {
constructor(data) {
this.id = data.Id;
this.name = data.Name || data.State;
}
getId() {
return this.id;
}
getName() {
return this.name;
}
getHasProblem() {
return this.id != 1;
}
};