getCleaningRecords
Requires:
@ray-js/ray≥1.5.36Base library≥2.21.0
Method signature
getCleaningRecords(params: )Description
Get the cleaning record list
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Query parameters including Device ID, time range, and pagination info |
Return Value
Type: Promise<GetCleaningRecordsResponse>
Promise that resolves with the cleaning record list and total count
Referenced Types
interface
GetCleaningRecordsResponseReturn value for getting the cleaning record list| Property | Type | Description |
|---|---|---|
| Cleaning record list | ||
totalCount | number | Total number of records |
Examples
deleteCleaningRecord
Requires:
@ray-js/ray≥1.5.36Base library≥2.21.0
Method signature
deleteCleaningRecord(params: )Description
Delete cleaning records
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Contains Device ID and an array of record IDs to delete |
Return Value
Type: Promise<boolean>
Promise that resolves to a boolean indicating whether deletion succeeded
Examples
getGyroCleanRecords
Requires:
@ray-js/ray≥1.7.14Base library≥2.29.0
Method signature
getGyroCleanRecords(params: )Description
Get the cleaning record list for a gyroscope-based robot vacuum
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Query parameters including Device ID, a set of DPs, and pagination info |
Return Value
Type: Promise<GetGyroCleanRecordsResponse>
Promise that resolves with the gyroscope-based vacuum's cleaning record list and total count
Referenced Types
interface
GetGyroCleanRecordsResponseReturn value for getting cleaning records of a gyroscope-based robot vacuum| Property | Type | Description |
|---|---|---|
| Cleaning record list | ||
totalCount | number | Total number of records |
Examples
getGyroCleanRecordDetail
Requires:
@ray-js/ray≥1.7.14Base library≥2.29.0
Method signature
getGyroCleanRecordDetail(params: )Description
Get cleaning record details for a gyroscope-based robot vacuum
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Query parameters including Device ID, sub-record ID, and pagination info |
Return Value
Type: Promise<GetGyroCleanRecordDetailResponse>
Promise that resolves with the cleaning record's map data and pagination info
Referenced Types
interface
GetGyroCleanRecordDetailResponseReturn value for getting details of a gyroscope-based cleaning record| Property | Type | Description |
|---|---|---|
dataList | string[] | Map data list |
startRow | string | Starting row identifier |
devId | string | Device ID |
mapId | number | Map ID |
startTime | number | Cleaning start timestamp |
endTime | number | Cleaning end timestamp |
subRecordId | number | Sub-record ID |
hasNext | boolean | Has next page |