splatoon3api
Version:
A simple Method to get current and next Splatoon 3 maps, Salmonrun Schedules and Splatnet gear
32 lines (31 loc) • 1.12 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Options = void 0;
class Options {
constructor(options) {
this.schedulesURL = "https://splatoon3.ink/data/schedules.json";
this.salmonGearURL = "https://splatoon3.ink/data/coop.json";
this.gearURL = "https://splatoon3.ink/data/gear.json";
this.festURL = "https://splatoon3.ink/data/festivals.json";
this.userAgent = undefined;
this.cache = {
enabled: true,
ttl: 60
};
if (options) {
if (options.schedulesURL)
this.schedulesURL = options.schedulesURL;
if (options.salmonGearURL)
this.salmonGearURL = options.salmonGearURL;
if (options.gearURL)
this.gearURL = options.gearURL;
if (options.festURL)
this.festURL = options.festURL;
if (options.userAgent)
this.userAgent = options.userAgent;
if (options.cache)
this.cache = options.cache;
}
}
}
exports.Options = Options;