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

ParameterTypeRequiredDescription
YesQuery 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

interfaceGetGyroCleanRecordDetailResponseReturn value for getting details of a gyroscope-based cleaning record
PropertyTypeDescription
dataListstring[]Map data list
startRowstringStarting row identifier
devIdstringDevice ID
mapIdnumberMap ID
startTimenumberCleaning start timestamp
endTimenumberCleaning end timestamp
subRecordIdnumberSub-record ID
hasNextbooleanHas next page

Examples

import React from 'react';
import { Button, getGyroCleanRecordDetail } from '@ray-js/ray';

export default function Demo() {
  const handleFetch = async () => {
    const detail = await getGyroCleanRecordDetail({
      devId: 'your-device-id',
      subRecordId: 12345,
      start: 0,
      size: 100,
    });
    console.log(detail.dataList, detail.hasNext);
  };
  return <Button onClick={handleFetch}>Get record details</Button>;
}