public final class ActivityPost
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ActivityPost.Builder
Convenience builder for
ActivityPost . |
static class |
ActivityPost.Type
Type of Activity Feed content, can be
ActivityPost.Type.POST or ActivityPost.Type.COMMENT . |
Modifier and Type | Method and Description |
---|---|
static ActivityPost.Builder |
builder() |
boolean |
equals(java.lang.Object other) |
Action |
getAction()
Returns button action if post has button object, and null otherwise.
|
PostAuthor |
getAuthor() |
java.lang.String |
getButtonAction()
Deprecated.
Use
getAction() . |
java.lang.String |
getButtonTitle()
Returns button title if post has button object, and null otherwise.
|
int |
getCommentsCount() |
long |
getCreatedAt()
Date of post creation.
|
java.lang.String |
getFeedId()
Returns a feed in which this activity or comment was posted.
|
java.lang.String |
getId() |
java.lang.String |
getImageUrl()
Returns content image's url.
|
int |
getLikesCount() |
java.util.List<Mention> |
getMentions()
Returns a list of mentions in post content text.
|
long |
getStickyEnd()
Date when post ends to be sticky.
|
long |
getStickyStart()
Date when post becomes to be sticky.
|
java.lang.String |
getText()
Returns text content of post.
|
java.lang.String |
getVideoUrl()
Returns content video's url.
|
boolean |
hasButton()
Checks if activity post has button content.
|
int |
hashCode() |
boolean |
hasImage()
Checks if activity post has image content.
|
boolean |
hasText()
Checks if activity post has text content.
|
boolean |
hasVideo()
Checks if activity post has video content.
|
boolean |
isLikedByMe() |
boolean |
isStickyAt(java.util.Date date)
Returns if post is sticky at provided time.
|
java.lang.String |
toString() |
public static ActivityPost.Builder builder()
public java.lang.String getId()
public boolean hasText()
public java.lang.String getText()
public boolean hasImage()
public boolean hasVideo()
public java.lang.String getImageUrl()
public java.lang.String getVideoUrl()
public boolean hasButton()
public long getCreatedAt()
public java.lang.String getButtonTitle()
public Action getAction()
@Deprecated public java.lang.String getButtonAction()
getAction()
.public PostAuthor getAuthor()
public int getCommentsCount()
public int getLikesCount()
public boolean isLikedByMe()
public long getStickyStart()
public long getStickyEnd()
public boolean isStickyAt(java.util.Date date)
date
- date to check.public java.lang.String getFeedId()
public java.util.List<Mention> getMentions()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
(c) Copyright GetSocial BV, 2020. All Rights Reserved.