@tencentcloud/sdk-mcp 1.7.7 → 1.7.9-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +7 -9
- package/index.js +8 -8
- package/knowledge/chunker.js +1 -0
- package/knowledge/doc-url-resolver.js +16 -9
- package/knowledge/embedding/build-vectors.js +92 -0
- package/knowledge/embedding/embed-model.js +41 -0
- package/knowledge/embedding/vector-augment.js +126 -0
- package/knowledge/embedding/vector-index.js +70 -0
- package/knowledge/frontmatter-meta.js +23 -0
- package/knowledge/path-meta.js +56 -0
- package/knowledge/search/exact-lookup.js +145 -16
- package/knowledge/search/filter-pool.js +77 -33
- package/knowledge/search/rank-profile.js +25 -0
- package/knowledge/search/requires-framework.js +4 -1
- package/knowledge/search/search-core.js +74 -13
- package/knowledge/search/search-knowledge.js +24 -34
- package/knowledge/search/search-pass.js +495 -169
- package/knowledge/search/url-row-scorer.js +24 -6
- package/package.json +3 -1
- package/resource/index/manifest.json +1 -1
- package/resource/index/vectors/index.json +4 -0
- package/resource/integration/callkit/preset/android/integration.md +0 -2
- package/resource/integration/callkit/preset/ios/integration.md +0 -2
- package/resource/integration/chat/preset/react/integration.md +9 -5
- package/resource/integration/chat/preset/uni-app/integration.md +4 -0
- package/resource/integration/chat/preset/vue/integration.md +10 -6
- package/resource/integration/livekit/preset/live/android/prepare-integration.md +0 -4
- package/resource/integration/livekit/preset/live/ios/prepare-integration.md +0 -4
- package/resource/integration/roomkit/preset/vue/integration.md +154 -208
- package/resource/knowledge/callkit/best-practice/android/video-chat-dating.md +0 -2
- package/resource/knowledge/callkit/core-sdk/android/answer-call.md +0 -2
- package/resource/knowledge/callkit/core-sdk/android/make-call.md +0 -2
- package/resource/knowledge/callkit/core-sdk/flutter/answer-call.md +0 -4
- package/resource/knowledge/callkit/core-sdk/flutter/make-call.md +0 -2
- package/resource/knowledge/callkit/core-sdk/flutter/offline-push.md +0 -2
- package/resource/knowledge/callkit/core-sdk/ios/answer-call.md +0 -2
- package/resource/knowledge/callkit/core-sdk/ios/make-call.md +0 -4
- package/resource/knowledge/callkit/core-sdk/ios/offline-push.md +0 -2
- package/resource/knowledge/callkit/core-sdk/uni-app/answer-call.md +0 -2
- package/resource/knowledge/callkit/core-sdk/uni-app/make-call.md +0 -2
- package/resource/knowledge/callkit/faq/ios.md +0 -2
- package/resource/knowledge/callkit/faq/uniapp-app.md +0 -2
- package/resource/knowledge/callkit/preset/miniprogram/integration.md +2 -3
- package/resource/knowledge/callkit/preset/miniprogram/uniapp-integration.md +0 -2
- package/resource/knowledge/chat/preset/ios-uikit/integration.md +0 -16
- package/resource/knowledge/chat/preset/react/h5/integration.md +16 -5
- package/resource/knowledge/chat/preset/vue/features/conversation-list.md +6 -3
- package/resource/knowledge/chat/preset/vue/h5/integration.md +7 -4
- package/resource/knowledge/iot/app/activate-service.md +95 -0
- package/resource/knowledge/iot/app/demo/android.md +93 -0
- package/resource/knowledge/iot/app/demo/ios.md +87 -0
- package/resource/knowledge/iot/app/demo/miniprogram.md +79 -0
- package/resource/knowledge/iot/app/device-binding.md +378 -0
- package/resource/knowledge/iot/app/device-sharing.md +414 -0
- package/resource/knowledge/iot/app/family-management.md +762 -0
- package/resource/knowledge/iot/app/integration/android.md +328 -0
- package/resource/knowledge/iot/app/integration/harmonyos.md +326 -0
- package/resource/knowledge/iot/app/integration/ios.md +351 -0
- package/resource/knowledge/iot/app/integration/miniprogram.md +268 -0
- package/resource/knowledge/iot/app/monitor-playback.md +557 -0
- package/resource/knowledge/iot/app/remote-control.md +139 -0
- package/resource/knowledge/iot/app/video-call.md +559 -0
- package/resource/knowledge/iot/app/wechat-call/device-call-miniprogram.md +204 -0
- package/resource/knowledge/iot/app/wechat-call/miniprogram-call-device.md +193 -0
- package/resource/knowledge/iot/client-api/app/android/txiotcallsession.md +189 -0
- package/resource/knowledge/iot/client-api/app/android/txiotcloudstorage.md +77 -0
- package/resource/knowledge/iot/client-api/app/android/txiotdevicemanager.md +175 -0
- package/resource/knowledge/iot/client-api/app/android/txiotengine.md +172 -0
- package/resource/knowledge/iot/client-api/app/android/txiotenginedef.md +163 -0
- package/resource/knowledge/iot/client-api/app/android/txiotfamilymanager.md +146 -0
- package/resource/knowledge/iot/client-api/app/android/txiotmonitorsession.md +246 -0
- package/resource/knowledge/iot/client-api/app/harmonyos/txiotcallsession.md +191 -0
- package/resource/knowledge/iot/client-api/app/harmonyos/txiotcloudstorage.md +77 -0
- package/resource/knowledge/iot/client-api/app/harmonyos/txiotdevicemanager.md +183 -0
- package/resource/knowledge/iot/client-api/app/harmonyos/txiotengine.md +186 -0
- package/resource/knowledge/iot/client-api/app/harmonyos/txiotenginedef.md +164 -0
- package/resource/knowledge/iot/client-api/app/harmonyos/txiotfamilymanager.md +150 -0
- package/resource/knowledge/iot/client-api/app/harmonyos/txiotmonitorsession.md +252 -0
- package/resource/knowledge/iot/client-api/app/ios/txiotcallsession.md +199 -0
- package/resource/knowledge/iot/client-api/app/ios/txiotcloudstorage.md +76 -0
- package/resource/knowledge/iot/client-api/app/ios/txiotdevicemanager.md +173 -0
- package/resource/knowledge/iot/client-api/app/ios/txiotengine.md +173 -0
- package/resource/knowledge/iot/client-api/app/ios/txiotenginedef.md +171 -0
- package/resource/knowledge/iot/client-api/app/ios/txiotfamilymanager.md +146 -0
- package/resource/knowledge/iot/client-api/app/ios/txiotmonitorsession.md +250 -0
- package/resource/knowledge/iot/client-api/app/miniprogram/txiotcallsession.md +180 -0
- package/resource/knowledge/iot/client-api/app/miniprogram/txiotcloudstorage.md +76 -0
- package/resource/knowledge/iot/client-api/app/miniprogram/txiotdevicemanager.md +281 -0
- package/resource/knowledge/iot/client-api/app/miniprogram/txiotengine.md +183 -0
- package/resource/knowledge/iot/client-api/app/miniprogram/txiotenginedef.md +152 -0
- package/resource/knowledge/iot/client-api/app/miniprogram/txiotfamilymanager.md +179 -0
- package/resource/knowledge/iot/client-api/app/miniprogram/txiotmonitorsession.md +226 -0
- package/resource/knowledge/iot/client-api/device/android-smart-device.md +813 -0
- package/resource/knowledge/iot/client-api/device/linux-rtos-device.md +2027 -0
- package/resource/knowledge/iot/device/activate-service.md +167 -0
- package/resource/knowledge/iot/device/ai-voice-chat/advanced-features/custom-agent.md +171 -0
- package/resource/knowledge/iot/device/ai-voice-chat/advanced-features/smart-device-control.md +721 -0
- package/resource/knowledge/iot/device/ai-voice-chat/integration-guide/android-smart-device.md +247 -0
- package/resource/knowledge/iot/device/ai-voice-chat/integration-guide/linux-rtos-device.md +368 -0
- package/resource/knowledge/iot/device/ai-voice-chat/overview.md +84 -0
- package/resource/knowledge/iot/device/cloud-storage.md +696 -0
- package/resource/knowledge/iot/device/data-model.md +972 -0
- package/resource/knowledge/iot/device/demo/android-smart-device.md +97 -0
- package/resource/knowledge/iot/device/demo/linux-rtos-device.md +106 -0
- package/resource/knowledge/iot/device/device-ota-upgrade.md +237 -0
- package/resource/knowledge/iot/device/dynamic-registration/android-smart-device.md +275 -0
- package/resource/knowledge/iot/device/dynamic-registration/linux-rtos-device.md +297 -0
- package/resource/knowledge/iot/device/login-and-register/android-smart-device.md +131 -0
- package/resource/knowledge/iot/device/login-and-register/linux-rtos-device.md +291 -0
- package/resource/knowledge/iot/device/monitor-pushing/android-smart-device.md +237 -0
- package/resource/knowledge/iot/device/monitor-pushing/linux-rtos-device.md +493 -0
- package/resource/knowledge/iot/device/video-call/android-smart-device.md +299 -0
- package/resource/knowledge/iot/device/video-call/linux-rtos-device.md +465 -0
- package/resource/knowledge/iot/device/wechat-call/android-smart-device.md +534 -0
- package/resource/knowledge/iot/device/wechat-call/linux-rtos-device.md +681 -0
- package/resource/knowledge/iot/kids-watch/overview.md +28 -0
- package/resource/knowledge/iot/security-camera/activate-service.md +74 -0
- package/resource/knowledge/iot/security-camera/monitor-playback/app-integration.md +302 -0
- package/resource/knowledge/iot/security-camera/monitor-playback/device-integration/android.md +237 -0
- package/resource/knowledge/iot/security-camera/monitor-playback/device-integration/linux-rtos.md +493 -0
- package/resource/knowledge/iot/security-camera/overview.md +31 -0
- package/resource/knowledge/iot/security-camera/ptz-control.md +153 -0
- package/resource/knowledge/iot/security-camera/recording-and-snapshot.md +182 -0
- package/resource/knowledge/iot/security-camera/voice-intercom.md +174 -0
- package/resource/knowledge/iot/smart-vision/serviceoverview.md +114 -0
- package/resource/knowledge/iot/voice-recorder/app-demo.md +99 -0
- package/resource/knowledge/iot/voice-recorder/device-demo.md +189 -0
- package/resource/knowledge/iot/voice-recorder/overview.md +64 -0
- package/resource/knowledge/livekit/core-sdk/features/android/base-beauty.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/android/gift.md +0 -4
- package/resource/knowledge/livekit/core-sdk/features/android/live-list.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/flutter/audio-effect.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/flutter/base-beauty.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/flutter/gift.md +0 -4
- package/resource/knowledge/livekit/core-sdk/features/ios/base-beauty.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/ios/gift.md +0 -4
- package/resource/knowledge/livekit/core-sdk/features/ios/live-list.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/uni-app/base-beauty.md +0 -2
- package/resource/knowledge/livekit/core-sdk/features/uni-app/gift.md +0 -4
- package/resource/knowledge/livekit/core-sdk/live/android/co-guest-interaction.md +0 -4
- package/resource/knowledge/livekit/core-sdk/live/android/host-interaction.md +0 -10
- package/resource/knowledge/livekit/core-sdk/live/android/integration.md +0 -2
- package/resource/knowledge/livekit/core-sdk/live/flutter/co-guest-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/live/flutter/host-interaction.md +0 -10
- package/resource/knowledge/livekit/core-sdk/live/flutter/integration.md +0 -2
- package/resource/knowledge/livekit/core-sdk/live/ios/co-guest-interaction.md +0 -4
- package/resource/knowledge/livekit/core-sdk/live/ios/host-interaction.md +0 -10
- package/resource/knowledge/livekit/core-sdk/live/ios/integration.md +0 -2
- package/resource/knowledge/livekit/core-sdk/live/uni-app/co-guest-interaction.md +0 -4
- package/resource/knowledge/livekit/core-sdk/live/uni-app/host-interaction.md +0 -4
- package/resource/knowledge/livekit/core-sdk/live/uni-app/integration.md +0 -2
- package/resource/knowledge/livekit/core-sdk/voice/android/co-guest-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/voice/android/host-interaction.md +0 -4
- package/resource/knowledge/livekit/core-sdk/voice/android/integration.md +0 -4
- package/resource/knowledge/livekit/core-sdk/voice/flutter/integration.md +0 -2
- package/resource/knowledge/livekit/core-sdk/voice/ios/co-guest-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/voice/ios/host-interaction.md +0 -4
- package/resource/knowledge/livekit/core-sdk/voice/ios/integration.md +0 -4
- package/resource/knowledge/livekit/core-sdk/voice/uni-app/co-guest-interaction.md +0 -2
- package/resource/knowledge/livekit/core-sdk/voice/uni-app/integration.md +0 -2
- package/resource/knowledge/livekit/faq/error-code.md +0 -2
- package/resource/knowledge/push/config/android/honor.md +16 -1
- package/resource/knowledge/push/config/android/huawei.md +20 -4
- package/resource/knowledge/push/config/android/meizu.md +19 -5
- package/resource/knowledge/push/config/android/vivo.md +20 -1
- package/resource/knowledge/push/config/donut.md +0 -2
- package/resource/knowledge/push/config/harmonyos.md +21 -5
- package/resource/knowledge/push/integration/android.md +0 -5
- package/resource/knowledge/push/integration/donut.md +0 -3
- package/resource/knowledge/push/integration/flutter.md +1 -4
- package/resource/knowledge/push/integration/harmonyos.md +0 -3
- package/resource/knowledge/push/integration/ios.md +0 -3
- package/resource/knowledge/push/integration/react-native.md +0 -5
- package/resource/knowledge/push/integration/uni-app.md +0 -3
- package/resource/knowledge/push/integration/unity.md +0 -3
- package/resource/knowledge/push/integration/unreal-engine.md +0 -3
- package/resource/knowledge/roomkit/core-sdk/android/call-user-to-room.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/android/room-participant-state.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/android/room-state.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/android/schedule-room.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/flutter/call-user-to-room.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/flutter/room-participant-state.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/flutter/room-state.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/flutter/schedule-room.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/ios/call-user-to-room.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/ios/room-participant-state.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/ios/room-state.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/ios/schedule-room.md +0 -2
- package/resource/knowledge/roomkit/core-sdk/vue/room-view.md +0 -3
- package/resource/knowledge/roomkit/preset/uniapp-app/integration.md +18 -14
- package/resource/knowledge/rtcengine/web/how_to_run_web_sdk_demo.md +0 -2
- package/resource/knowledge/rtcengine/web/plugin/23-advanced-support-detection.md +30 -0
- package/resource/knowledge/rtcengine/web/plugin/24-advanced-network-quality.md +0 -2
- package/resource/knowledge/rtcengine/web/plugin/31-advanced-plugins-overview.md +1 -1
- package/resource/knowledge/rtcengine/web/plugin/35-advanced-ai-denoiser.md +1 -1
- package/resource/knowledge/rtcengine/web/plugin/36-advanced-virtual-background.md +4 -0
- package/resource/knowledge/trtc/android/TRTCCloud.md +94 -85
- package/resource/knowledge/trtc/android/TRTCCloudDef.md +48 -46
- package/resource/knowledge/trtc/android/TRTCCloudListener.md +48 -48
- package/resource/knowledge/trtc/android/TXAudioEffectManager.md +18 -18
- package/resource/knowledge/trtc/android/TXDeviceManager.md +4 -4
- package/resource/knowledge/trtc/android/TXLiteAVCode.md +1 -0
- package/resource/knowledge/trtc/c++/ITRTCCloud.md +90 -90
- package/resource/knowledge/trtc/c++/ITXAudioEffectManager.md +18 -18
- package/resource/knowledge/trtc/c++/ITXDeviceManager.md +9 -9
- package/resource/knowledge/trtc/c++/TRTCCloudCallback.md +47 -47
- package/resource/knowledge/trtc/c++/TRTCTypeDef.md +47 -45
- package/resource/knowledge/trtc/c++/TXLiteAVCode.md +1 -0
- package/resource/knowledge/trtc/ios/TRTCCloud.md +93 -93
- package/resource/knowledge/trtc/ios/TRTCCloudDelegate.md +50 -50
- package/resource/knowledge/trtc/ios/TXAudioEffectManager.md +8 -8
- package/resource/knowledge/trtc/ios/TXDeviceManager.md +9 -9
- package/resource/knowledge/trtc/ios/TXLiteAVCode.md +1 -0
- package/resource/knowledge/trtc/ios/TXLiveSDKTypeDef.md +48 -46
- package/server-config.js +8 -9
- package/server.js +1 -1
- package/tools/common/finalize_answer.js +1 -1
- package/tools/common/present_framework_choice.js +1 -1
- package/tools/common/search_trtc_knowledge.js +22 -3
- package/tools/definitions/search_trtc_knowledge_def.js +3 -2
- package/utils/preflight-route.js +19 -2
- package/utils/report-cls-client.js +1 -1
- package/utils/report-es-client.js +1 -1
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
---
|
|
2
|
+
product: iot
|
|
3
|
+
framework:
|
|
4
|
+
- minprogram
|
|
5
|
+
types:
|
|
6
|
+
- api
|
|
7
|
+
retrievable_scope: always
|
|
8
|
+
feature_domain: client_api
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 概述
|
|
12
|
+
|
|
13
|
+
TXIoTDeviceManager 负责设备的绑定/解绑、房间归属、设备分享、指令下发、属性查询与别名修改、设备 VoIP 通知等。TXIoTDeviceManager 通过 TXIoTEngine.getDeviceManager 获取实例,需在登录成功后调用。
|
|
14
|
+
|
|
15
|
+
> **说明:**
|
|
16
|
+
> 设备必须先绑定到家庭后才能进行后续操作。绑定方式有两种:
|
|
17
|
+
>
|
|
18
|
+
> 1. 通过 `bindDevice` 使用设备绑定签名直接绑定。
|
|
19
|
+
> 2. 通过 `bindDeviceSharedWithMe` 接受他人分享的设备。
|
|
20
|
+
|
|
21
|
+
## 方法列表
|
|
22
|
+
|
|
23
|
+
|方法签名|描述|
|
|
24
|
+
|---------|---------|
|
|
25
|
+
|bindDevice|绑定设备到家庭。|
|
|
26
|
+
|unbindDevice|从家庭解绑设备。|
|
|
27
|
+
|addDeviceToRoom|将设备添加到房间。|
|
|
28
|
+
|requestVoIPSnTicket|获取设备 VoIP 授权票据。|
|
|
29
|
+
|registerVoIPNotificationForDevice|注册设备 VoIP 通知。|
|
|
30
|
+
|unregisterVoIPNotificationForDevice|注销设备 VoIP 通知。|
|
|
31
|
+
|getAuthorizedVoIPUserList|获取设备 VoIP 授权用户列表。|
|
|
32
|
+
|removeDeviceFromRoom|将设备从房间移除。|
|
|
33
|
+
|getDeviceList|获取家庭设备列表(支持分页)。|
|
|
34
|
+
|createDeviceSharingToken|创建设备分享令牌。|
|
|
35
|
+
|bindDeviceSharedWithMe|绑定别人分享给我的设备。|
|
|
36
|
+
|unbindDeviceSharedWithMe|取消绑定别人分享给我的设备。|
|
|
37
|
+
|getDeviceSharedUsers|获取设备已分享的用户列表。|
|
|
38
|
+
|removeDeviceSharedUser|移除设备已分享用户。|
|
|
39
|
+
|getDeviceListSharedWithMe|获取别人分享给我的设备列表(支持分页)。|
|
|
40
|
+
|sendCommand|向设备发送指令。|
|
|
41
|
+
|getProperties|查询设备属性。|
|
|
42
|
+
|modifyAliasName|修改设备别名。|
|
|
43
|
+
|
|
44
|
+
### bindDevice
|
|
45
|
+
|
|
46
|
+
**绑定设备到家庭**
|
|
47
|
+
|
|
48
|
+
|参数|描述|
|
|
49
|
+
|---------|---------|
|
|
50
|
+
|familyId|`String`;家庭 ID。|
|
|
51
|
+
|deviceBindSignature|`String`;设备绑定签名。|
|
|
52
|
+
|
|
53
|
+
|返回值|描述|
|
|
54
|
+
|---------|---------|
|
|
55
|
+
|Promise<TXIoTDeviceInfo>|操作结果。|
|
|
56
|
+
|
|
57
|
+
### unbindDevice
|
|
58
|
+
|
|
59
|
+
**从家庭解绑设备**
|
|
60
|
+
|
|
61
|
+
|参数|描述|
|
|
62
|
+
|---------|---------|
|
|
63
|
+
|familyId|`String`;家庭 ID。|
|
|
64
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
65
|
+
|
|
66
|
+
|返回值|描述|
|
|
67
|
+
|---------|---------|
|
|
68
|
+
|Promise<Void>|操作结果。|
|
|
69
|
+
|
|
70
|
+
### addDeviceToRoom
|
|
71
|
+
|
|
72
|
+
**将设备添加到房间**
|
|
73
|
+
|
|
74
|
+
|参数|描述|
|
|
75
|
+
|---------|---------|
|
|
76
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
77
|
+
|familyId|`String`;家庭 ID。|
|
|
78
|
+
|roomId|`String`;房间 ID。|
|
|
79
|
+
|
|
80
|
+
|返回值|描述|
|
|
81
|
+
|---------|---------|
|
|
82
|
+
|Promise<Void>|操作结果。|
|
|
83
|
+
|
|
84
|
+
### requestVoIPSnTicket
|
|
85
|
+
|
|
86
|
+
**获取设备 VoIP 授权票据**
|
|
87
|
+
|
|
88
|
+
返回的 sn/snTicket 供小程序自行调用 `wx.requestDeviceVoIP` 完成微信侧授权弹窗(插件上下文无此 API)。
|
|
89
|
+
|
|
90
|
+
|参数|描述|
|
|
91
|
+
|---------|---------|
|
|
92
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
93
|
+
|modelId|`String`;微信公众平台「设备接入」分配的 model_id。|
|
|
94
|
+
|appId|`String`;小程序 AppID。|
|
|
95
|
+
|
|
96
|
+
|返回值|描述|
|
|
97
|
+
|---------|---------|
|
|
98
|
+
|Promise<Object>|包含 sn(设备序列号)与 snTicket(VoIP 授权票据)字段。|
|
|
99
|
+
|
|
100
|
+
### registerVoIPNotificationForDevice
|
|
101
|
+
|
|
102
|
+
**注册设备 VoIP 通知**
|
|
103
|
+
|
|
104
|
+
调用前需先通过 `requestVoIPSnTicket` 获取票据,并调用 `wx.requestDeviceVoIP` 完成微信侧授权弹窗。
|
|
105
|
+
|
|
106
|
+
|参数|描述|
|
|
107
|
+
|---------|---------|
|
|
108
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
109
|
+
|modelId|`String`;微信公众平台「设备接入」分配的 model_id。|
|
|
110
|
+
|appId|`String`;小程序 AppID。|
|
|
111
|
+
|wxOpenId|`String`;当前用户微信 OpenID。|
|
|
112
|
+
|
|
113
|
+
|返回值|描述|
|
|
114
|
+
|---------|---------|
|
|
115
|
+
|Promise<Void>|操作结果。|
|
|
116
|
+
|
|
117
|
+
### unregisterVoIPNotificationForDevice
|
|
118
|
+
|
|
119
|
+
**注销设备 VoIP 通知**
|
|
120
|
+
|
|
121
|
+
|参数|描述|
|
|
122
|
+
|---------|---------|
|
|
123
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
124
|
+
|modelId|`String`;微信公众平台「设备接入」分配的 model_id。|
|
|
125
|
+
|appId|`String`;小程序 AppID。|
|
|
126
|
+
|wxOpenId|`String`;当前用户微信 OpenID。|
|
|
127
|
+
|
|
128
|
+
|返回值|描述|
|
|
129
|
+
|---------|---------|
|
|
130
|
+
|Promise<Void>|操作结果。|
|
|
131
|
+
|
|
132
|
+
### getAuthorizedVoIPUserList
|
|
133
|
+
|
|
134
|
+
**获取设备 VoIP 授权用户列表**
|
|
135
|
+
|
|
136
|
+
|参数|描述|
|
|
137
|
+
|---------|---------|
|
|
138
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
139
|
+
|
|
140
|
+
|返回值|描述|
|
|
141
|
+
|---------|---------|
|
|
142
|
+
|Promise<List<String>>|已授权用户的微信 OpenID 列表。|
|
|
143
|
+
|
|
144
|
+
### removeDeviceFromRoom
|
|
145
|
+
|
|
146
|
+
**将设备从房间移除**
|
|
147
|
+
|
|
148
|
+
|参数|描述|
|
|
149
|
+
|---------|---------|
|
|
150
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
151
|
+
|familyId|`String`;家庭 ID。|
|
|
152
|
+
|
|
153
|
+
|返回值|描述|
|
|
154
|
+
|---------|---------|
|
|
155
|
+
|Promise<Void>|操作结果。|
|
|
156
|
+
|
|
157
|
+
### getDeviceList
|
|
158
|
+
|
|
159
|
+
**获取家庭设备列表(支持分页)**
|
|
160
|
+
|
|
161
|
+
|参数|描述|
|
|
162
|
+
|---------|---------|
|
|
163
|
+
|familyId|`String`;家庭 ID。|
|
|
164
|
+
|nextPageToken|`String`;分页令牌,首次传空字符串。|
|
|
165
|
+
|
|
166
|
+
|返回值|描述|
|
|
167
|
+
|---------|---------|
|
|
168
|
+
|Promise<TXIoTPageResult<TXIoTDeviceInfo>>|设备列表。|
|
|
169
|
+
|
|
170
|
+
### createDeviceSharingToken
|
|
171
|
+
|
|
172
|
+
**创建设备分享令牌**
|
|
173
|
+
|
|
174
|
+
|参数|描述|
|
|
175
|
+
|---------|---------|
|
|
176
|
+
|family_id|`String`;家庭 ID。|
|
|
177
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
178
|
+
|
|
179
|
+
|返回值|描述|
|
|
180
|
+
|---------|---------|
|
|
181
|
+
|Promise<String>|分享令牌。|
|
|
182
|
+
|
|
183
|
+
### bindDeviceSharedWithMe
|
|
184
|
+
|
|
185
|
+
**绑定别人分享给我的设备**
|
|
186
|
+
|
|
187
|
+
|参数|描述|
|
|
188
|
+
|---------|---------|
|
|
189
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
190
|
+
|shareToken|`String`;分享令牌。|
|
|
191
|
+
|
|
192
|
+
|返回值|描述|
|
|
193
|
+
|---------|---------|
|
|
194
|
+
|Promise<Void>|操作结果。|
|
|
195
|
+
|
|
196
|
+
### unbindDeviceSharedWithMe
|
|
197
|
+
|
|
198
|
+
**取消绑定别人分享给我的设备**
|
|
199
|
+
|
|
200
|
+
|参数|描述|
|
|
201
|
+
|---------|---------|
|
|
202
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
203
|
+
|
|
204
|
+
|返回值|描述|
|
|
205
|
+
|---------|---------|
|
|
206
|
+
|Promise<Void>|操作结果。|
|
|
207
|
+
|
|
208
|
+
### getDeviceSharedUsers
|
|
209
|
+
|
|
210
|
+
**获取设备已分享的用户列表**
|
|
211
|
+
|
|
212
|
+
|参数|描述|
|
|
213
|
+
|---------|---------|
|
|
214
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
215
|
+
|
|
216
|
+
|返回值|描述|
|
|
217
|
+
|---------|---------|
|
|
218
|
+
|Promise<List<TXIoTUserInfo>>|用户列表。|
|
|
219
|
+
|
|
220
|
+
### removeDeviceSharedUser
|
|
221
|
+
|
|
222
|
+
**移除设备已分享用户**
|
|
223
|
+
|
|
224
|
+
|参数|描述|
|
|
225
|
+
|---------|---------|
|
|
226
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
227
|
+
|userId|`String`;用户 ID。|
|
|
228
|
+
|
|
229
|
+
|返回值|描述|
|
|
230
|
+
|---------|---------|
|
|
231
|
+
|Promise<Void>|操作结果。|
|
|
232
|
+
|
|
233
|
+
### getDeviceListSharedWithMe
|
|
234
|
+
|
|
235
|
+
**获取别人分享给我的设备列表(支持分页)**
|
|
236
|
+
|
|
237
|
+
|参数|描述|
|
|
238
|
+
|---------|---------|
|
|
239
|
+
|nextPageToken|`String`;分页令牌,首次传空字符串。|
|
|
240
|
+
|
|
241
|
+
|返回值|描述|
|
|
242
|
+
|---------|---------|
|
|
243
|
+
|Promise<TXIoTPageResult<TXIoTDeviceInfo>>|设备列表。|
|
|
244
|
+
|
|
245
|
+
### sendCommand
|
|
246
|
+
|
|
247
|
+
**向设备发送指令**
|
|
248
|
+
|
|
249
|
+
|参数|描述|
|
|
250
|
+
|---------|---------|
|
|
251
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
252
|
+
|jsonData|`String`;JSON 格式的指令数据。|
|
|
253
|
+
|
|
254
|
+
|返回值|描述|
|
|
255
|
+
|---------|---------|
|
|
256
|
+
|Promise<String>|发送的指令。|
|
|
257
|
+
|
|
258
|
+
### getProperties
|
|
259
|
+
|
|
260
|
+
**查询设备属性**
|
|
261
|
+
|
|
262
|
+
|参数|描述|
|
|
263
|
+
|---------|---------|
|
|
264
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
265
|
+
|
|
266
|
+
|返回值|描述|
|
|
267
|
+
|---------|---------|
|
|
268
|
+
|Promise<String>|设备属性。|
|
|
269
|
+
|
|
270
|
+
### modifyAliasName
|
|
271
|
+
|
|
272
|
+
**修改设备别名**
|
|
273
|
+
|
|
274
|
+
|参数|描述|
|
|
275
|
+
|---------|---------|
|
|
276
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
277
|
+
|aliasName|`String`;设备别名。|
|
|
278
|
+
|
|
279
|
+
|返回值|描述|
|
|
280
|
+
|---------|---------|
|
|
281
|
+
|Promise<Void>|操作结果。|
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
---
|
|
2
|
+
product: iot
|
|
3
|
+
framework:
|
|
4
|
+
- minprogram
|
|
5
|
+
types:
|
|
6
|
+
- api
|
|
7
|
+
retrievable_scope: always
|
|
8
|
+
feature_domain: client_api
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 概述
|
|
12
|
+
|
|
13
|
+
`TXIoTEngine` 是整个 SDK 的入口,通过 `getInstance()` 获取单例,使用前须先调用 `login` 完成身份验证。
|
|
14
|
+
|
|
15
|
+
SDK 模块一览:
|
|
16
|
+
|
|
17
|
+
|模块|说明|
|
|
18
|
+
|---------|---------|
|
|
19
|
+
|TXIoTEngine 引擎管理|登录、获取各个业务对象。|
|
|
20
|
+
|TXIoTFamilyManager 家庭与房间管理|家庭、房间、成员管理。|
|
|
21
|
+
|TXIoTDeviceManager 设备管理|设备绑定/解绑、分享、指令下发、属性查询。|
|
|
22
|
+
|TXIoTCallSession 音视频通话|音视频通话。|
|
|
23
|
+
|TXIoTMonitorSession 监控直播|监控直播(拉流/对讲/云台/截图/录像)。|
|
|
24
|
+
|TXIoTCloudStorage 云存回放|云端录像的日期与事件查询。|
|
|
25
|
+
|公共类型与枚举|错误码、通用枚举、公共数据结构、回调接口。|
|
|
26
|
+
|
|
27
|
+
## 方法列表
|
|
28
|
+
|
|
29
|
+
|方法签名|描述|
|
|
30
|
+
|---------|---------|
|
|
31
|
+
|getInstance|获取引擎单例。|
|
|
32
|
+
|addListener/[removeListener](#removeListener.3A)|添加/移除引擎事件代理。|
|
|
33
|
+
|login|使用 appKey、userId、用户签名登录。|
|
|
34
|
+
|logout|登出当前账号。|
|
|
35
|
+
|getLoginUserInfo|获取当前登录用户信息。|
|
|
36
|
+
|getFamilyManager|获取家庭管理器,未登录时返回 null。|
|
|
37
|
+
|getDeviceManager|获取设备管理器,未登录时返回 null。|
|
|
38
|
+
|getCallSession|获取音视频通话会话,未登录时返回 null。|
|
|
39
|
+
|getMonitorSession|获取实时监控会话,未登录时返回 null。|
|
|
40
|
+
|getCloudStorage|获取云存模块,未登录时返回 null。|
|
|
41
|
+
|
|
42
|
+
### getInstance
|
|
43
|
+
|
|
44
|
+
**获取引擎单例**
|
|
45
|
+
|
|
46
|
+
|返回值|描述|
|
|
47
|
+
|---------|---------|
|
|
48
|
+
|Promise<TXIoTEngine>|SDK 引擎单例对象;首次调用会等待内部 wasm 模块加载完成。|
|
|
49
|
+
|
|
50
|
+
### addListener
|
|
51
|
+
|
|
52
|
+
**添加引擎事件代理对象**
|
|
53
|
+
|
|
54
|
+
|参数|描述|
|
|
55
|
+
|---------|---------|
|
|
56
|
+
|listener|引擎事件代理对象,回调方法参见引擎事件回调|
|
|
57
|
+
|
|
58
|
+
### removeListener
|
|
59
|
+
|
|
60
|
+
**移除引擎事件代理对象**
|
|
61
|
+
|
|
62
|
+
|参数|描述|
|
|
63
|
+
|---------|---------|
|
|
64
|
+
|listener|要移除的引擎事件代理对象。|
|
|
65
|
+
|
|
66
|
+
### login
|
|
67
|
+
|
|
68
|
+
**使用 appKey、userId、用户签名进行登录**
|
|
69
|
+
|
|
70
|
+
|参数|描述|
|
|
71
|
+
|---------|---------|
|
|
72
|
+
|appKey|string;应用密钥。|
|
|
73
|
+
|userId|string;用户 ID。支持字母、数字、下划线,长度不超过32字节。|
|
|
74
|
+
|userSignature|TXIoTUserSignature;用户签名对象,见 TXIoTUserSignature。|
|
|
75
|
+
|
|
76
|
+
### logout
|
|
77
|
+
|
|
78
|
+
**登出当前账号**
|
|
79
|
+
|
|
80
|
+
### getLoginUserInfo
|
|
81
|
+
|
|
82
|
+
**获取当前已登录的用户信息**
|
|
83
|
+
|
|
84
|
+
|返回值|描述|
|
|
85
|
+
|---------|---------|
|
|
86
|
+
|TXIoTUserInfo|已登录返回用户信息对象;未登录返回 null。|
|
|
87
|
+
|
|
88
|
+
### getFamilyManager
|
|
89
|
+
|
|
90
|
+
**获取家庭管理器**
|
|
91
|
+
|
|
92
|
+
|返回值|描述|
|
|
93
|
+
|---------|---------|
|
|
94
|
+
|TXIoTFamilyManager|返回家庭管理器实例;未初始化返回 null。。|
|
|
95
|
+
|
|
96
|
+
### getDeviceManager
|
|
97
|
+
|
|
98
|
+
**获取设备管理器**
|
|
99
|
+
|
|
100
|
+
|返回值|描述|
|
|
101
|
+
|---------|---------|
|
|
102
|
+
|TXIoTDeviceManager|返回设备管理器实例;未初始化返回 null。。|
|
|
103
|
+
|
|
104
|
+
### getCallSession
|
|
105
|
+
|
|
106
|
+
**获取音视频通话会话**
|
|
107
|
+
|
|
108
|
+
|返回值|描述|
|
|
109
|
+
|---------|---------|
|
|
110
|
+
|TXIoTCallSession|返回通话会话实例;未初始化返回 null。。|
|
|
111
|
+
|
|
112
|
+
### getMonitorSession
|
|
113
|
+
|
|
114
|
+
**获取实时监控会话**
|
|
115
|
+
|
|
116
|
+
|返回值|描述|
|
|
117
|
+
|---------|---------|
|
|
118
|
+
|TXIoTMonitorSession|返回监控会话实例;未初始化返回 null。。|
|
|
119
|
+
|
|
120
|
+
### getCloudStorage
|
|
121
|
+
|
|
122
|
+
**获取云存模块**
|
|
123
|
+
|
|
124
|
+
|参数|描述|
|
|
125
|
+
|---------|---------|
|
|
126
|
+
|deviceId|TXIoTDeviceId;设备标识(含 productId / deviceName)。|
|
|
127
|
+
|
|
128
|
+
|返回值|描述|
|
|
129
|
+
|---------|---------|
|
|
130
|
+
|TXIoTCloudStorage|返回与 deviceId 绑定的云存模块实例;未登录或初始化未完成时返回 null。每次调用返回新实例,不做缓存。。|
|
|
131
|
+
|
|
132
|
+
## 引擎事件回调
|
|
133
|
+
|
|
134
|
+
协议定义引擎层事件回调。
|
|
135
|
+
|
|
136
|
+
|回调|说明|
|
|
137
|
+
|---------|---------|
|
|
138
|
+
|onLoginSuccess|登录成功。|
|
|
139
|
+
|onLoginFailure|登录失败,返回 TXIoTErrorCode 和错误信息。|
|
|
140
|
+
|onLogout|登出完成。|
|
|
141
|
+
|onUserSignatureExpired|用户签名已过期,需重新登录。|
|
|
142
|
+
|onReceivePushMessage|收到推送消息(如设备上下线状态变更)。|
|
|
143
|
+
|
|
144
|
+
## 引擎相关数据结构与枚举
|
|
145
|
+
|
|
146
|
+
### TXIoTPushMessage
|
|
147
|
+
|
|
148
|
+
**推送消息,通过** `onReceivePushMessage` **回调接收。**
|
|
149
|
+
|
|
150
|
+
|字段|说明|
|
|
151
|
+
|---------|---------|
|
|
152
|
+
|messageTime|推送消息时间戳(Unix 秒级时间戳)。|
|
|
153
|
+
|type|推送消息类型。|
|
|
154
|
+
|subType|推送消息子类型。|
|
|
155
|
+
|deviceId|关联的设备 ID。|
|
|
156
|
+
|
|
157
|
+
### TXIoTUserSignature
|
|
158
|
+
|
|
159
|
+
**用户签名,用于登录认证。**
|
|
160
|
+
|
|
161
|
+
|字段|说明|
|
|
162
|
+
|---------|---------|
|
|
163
|
+
|requestId|请求 ID,由服务端签发。|
|
|
164
|
+
|timestamp|签名的 Unix 秒级时间戳。|
|
|
165
|
+
|nonce|签名随机数。|
|
|
166
|
+
|signature|签名字符串,由服务端签发。|
|
|
167
|
+
|
|
168
|
+
### TXIoTPushMessageType
|
|
169
|
+
|
|
170
|
+
**推送消息类型枚举。**
|
|
171
|
+
|
|
172
|
+
|枚举|取值|
|
|
173
|
+
|---------|---------|
|
|
174
|
+
|StatusChange|0|
|
|
175
|
+
|
|
176
|
+
### TXIoTPushMessageSubType
|
|
177
|
+
|
|
178
|
+
**推送消息子类型枚举。**
|
|
179
|
+
|
|
180
|
+
|枚举|取值|
|
|
181
|
+
|---------|---------|
|
|
182
|
+
|Online|0|
|
|
183
|
+
|Offline|1|
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
---
|
|
2
|
+
product: iot
|
|
3
|
+
framework:
|
|
4
|
+
- minprogram
|
|
5
|
+
types:
|
|
6
|
+
- api
|
|
7
|
+
retrievable_scope: always
|
|
8
|
+
feature_domain: client_api
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 概述
|
|
12
|
+
|
|
13
|
+
本文档描述 IoT App SDK 在 Android 端的公共类型与枚举定义,包含错误码、通用枚举、公共数据结构与通用回调等,定义于 `TXIoTEngineDef` 接口中。
|
|
14
|
+
|
|
15
|
+
> **说明:**
|
|
16
|
+
> `TXIoTEngineDef` 是各模块共用的基础类型定义接口,其他模块均通过 SDK 的公共依赖引入。各模块文档见:
|
|
17
|
+
>
|
|
18
|
+
> - TXIoTEngine:引擎管理。
|
|
19
|
+
> - TXIoTFamilyManager:家庭与房间管理。
|
|
20
|
+
> - TXIoTDeviceManager:设备管理。
|
|
21
|
+
> - TXIoTCallSession:音视频通话。
|
|
22
|
+
> - TXIoTMonitorSession:实时监控。
|
|
23
|
+
> - TXIoTCloudStorage:云存回放。
|
|
24
|
+
|
|
25
|
+
## 错误码 — TXIoTErrorCode
|
|
26
|
+
|
|
27
|
+
|错误码|说明|
|
|
28
|
+
|---------|---------|
|
|
29
|
+
|Success|成功。|
|
|
30
|
+
|Failed|通用失败。|
|
|
31
|
+
|InvalidParameter|参数非法。|
|
|
32
|
+
|InvalidAccessToken|Access Token 无效。|
|
|
33
|
+
|RateLimited|请求频率超限。|
|
|
34
|
+
|UnauthorizedOperation|未授权操作。|
|
|
35
|
+
|DeviceBound|设备已绑定。|
|
|
36
|
+
|BindTokenNotExist|绑定令牌不存在。|
|
|
37
|
+
|BindTokenIsExpired|绑定令牌已过期。|
|
|
38
|
+
|BindTokenNoPairWithDevice|绑定令牌与设备不匹配。|
|
|
39
|
+
|InvalidMessageId|消息 ID 无效。|
|
|
40
|
+
|FamilyDeviceLimitExceeded|家庭设备数量超限。|
|
|
41
|
+
|CanNotBindSameFamily|不能绑定到同一家庭。|
|
|
42
|
+
|FamilyNotExist|家庭不存在。|
|
|
43
|
+
|ProductNotExist|产品不存在。|
|
|
44
|
+
|DeviceNotExist|设备不存在。|
|
|
45
|
+
|DeviceOffline|设备离线。|
|
|
46
|
+
|CameraStartFail|摄像头启动失败。|
|
|
47
|
+
|CameraNotAuthorized|摄像头权限未授权。|
|
|
48
|
+
|CameraOccupy|摄像头被占用。|
|
|
49
|
+
|MicStartFail|麦克风启动失败。|
|
|
50
|
+
|MicNotAuthorized|麦克风权限未授权。|
|
|
51
|
+
|MicOccupy|麦克风被占用。|
|
|
52
|
+
|SpeakerStartFail|扬声器启动失败。|
|
|
53
|
+
|RecordDurationTooShort|录制时长过短。|
|
|
54
|
+
|FilePathUnwritable|文件路径不可写。|
|
|
55
|
+
|FilePathAlreadyExist|文件路径已存在。|
|
|
56
|
+
|DeviceSwitchToVoIP|设备切换到 VOIP 模式。|
|
|
57
|
+
|
|
58
|
+
## 通用枚举
|
|
59
|
+
|
|
60
|
+
### TXIoTFamilyRole
|
|
61
|
+
|
|
62
|
+
家庭角色枚举。在 TXIoTFamilyManager 的成员管理接口中使用。
|
|
63
|
+
|
|
64
|
+
|枚举|说明|
|
|
65
|
+
|---------|---------|
|
|
66
|
+
|Unknown|未知。|
|
|
67
|
+
|Member|普通成员。|
|
|
68
|
+
|Admin|管理员。|
|
|
69
|
+
|
|
70
|
+
## 公共数据结构
|
|
71
|
+
|
|
72
|
+
以下类型定义于 `TXIoTEngineDef` 接口中,作为 SDK 内部共用数据类型。
|
|
73
|
+
|
|
74
|
+
### TXIoTDeviceId
|
|
75
|
+
|
|
76
|
+
设备 ID,用于唯一标识一个设备。在 TXIoTDeviceManager 的绑定、查询接口中使用。
|
|
77
|
+
|
|
78
|
+
|字段|说明|
|
|
79
|
+
|---------|---------|
|
|
80
|
+
|productId|产品 ID。|
|
|
81
|
+
|deviceName|设备名称。|
|
|
82
|
+
|
|
83
|
+
### TXIoTDeviceStatus
|
|
84
|
+
|
|
85
|
+
设备在线状态。包含当前在线情况、累计在线时长和上线时间戳。在 TXIoTDeviceManager 的设备信息中包含此字段。
|
|
86
|
+
|
|
87
|
+
|字段|说明|
|
|
88
|
+
|---------|---------|
|
|
89
|
+
|isOnline|是否在线。|
|
|
90
|
+
|onlineDuration|累计在线时长(单位:秒)。|
|
|
91
|
+
|bringOnlineTime|上线时间戳(Unix 秒级时间戳)。|
|
|
92
|
+
|
|
93
|
+
### TXIoTDeviceInfo
|
|
94
|
+
|
|
95
|
+
设备信息。在 TXIoTDeviceManager 的绑定、设备列表、被分享设备列表等查询接口中返回。
|
|
96
|
+
|
|
97
|
+
|字段|说明|
|
|
98
|
+
|---------|---------|
|
|
99
|
+
|deviceId|设备 ID。|
|
|
100
|
+
|aliasName|设备别名。|
|
|
101
|
+
|familyId|所属家庭 ID。|
|
|
102
|
+
|roomId|所属房间 ID。|
|
|
103
|
+
|iconUrl|设备图标 URL。|
|
|
104
|
+
|createTime|创建时间(Unix 秒级时间戳)。|
|
|
105
|
+
|updateTime|更新时间(Unix 秒级时间戳)。|
|
|
106
|
+
|status|设备在线状态。|
|
|
107
|
+
|
|
108
|
+
### TXIoTFamilyInfo
|
|
109
|
+
|
|
110
|
+
家庭信息。在 TXIoTFamilyManager 的创建、查询接口中使用。
|
|
111
|
+
|
|
112
|
+
|字段|说明|
|
|
113
|
+
|---------|---------|
|
|
114
|
+
|familyId|家庭 ID。|
|
|
115
|
+
|name|家庭名称。|
|
|
116
|
+
|createTime|创建时间(Unix 秒级时间戳)。|
|
|
117
|
+
|updateTime|更新时间(Unix 秒级时间戳)。|
|
|
118
|
+
|role|当前用户在该家庭中的角色。|
|
|
119
|
+
|
|
120
|
+
### TXIoTRoomInfo
|
|
121
|
+
|
|
122
|
+
房间信息。房间是家庭下的二级分组,在 TXIoTFamilyManager 的房间管理接口中使用。
|
|
123
|
+
|
|
124
|
+
|字段|说明|
|
|
125
|
+
|---------|---------|
|
|
126
|
+
|roomId|房间 ID。|
|
|
127
|
+
|name|房间名称。|
|
|
128
|
+
|familyId|所属家庭 ID。|
|
|
129
|
+
|deviceCount|房间内设备数量。|
|
|
130
|
+
|createTime|创建时间(Unix 秒级时间戳)。|
|
|
131
|
+
|updateTime|更新时间(Unix 秒级时间戳)。|
|
|
132
|
+
|
|
133
|
+
### TXIoTUserInfo
|
|
134
|
+
|
|
135
|
+
用户信息。在 TXIoTFamilyManager 的成员管理和 TXIoTDeviceManager 的设备分享接口中使用。
|
|
136
|
+
|
|
137
|
+
|字段|说明|
|
|
138
|
+
|---------|---------|
|
|
139
|
+
|userId|用户 ID。|
|
|
140
|
+
|nickName|用户昵称。|
|
|
141
|
+
|avatarUrl|用户头像 URL。|
|
|
142
|
+
|role|用户角色。|
|
|
143
|
+
|deviceBindTime|设备绑定时间(Unix 秒级时间戳)。|
|
|
144
|
+
|
|
145
|
+
### TXIoTPageResult
|
|
146
|
+
|
|
147
|
+
分页查询结果。`T` 为数据列表元素类型。在 TXIoTDeviceManager 的设备列表分页查询中使用:首次查询时 `nextPageToken` 传空,结果中返回的 `nextPageToken` 用于获取下一页。
|
|
148
|
+
|
|
149
|
+
|字段|说明|
|
|
150
|
+
|---------|---------|
|
|
151
|
+
|nextPageToken|下一页游标;首次查询传空字符串,取结果中返回值用于获取下一页;为空字符串表示已到最后一页。|
|
|
152
|
+
|dataList|当前页数据列表。|
|