@Immutable public class Activity extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Activity.Builder
A builder that facilitates construction of
Activity objects. |
static class |
Activity.Field
Activity fields that can be loaded when retrieving an activity
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
AppId |
getAppId()
Get the app id this activity is associated with.
|
String |
getBody()
Get a body string specifying an optional expanded version of an activity.
|
String |
getExternalId()
Get an optional string ID generated by the posting application.
|
ActivityId |
getId()
Get the activity id that is permanently associated with this activity.
|
List<MediaItem> |
getMediaItems()
Get the media items 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.
|
String |
getTitle()
Get a string specifying the primary text of an activity.
|
Date |
getUpdated()
Get the last updated date of the activity.
|
String |
getUrl()
Get a string specifying the URL that represents this activity.
|
PersonId |
getUserId()
Get the id of the user who this activity is for.
|
int |
hashCode() |
String |
toString() |
public AppId getAppId()
public String getBody()
public String getExternalId()
public ActivityId getId()
public Date getUpdated()
public List<MediaItem> getMediaItems()
public Long getPostedTime()
public Float getPriority()
public String getStreamFaviconUrl()
public String getStreamSourceUrl()
public String getStreamTitle()
public String getStreamUrl()
public String getTitle()
public String getUrl()
public PersonId getUserId()
Copyright © 2024 Atlassian. All rights reserved.