MCPcopy Create free account
hub / github.com/dgreif/ring / setLocationMode

Method setLocationMode

packages/ring-client-api/location.ts:543–553  ·  view source on GitHub ↗
(mode: LocationModeInput)

Source from the content-addressed store, hash-verified

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>({

Callers 1

constructorMethod · 0.80

Calls 1

appApiFunction · 0.90

Tested by

no test coverage detected