Class AnnouncementsQuery


  • public class AnnouncementsQuery
    extends java.lang.Object
    • Method Detail

      • inTopic

        public static AnnouncementsQuery inTopic​(java.lang.String topicId)
        Get announcements in topic.
        Parameters:
        topicId - id of topic.
        Returns:
        a new query.
      • forFeedOf

        public static AnnouncementsQuery forFeedOf​(UserId userId)
        Get announcements for user's feed.
        Parameters:
        userId - id of the user.
        Returns:
        a new query.
      • timeline

        public static AnnouncementsQuery timeline()
        Get announcements for all feeds and targeting users timeline.
        Returns:
        a new query.
      • inGroup

        public static AnnouncementsQuery inGroup​(java.lang.String groupId)
        Get announcements in group.
        Parameters:
        groupId - id of group.
        Returns:
        a new query.
      • withPollStatus

        public AnnouncementsQuery withPollStatus​(PollStatus pollStatus)
        Get activities with a specific poll status.
        Parameters:
        pollStatus - Poll status in activity.