()
| 115 | } |
| 116 | |
| 117 | async getCachedOffset(): Promise<number> { |
| 118 | this.state = await this.getCache(); |
| 119 | if (this.state) { |
| 120 | return this.state.offset; |
| 121 | } |
| 122 | return 0; |
| 123 | } |
| 124 | |
| 125 | getId() { |
| 126 | if (this.state && this.state.id) return this.state.id; |