public final class ActivityPost extends 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() |
PostAuthor |
getAuthor() |
String |
getButtonAction()
Returns button action if post has button object, and null otherwise.
|
String |
getButtonTitle()
Returns button title if post has button object, and null otherwise.
|
int |
getCommentsCount() |
long |
getCreatedAt()
Date of post creation.
|
String |
getFeedId()
Returns a feed in which this activity or comment was posted.
|
String |
getId() |
String |
getImageUrl()
Returns content image's url.
|
int |
getLikesCount() |
long |
getStickyEnd()
Date when post ends to be sticky.
|
long |
getStickyStart()
Date when post becomes to be sticky.
|
String |
getText()
Returns text content of post.
|
boolean |
hasButton()
Checks if activity post has button content.
|
boolean |
hasImage()
Checks if activity post has image content.
|
boolean |
hasText()
Checks if activity post has text content.
|
boolean |
isLikedByMe() |
boolean |
isStickyAt(Date date)
Returns if post is sticky at provided time.
|
String |
toString() |
public static ActivityPost.Builder builder()
public String getId()
public boolean hasText()
public boolean hasImage()
@Nullable public String getImageUrl()
public boolean hasButton()
public long getCreatedAt()
@Nullable public String getButtonTitle()
@Nullable public String getButtonAction()
public PostAuthor getAuthor()
public int getCommentsCount()
public int getLikesCount()
public boolean isLikedByMe()
public long getStickyStart()
public long getStickyEnd()
public boolean isStickyAt(Date date)
date
- date to check.public String getFeedId()
(c) Copyright GetSocial BV, 2017. All Rights Reserved.