public class LikeStatus extends Object
It may also contain the like status for a username
:
Modifier and Type | Field and Description |
---|---|
String |
activityObject |
static int |
DISLIKED
Constant used when the
username disliked the
activityObject . |
long |
dislikesCount |
static int |
LIKED
Constant used when the
username liked the activityObject
. |
long |
likesCount |
static int |
UNKNOWN
Constant used when the
username didn't like nor dislike the
activityObject . |
int |
userLikeStatus |
String |
username |
Constructor and Description |
---|
LikeStatus(String activityObject,
long likesCount,
long dislikesCount)
Creates a
LikeStatus without the like status for a
username . |
LikeStatus(String activityObject,
long likesCount,
long dislikesCount,
String username,
int userLikeStatus)
Creates a
LikeStatus with the like status for the specified
username . |
public static final int LIKED
username
liked the activityObject
.public static final int DISLIKED
username
disliked the
activityObject
.public static final int UNKNOWN
username
didn't like nor dislike the
activityObject
.public final String activityObject
public final long likesCount
public final long dislikesCount
public final String username
public final int userLikeStatus
public LikeStatus(String activityObject, long likesCount, long dislikesCount, String username, int userLikeStatus)
LikeStatus
with the like status for the specified
username
.activityObject
- the activity object for which this
LikeStatus
applylikesCount
- the likes count for the activity objectdislikesCount
- the dislikes count for the activity objectusername
- the username on which the userLikeStatus
applyuserLikeStatus
- the like status for the username
public LikeStatus(String activityObject, long likesCount, long dislikesCount)
LikeStatus
without the like status for a
username
.activityObject
- the activity object for which this
LikeStatus
applylikesCount
- the likes count for the activity objectdislikesCount
- the dislikes count for the activity objectpublic Map<String,Serializable> toMap()
Map
of attributes for this LikeStatus
.Copyright © 2013 Nuxeo SA. All Rights Reserved.