Package im.getsocial.sdk.communities
Class Label
- java.lang.Object
-
- im.getsocial.sdk.communities.Label
-
public class Label extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Label(java.lang.String name, int followersCount, int activitiesCount, boolean isFollower, double popularity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActivitiesCount()
Number of activities with the label.int
getFollowersCount()
Number of followers of the label.java.lang.String
getName()
Unique identifier of the label.java.lang.Double
getPopularity()
Popularity, calculated based on comments and reactions.boolean
isFollower()
If current user follows a label.java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Unique identifier of the label.- Returns:
- id.
-
getFollowersCount
public int getFollowersCount()
Number of followers of the label.- Returns:
- count of followers of the label.
-
getActivitiesCount
public int getActivitiesCount()
Number of activities with the label.- Returns:
- count of activities with the label.
-
isFollower
public boolean isFollower()
If current user follows a label.- Returns:
- true, if current user is follower of the label, false otherwise.
-
getPopularity
public java.lang.Double getPopularity()
Popularity, calculated based on comments and reactions.- Returns:
- popularity.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-