Package im.getsocial.sdk.communities
Class Group
- java.lang.Object
-
- im.getsocial.sdk.communities.Group
-
public class Group extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Group(java.lang.String id, java.lang.String title, java.lang.String description, java.lang.String avatarUrl, long createdAt, long updatedAt, int followersCount, boolean isFollower, int membersCount, Membership membershipInfo, CommunitiesSettings settings, double popularity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAvatarUrl()
Get avatar URL of the topic.long
getCreatedAt()
Get topic's creation date in milliseconds in Unix time.java.lang.String
getDescription()
Get localized description of the topic.int
getFollowersCount()
Number of followers of the topic.java.lang.String
getId()
Unique identifier of the topic.int
getMembersCount()
Membership
getMembership()
java.lang.Double
getPopularity()
Popularity, calculated based on comments and reactions.CommunitiesSettings
getSettings()
Get settings for the topic.java.lang.String
getTitle()
Get localized title of the topic.long
getUpdatedAt()
Last date when topic was updated.boolean
isFollower()
If current user follows a topic.java.lang.String
toString()
-
-
-
Constructor Detail
-
Group
public Group(java.lang.String id, java.lang.String title, java.lang.String description, java.lang.String avatarUrl, long createdAt, long updatedAt, int followersCount, boolean isFollower, int membersCount, Membership membershipInfo, CommunitiesSettings settings, double popularity)
-
-
Method Detail
-
getId
public java.lang.String getId()
Unique identifier of the topic.- Returns:
- id.
-
getTitle
public java.lang.String getTitle()
Get localized title of the topic.- Returns:
- localized title.
-
getDescription
public java.lang.String getDescription()
Get localized description of the topic.- Returns:
- localized description.
-
getAvatarUrl
public java.lang.String getAvatarUrl()
Get avatar URL of the topic.- Returns:
- avatar URL.
-
getCreatedAt
public long getCreatedAt()
Get topic's creation date in milliseconds in Unix time.- Returns:
- milliseconds from the topic creation time. UTC.
-
getUpdatedAt
public long getUpdatedAt()
Last date when topic was updated. UTC time in milliseconds.- Returns:
- milliseconds from the topic creation time. UTC.
-
getFollowersCount
public int getFollowersCount()
Number of followers of the topic.- Returns:
- count of followers of the topic.
-
isFollower
public boolean isFollower()
If current user follows a topic.- Returns:
- true, if current user is follower of the topic, false otherwise.
-
getSettings
public CommunitiesSettings getSettings()
Get settings for the topic.- Returns:
- topic settings.
-
getMembersCount
public int getMembersCount()
- Returns:
- the number of members in the group.
-
getMembership
public Membership getMembership()
- Returns:
- the membership information of current user.
-
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
-
-