Package im.getsocial.sdk.communities
Class Tag
- java.lang.Object
-
- im.getsocial.sdk.communities.Tag
-
public class Tag extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Tag(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 tag.int
getFollowersCount()
Number of followers of the tag.java.lang.String
getName()
Unique identifier of the tag.java.lang.Double
getPopularity()
Popularity, calculated based on comments and reactions.boolean
isFollower()
If current user follows a tag.java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Unique identifier of the tag.- Returns:
- id.
-
getFollowersCount
public int getFollowersCount()
Number of followers of the tag.- Returns:
- count of followers of the tag.
-
getActivitiesCount
public int getActivitiesCount()
Number of activities with the tag.- Returns:
- count of activities with the tag.
-
isFollower
public boolean isFollower()
If current user follows a tag.- Returns:
- true, if current user is follower of the tag, 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
-
-