Add support for the new premium unlock API

This commit is contained in:
Jonas Lochmann 2022-09-26 02:00:00 +02:00
parent c70c0d131a
commit 5d310c21d8
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36
7 changed files with 180 additions and 5 deletions

View file

@ -55,6 +55,16 @@ class DummyApiImpl implements Api {
await delay(100 + Math.random() * 400)
}
async unlockPremium2 () {
await this.checkAuth()
await delay(100 + Math.random() * 400)
return {
ok: false,
detail: 'dummy'
}
}
async getStatusMessage () {
await this.checkAuth()
await delay(100 + Math.random() * 400)