Package im.getsocial.sdk.communities
Class Topic
- java.lang.Object
-
- im.getsocial.sdk.communities.Topic
-
public class Topic extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Topic(java.lang.String id, java.lang.String title, java.lang.String description, java.lang.String avatarUrl, long createdAt, long updatedAt, int followersCount, boolean isFollower, 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 seconds 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.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
-
Topic
public Topic(java.lang.String id, java.lang.String title, java.lang.String description, java.lang.String avatarUrl, long createdAt, long updatedAt, int followersCount, boolean isFollower, 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 seconds in Unix time.- Returns:
- seconds from the topic creation time. UTC.
-
getUpdatedAt
public long getUpdatedAt()
Last date when topic was updated. UTC time in seconds.- Returns:
- seconds from the topic update 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.
-
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
-
-