public class ActivityContent
extends java.lang.Object
Constructor and Description |
---|
ActivityContent() |
Modifier and Type | Method and Description |
---|---|
ActivityContent |
addAttachment(MediaAttachment attachment)
Add attachment to the post.
|
ActivityContent |
addProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Same as
addProperty(String, String) , but add multiple values at the same time. |
ActivityContent |
addProperty(java.lang.String key,
java.lang.String value)
Add custom property to the post.
|
static ActivityContent |
createWithAttachment(MediaAttachment attachment)
Create a content with a single attachment.
|
static ActivityContent |
createWithText(java.lang.String text)
Create a content with text.
|
java.util.List<MediaAttachment> |
getAttachments() |
ActivityButton |
getButton() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
java.lang.String |
getText() |
ActivityContent |
withButton(ActivityButton button)
Set action button.
|
ActivityContent |
withText(java.lang.String text)
Set text of the post.
|
public static ActivityContent createWithText(java.lang.String text)
text
- text to be posted in the feed.public static ActivityContent createWithAttachment(MediaAttachment attachment)
addAttachment(MediaAttachment)
.attachment
- media attachment.public ActivityContent addAttachment(MediaAttachment attachment)
attachment
- media attachment.public ActivityContent withText(java.lang.String text)
text
- post text.public ActivityContent withButton(ActivityButton button)
button
- action button.public ActivityContent addProperty(java.lang.String key, java.lang.String value)
key
- you can get the property value by this key in future.value
- arbitrary value.public ActivityContent addProperties(java.util.Map<java.lang.String,java.lang.String> properties)
addProperty(String, String)
, but add multiple values at the same time.properties
- map of properties.public java.lang.String getText()
public java.util.List<MediaAttachment> getAttachments()
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public ActivityButton getButton()
(c) Copyright GetSocial BV, 2020. All Rights Reserved.