public interface Activity
Modifier and Type | Interface and Description |
---|---|
static class |
Activity.Field
The fields that represent the activity object in json form.
|
Modifier and Type | Method and Description |
---|---|
String |
getAppId()
Get a string specifying the application that this activity is associated with.
|
String |
getBody()
Get a string specifying an optional expanded version of an activity.
|
String |
getBodyId()
Get a string specifying the body template message ID in the gadget spec.
|
String |
getExternalId()
Get an optional string ID generated by the posting application.
|
String |
getId()
Get a string ID that is permanently associated with this activity.
|
List<MediaItem> |
getMediaItems()
Get any photos, videos, or images that should be associated with the activity.
|
Long |
getPostedTime()
Get the time at which this activity took place in milliseconds since the epoch.
|
Float |
getPriority()
Get the priority, a number between 0 and 1 representing the relative priority of this activity
in relation to other activities from the same source.
|
String |
getStreamFaviconUrl()
Get a string specifying the URL for the stream's favicon.
|
String |
getStreamSourceUrl()
Get a string specifying the stream's source URL.
|
String |
getStreamTitle()
Get a string specifing the title of the stream.
|
String |
getStreamUrl()
Get a string specifying the stream's URL.
|
Map<String,String> |
getTemplateParams()
Get a map of custom key/value pairs associated with this activity.
|
String |
getTitle()
Get a string specifying the primary text of an activity.
|
String |
getTitleId()
Get a string specifying the title template message ID in the gadget spec.
|
Date |
getUpdated()
Get the last updated date of the Activity, additional to the Opensocial specification for the
REST-API.
|
String |
getUrl()
Get a string specifying the URL that represents this activity.
|
String |
getUserId()
Get a string ID of the user who this activity is for.
|
void |
setAppId(String appId)
Set a string specifying the application that this activity is associated with.
|
void |
setBody(String body)
Set a string specifying an optional expanded version of an activity.
|
void |
setBodyId(String bodyId)
Set a string specifying the body template message ID in the gadget spec.
|
void |
setExternalId(String externalId)
Set an optional string ID generated by the posting application.
|
void |
setId(String id)
Set a string ID that is permanently associated with this activity.
|
void |
setMediaItems(List<MediaItem> mediaItems)
Set any photos, videos, or images that should be associated with the activity.
|
void |
setPostedTime(Long postedTime)
Set the time at which this activity took place in milliseconds since the epoch Container
support for this field is OPTIONAL.
|
void |
setPriority(Float priority)
Set the priority, a number between 0 and 1 representing the relative priority of this activity
in relation to other activities from the same source.
|
void |
setStreamFaviconUrl(String streamFaviconUrl)
Set a string specifying the URL for the stream's favicon.
|
void |
setStreamSourceUrl(String streamSourceUrl)
Set a string specifying the stream's source URL.
|
void |
setStreamTitle(String streamTitle)
Set a string specifing the title of the stream.
|
void |
setStreamUrl(String streamUrl)
Set a string specifying the stream's URL.
|
void |
setTemplateParams(Map<String,String> templateParams)
Set a map of custom key/value pairs associated with this activity.
|
void |
setTitle(String title)
Set a string specifying the primary text of an activity.
|
void |
setTitleId(String titleId)
Set a string specifying the title template message ID in the gadget spec.
|
void |
setUpdated(Date updated)
.
|
void |
setUrl(String url)
Set a string specifying the URL that represents this activity.
|
void |
setUserId(String userId)
Get a string ID of the user who this activity is for.
|
String getAppId()
void setAppId(String appId)
appId
- A string specifying the application that this activity is associated withString getBody()
void setBody(String body)
body
- a string specifying an optional expanded version of an activity.String getBodyId()
void setBodyId(String bodyId)
bodyId
- a string specifying the body template message ID in the gadget spec.String getExternalId()
void setExternalId(String externalId)
externalId
- An optional string ID generated by the posting application.String getId()
void setId(String id)
id
- a string ID that is permanently associated with this activity.Date getUpdated()
void setUpdated(Date updated)
updated
- the last updated dateList<MediaItem> getMediaItems()
MediaItem
containing any photos, videos, or images that should be
associated with the activity.void setMediaItems(List<MediaItem> mediaItems)
mediaItems
- a list of MediaItem
to be associated with the activityLong getPostedTime()
void setPostedTime(Long postedTime)
postedTime
- the time at which this activity took place in milliseconds since the epochFloat getPriority()
void setPriority(Float priority)
priority
- a number between 0 and 1 representing the relative priority of this activity in
relation to other activities from the same source.String getStreamFaviconUrl()
void setStreamFaviconUrl(String streamFaviconUrl)
streamFaviconUrl
- a string specifying the URL for the stream's favicon.String getStreamSourceUrl()
void setStreamSourceUrl(String streamSourceUrl)
streamSourceUrl
- a string specifying the stream's source URL.String getStreamTitle()
void setStreamTitle(String streamTitle)
streamTitle
- a string specifing the title of the stream.String getStreamUrl()
void setStreamUrl(String streamUrl)
streamUrl
- a string specifying the stream's URL.Map<String,String> getTemplateParams()
void setTemplateParams(Map<String,String> templateParams)
Map
. The object may be either a String or an Person
. When
passing in a person with key PersonKey, can use the following replacement variables in the
template:
templateParams
- a map of custom key/value pairs associated with this activity.String getTitle()
void setTitle(String title)
title
- a string specifying the primary text of an activity.String getTitleId()
void setTitleId(String titleId)
titleId
- a string specifying the title template message ID in the gadget spec.String getUrl()
void setUrl(String url)
url
- a string specifying the URL that represents this activity.String getUserId()
void setUserId(String userId)
userId
- a string ID of the user who this activity is for.Copyright © 2023 WSO2. All rights reserved.