ActivityFeed provides extension methods for IQueryable<Update> list used to filter updates. Those methods are:
- ForSubscriber(subscriberId)* - filter update by suscriberId; could be used to filter personal updates
- FilterByTopics(IEnumerable<Topic> topics)* - filter updates by list of topics
- PublishedWithinTimeRange(DateTime from, DateTime to)* -filter updates by time range
- SecurityTrim(IEnumerable<UserGroup> userGroups)* - filter updates by user groups
- GetPage(DateTime? publishedOn, int pageSize)* - filter updates by latest publishedOn date and maximum number of updates to get
var service = ServiceLocator.Resolve<IActivityFeedService>();
var updatesToShow = service.GetUpdates()
.ForSubscriber(...)
.FilterByTopics(...)
.SecurityTrim(...)
.GetPage(...)
.ToList();