Interface IFeedItemRepository
The IFeedItemRepository interface describes a component capable of saving and retrieving/filtering feed data from an underlying data store.
Namespace: EPiServer.Social.ActivityStreams.Core
Assembly: EPiServer.Social.ActivityStreams.Core.dll
Version: 1.5.4Syntax
public interface IFeedItemRepository
Methods
Get(Criteria<FeedItemFilter>)
Retrieves a page of feed items from the underlying data store, as described by the specified criteria.
Declaration
ResultPage<FeedItem> Get(Criteria<FeedItemFilter> criteria)
Parameters
| Type | Name | Description |
|---|---|---|
| Criteria<FeedItemFilter> | criteria | Criteria by which to filter feed items |
Returns
| Type | Description |
|---|---|
| ResultPage<FeedItem> | Page of feed items |
Get<TExtension>(CompositeCriteria<FeedItemFilter, TExtension>)
Retrieves a page of feed items from the underlying data store, as described by the specified criteria. Feed items are filtered by the type of payload data associated with the corresponding activity.
Declaration
ResultPage<Composite<FeedItem, TExtension>> Get<TExtension>(CompositeCriteria<FeedItemFilter, TExtension> criteria)
where TExtension : class
Parameters
| Type | Name | Description |
|---|---|---|
| CompositeCriteria<FeedItemFilter, TExtension> | criteria | Criteria by which to filter feed items |
Returns
| Type | Description |
|---|---|
| ResultPage<Composite<FeedItem, TExtension>> | Page of composite feed items |
Type Parameters
| Name | Description |
|---|---|
| TExtension | Type of data associated with the desired feed items |
GetAsync(Criteria<FeedItemFilter>)
Retrieves a page of feed items from the underlying data store, as described by the specified criteria.
Declaration
Task<ResultPage<FeedItem>> GetAsync(Criteria<FeedItemFilter> criteria)
Parameters
| Type | Name | Description |
|---|---|---|
| Criteria<FeedItemFilter> | criteria | Criteria by which to filter feed items |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ResultPage<FeedItem>> | Page of feed items |
GetAsync<TExtension>(CompositeCriteria<FeedItemFilter, TExtension>)
Retrieves a page of feed items from the underlying data store, as described by the specified criteria. Feed items are filtered by the type of payload data associated with the corresponding activity.
Declaration
Task<ResultPage<Composite<FeedItem, TExtension>>> GetAsync<TExtension>(CompositeCriteria<FeedItemFilter, TExtension> criteria)
where TExtension : class
Parameters
| Type | Name | Description |
|---|---|---|
| CompositeCriteria<FeedItemFilter, TExtension> | criteria | Criteria by which to filter feed items |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ResultPage<Composite<FeedItem, TExtension>>> | Page of composite feed items |
Type Parameters
| Name | Description |
|---|---|
| TExtension | Type of data associated with the desired feed items |