Class Info |
|---|
public class ContentData Content data. One message can be used to send multiple records of content data, which corresponds to one event. Note that the total number of Header and Payload keys should be less than 100. |
Qualifier and Type | Method Name |
|---|---|
ContentData | setHeader(String key, String value) |
ContentData | |
ContentData | |
ContentData | |
ContentData |
Method |
|---|
public ContentData setHeader(String key, String value) Sets Header, which includes the following fields: namespace and name. |
Type | Description |
|---|---|
ContentData object. |
Method |
|---|
public ContentData setPayload(String key, JSONObject value) Sets Payload, which includes the following fields: eventCommonInfo, predictInfo, and faFormInfo. |
Name | Description |
|---|---|
key | Key of Payload, which includes the following fields: eventCommonInfo, predictInfo, and faFormInfo. |
value | Value of Payload. |
Type | Description |
|---|---|
ContentData object. |
Method |
|---|
public ContentData setPayload(String key, String value) Sets Payload, which includes the following fields: identifier and intentVersion. |
Name | Description |
|---|---|
key | Key of Payload, which includes the following fields: identifier and intentVersion. |
value | Value of Payload. |
Type | Description |
|---|---|
ContentData object. |
Method |
|---|
public ContentData setPayload(String key, String[] value) Sets Payload, which includes the following fields: identifiers and entityIds. |
Name | Description |
|---|---|
key | Key of Payload, which includes the following fields: identifiers and entityIds. |
value | Value of Payload. |
Name | Type | Mandatory | Description |
|---|---|---|---|
String[] | Yes | IDs of the data under an Intent.
| |
String[] | Yes | IDs of an entity. When this field is passed to deleteEntity, the entity in different Intents will be deleted, based on the specified entity IDs in those Intents. |
Type | Description |
|---|---|
ContentData object. |
Method |
|---|
public ContentData setPayload(String key, Boolean value) Sets Payload, which includes the renew field. |
Name | Description |
|---|---|
key | Payload key, including the renew field. |
value | Value of Payload. |
Name | Type | Mandatory | Description |
|---|---|---|---|
renew | Boolean | Yes | Whether to obtain a new service open ID from the cloud. |
Type | Description |
|---|---|
ContentData object. |