-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathwizardsvault.js
40 lines (35 loc) · 889 Bytes
/
wizardsvault.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const AbstractEndpoint = require('../endpoint')
module.exports = class WizardsvaultEndpoint extends AbstractEndpoint {
constructor (client) {
super(client)
this.url = '/v2/wizardsvault'
this.isLocalized = true
this.cacheTime = 60 * 60
}
listings () {
return new ListingsEndpoint(this)
}
objectives () {
return new ObjectivesEndpoint(this)
}
}
class ListingsEndpoint extends AbstractEndpoint {
constructor (client) {
super(client)
this.url = '/v2/wizardsvault/listings'
this.isPaginated = true
this.isBulk = true
this.isLocalized = false
this.cacheTime = 60 * 60
}
}
class ObjectivesEndpoint extends AbstractEndpoint {
constructor (client) {
super(client)
this.url = '/v2/wizardsvault/objectives'
this.isPaginated = true
this.isBulk = true
this.isLocalized = true
this.cacheTime = 60 * 60
}
}