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) |
PostAuthor |
getAuthor() |
java.lang.String |
getButtonAction()
Returns button action if post has button object, and null otherwise.
|
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()
@Nullable public java.lang.String getText()
public boolean hasImage()
public boolean hasVideo()
@Nullable public java.lang.String getImageUrl()
@Nullable public java.lang.String getVideoUrl()
public boolean hasButton()
public long getCreatedAt()
@Nullable public java.lang.String getButtonTitle()
@Nullable public java.lang.String getButtonAction()
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, 2017. All Rights Reserved.