import {RestRequestConfig} from '../../../../Rest'; import { AccountPresenceInfo, ReadAccountPresenceParameters, } from '../../../../definitions'; import Parent from '..'; import RingCentral from '../../../..'; class Index { rc: RingCentral; parent: Parent; constructor(parent: Parent) { this.parent = parent; this.rc = parent.rc; } path(): string { return `${this.parent.path()}/presence`; } /** * Operation: Get User Presence Status List * Rate Limit Group: Heavy * Http get /restapi/v1.0/account/{accountId}/presence */ async get( queryParams?: ReadAccountPresenceParameters, config?: RestRequestConfig ): Promise { const r = await this.rc.get( this.path(), queryParams, config ); return r.data; } } export default Index;