fnbr
Version:
A library to interact with Epic Games' Fortnite HTTP and XMPP services
33 lines • 983 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const Base_1 = tslib_1.__importDefault(require("../Base"));
const Image_1 = tslib_1.__importDefault(require("./Image"));
/**
* Represents a battle royale ingame radio station
*/
class RadioStation extends Base_1.default {
/**
* @param client The main client
* @param data The radio station's data
*/
constructor(client, data) {
super(client);
this.resourceId = data.resourceID;
this.name = data.title;
this.image = new Image_1.default(this.client, {
url: data.stationImage,
width: 265,
height: 265,
});
}
/**
* Downloads the radio station's stream
* @throws {AxiosError}
*/
async downloadStream() {
return this.client.downloadBlurlStream(this.resourceId);
}
}
exports.default = RadioStation;
//# sourceMappingURL=RadioStation.js.map