getSmartEventSwitchState(params: GetSmartEventSwitchStateParams)
版本要求:
@tuya-miniapp/cloud-api≥1.0.5
描述
查询智能事件开关
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 是 | 请求体 |
返回值
类型:Promise<GetSmartEventSwitchStateResult>
hadService、switchState、extContent
引用对象
type
GetSmartEventSwitchStateResult| 属性 | 类型 | 描述 |
|---|---|---|
hadService | boolean | 是否已开通相关服务 |
switchState | 0 | 1 | 开关状态(0 / 1) |
extContent | string | 扩展内容(JSON 字符串) |
合法值
GetSmartEventSwitchStateParams.serviceBusinessType
| 值 | 说明 | 最低版本 |
|---|---|---|
aiSmartFreeEvent | - | - |
aiSmartFreeEventImage2Text | - | - |
GetSmartEventSwitchStateResult.switchState
| 值 | 说明 | 最低版本 |
|---|---|---|
0 | - | - |
1 | - | - |