Package 

Class FeedQuery


  • 
    public final class FeedQuery
    
                        

    A query configuration for retrieving and managing feed data from Stream feeds.

    • Constructor Detail

      • FeedQuery

        FeedQuery(String group, String id, Filter<ActivityData, ActivitiesFilterField> activityFilter, Integer activityLimit, String activityNext, String activityPrevious, FeedInputData data, Map<String, Object> externalRanking, Integer followerLimit, Integer followingLimit, Map<String, Float> interestWeights, Integer memberLimit, String view, Boolean watch)
        Creates a new FeedQuery instance with the specified parameters.
        Parameters:
        group - The feed group (e.g., "user", "timeline", "notification").
        id - The unique identifier within the group.
        activityFilter - Filter criteria for activities in the feed.
        activityLimit - Maximum number of activities to retrieve.
        activityNext - Pagination cursor for fetching the next page of activities.
        activityPrevious - Pagination cursor for fetching the previous page of activities.
        data - Additional data to associate with the feed.
        externalRanking - Additional data used for ranking activities in the feed.
        followerLimit - Maximum number of followers to retrieve.
        followingLimit - Maximum number of following users to retrieve.
        interestWeights - Weights for different interests to influence activity ranking.
        memberLimit - Maximum number of feed members to retrieve.
        view - Overwrite the default ranking or aggregation logic for this feed (for example: good for split testing).
        watch - If true, subscribes to web-socket events for this feed.
      • FeedQuery

        FeedQuery(FeedId fid, Filter<ActivityData, ActivitiesFilterField> activityFilter, Integer activityLimit, String activityNext, String activityPrevious, FeedInputData data, EnrichmentOptions enrichmentOptions, Map<String, Object> externalRanking, Integer followerLimit, Integer followingLimit, Map<String, Float> interestWeights, Integer memberLimit, String view, Boolean watch)
        Parameters:
        fid - The unique identifier for the feed.
        activityFilter - Filter criteria for activities in the feed.
        activityLimit - Maximum number of activities to retrieve.
        activityNext - Pagination cursor for fetching the next page of activities.
        activityPrevious - Pagination cursor for fetching the previous page of activities.
        data - Additional data to associate with the feed.
        enrichmentOptions - Options to control enrichment of feed data.
        externalRanking - Additional data used for ranking activities in the feed.
        followerLimit - Maximum number of followers to retrieve.
        followingLimit - Maximum number of following users to retrieve.
        interestWeights - Weights for different interests to influence activity ranking.
        memberLimit - Maximum number of feed members to retrieve.
        view - Overwrite the default ranking or aggregation logic for this feed (for example: good for split testing).
        watch - If true, subscribes to web-socket events for this feed.