(mode: LocationModeInput)
| 541 | } |
| 542 | |
| 543 | async setLocationMode(mode: LocationModeInput) { |
| 544 | const response = await this.restClient.request<LocationModeResponse>({ |
| 545 | method: 'POST', |
| 546 | url: appApi(`mode/location/${this.id}`), |
| 547 | json: { mode }, |
| 548 | }) |
| 549 | |
| 550 | this.onLocationMode.next(response.mode) |
| 551 | |
| 552 | return response |
| 553 | } |
| 554 | |
| 555 | async disableLocationModes() { |
| 556 | await this.restClient.request<void>({ |