MessagingExtensionResult Class
- java.
lang. Object - com.
microsoft. bot. schema. teams. MessagingExtensionResult
- com.
public class MessagingExtensionResult
Messaging extension result.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| MessagingExtensionResult() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Activity |
getActivityPreview()
Gets (Only when type is bot |
| java.lang.String |
getAttachmentLayout()
Gets hint for how to deal with multiple attachments. |
|
java.util.List<Messaging |
getAttachments()
Gets (Only when type is result) Attachments. |
|
Messaging |
getSuggestedActions()
Gets (Only when type is auth or config) suggested actions. |
| java.lang.String |
getText()
Gets (Only when type is message) Text. |
| java.lang.String |
getType()
Gets the type of the result. |
| void |
setActivityPreview(Activity withActivityPreview)
Sets (Only when type is bot |
| void |
setAttachment(MessagingExtensionAttachment withAttachment)
Sets (Only when type is result) Attachments to the specific attachment. |
| void |
setAttachmentLayout(String withAttachmentLayout)
Sets hint for how to deal with multiple attachments. |
| void |
setAttachments(List<MessagingExtensionAttachment> withAttachments)
Sets (Only when type is result) Attachments. |
| void |
setSuggestedActions(MessagingExtensionSuggestedAction withSuggestedActions)
Sets (Only when type is auth or config) suggested actions. |
| void |
setText(String withText)
Sets (Only when type is message) Text. |
| void |
setType(String withType)
Sets the type of the result. |
Methods inherited from java.lang.Object
Constructor Details
MessagingExtensionResult
public MessagingExtensionResult()
Method Details
getActivityPreview
public Activity getActivityPreview()
Gets (Only when type is botMessagePreview) Message activity.
Returns:
getAttachmentLayout
public String getAttachmentLayout()
Gets hint for how to deal with multiple attachments. Possible values include: 'list', 'grid'
Returns:
getAttachments
public List
Gets (Only when type is result) Attachments.
Returns:
getSuggestedActions
public MessagingExtensionSuggestedAction getSuggestedActions()
Gets (Only when type is auth or config) suggested actions.
Returns:
getText
public String getText()
Gets (Only when type is message) Text.
Returns:
getType
public String getType()
Gets the type of the result. Possible values include: 'result', 'auth', 'config', 'message', 'botMessagePreview'
Returns:
setActivityPreview
public void setActivityPreview(Activity withActivityPreview)
Sets (Only when type is botMessagePreview) Message activity.
Parameters:
setAttachment
public void setAttachment(MessagingExtensionAttachment withAttachment)
Sets (Only when type is result) Attachments to the specific attachment. This replaces all previous attachments on the object.
Parameters:
setAttachmentLayout
public void setAttachmentLayout(String withAttachmentLayout)
Sets hint for how to deal with multiple attachments. Possible values include: 'list', 'grid'
Parameters:
setAttachments
public void setAttachments(List
Sets (Only when type is result) Attachments. This replaces all previous attachments on the object.
Parameters:
setSuggestedActions
public void setSuggestedActions(MessagingExtensionSuggestedAction withSuggestedActions)
Sets (Only when type is auth or config) suggested actions.
Parameters:
setText
public void setText(String withText)
Sets (Only when type is message) Text.
Parameters:
setType
public void setType(String withType)
Sets the type of the result. Possible values include: 'result', 'auth', 'config', 'message', 'botMessagePreview'
Parameters: