智能客服
你问我答,随时在线为你解决问题
HMS Core
Class Info |
|---|
public class ContentData 捐赠内容数据,一个消息可以发送多个内容数据,一般对应一个事件; Header和Payload Key总数需小于100。 |
Qualifier and Type | Method Name |
|---|---|
ContentData | setHeader(String key, String value) |
ContentData | |
ContentData | |
ContentData | |
ContentData |
Name | Type | Mandatory or not | Description |
|---|---|---|---|
namespace | String | M | 命名空间: 示例:event:事件类型。 |
name | String | M | 捐赠名称: 示例:featurePrediction:功能预测事件。 |
Type | Description |
|---|---|
返回当前值。 |
Method |
|---|
public ContentData setPayload(String key, JSONObject value) 设置payload取值,包含eventCommonInfo、predictInfo、faFormInfo字段。 |
Name | Description |
|---|---|
key | Payload键,包含字段eventCommonInfo、predictInfo、faFormInfo。 |
value | 字段内容。 |
Name | Type | Mandatory or not | Description |
|---|---|---|---|
eventCommonInfo | jsonString | M | 事件的公共描述信息。 |
predictInfo | jsonString | M | 功能预测消息。 |
faFormInfo | jsonString | M | fa卡片信息。 |
Type | Description |
|---|---|
返回当前值。 |
Method |
|---|
public ContentData setPayload(String key, String value) 设置payload取值,包含identifier、intentVersion字段。 |
Name | Description |
|---|---|
key | Payload键,包含identifier、intentVersion字段。 |
value | 字段内容。 |
Name | Type | Mandatory or not | Description |
|---|---|---|---|
identifier | String | M | 一个捐赠实例的标识。 |
intentVersion | String | M | 意图版本号。 |
Type | Description |
|---|---|
返回当前值。 |
Method |
|---|
public ContentData setPayload(String key, String[] value) 设置payload取值,包含identifiers、entityIds字段。 |
Name | Description |
|---|---|
key | Payload键,包含identifiers、entityIds字段。 |
value | 字段内容。 |
Name | Type | Mandatory or not | Description |
|---|---|---|---|
identifiers | String[] | M | 仅用在deleteIntent(String intentName, String[] identifiers)和deleteIntent(String intentName)场景下,删除id列表,没有表示删除该intent下的所有记录。 |
entityIds | String[] | M | 只用在deleteEntity场景下, 删除entityId列表。 |
Type | Description |
|---|---|
返回当前值。 |
Method |
|---|
public ContentData setPayload(String key, Boolean value) 设置payload取值,包含renew字段。 |
Name | Description |
|---|---|
key | payload键,包含renew字段。 |
value | 字段内容。 |
Name | Type | Mandatory or not | Description |
|---|---|---|---|
renew | Boolean | M | 是否上云获取新的Service Open Id。 |
Type | Description |
|---|---|
返回当前值。 |
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功