Class 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)  
    • 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 group.
        Returns:
        id.
      • getTitle

        public java.lang.String getTitle()
        Get localized title of the group.
        Returns:
        localized title.
      • getDescription

        public java.lang.String getDescription()
        Get localized description of the group.
        Returns:
        localized description.
      • getAvatarUrl

        public java.lang.String getAvatarUrl()
        Get avatar URL of the group.
        Returns:
        avatar URL.
      • getCreatedAt

        public long getCreatedAt()
        Get group's creation date in milliseconds in Unix time.
        Returns:
        milliseconds from the group creation time. UTC.
      • getUpdatedAt

        public long getUpdatedAt()
        Last date when group was updated. UTC time in milliseconds.
        Returns:
        milliseconds from the group creation time. UTC.
      • getFollowersCount

        public int getFollowersCount()
        Number of followers of the group.
        Returns:
        count of followers of the group.
      • isFollower

        public boolean isFollower()
        If current user follows a group.
        Returns:
        true, if current user is follower of the group, false otherwise.
      • getSettings

        public CommunitiesSettings getSettings()
        Get settings for the group.
        Returns:
        group 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 class java.lang.Object