Class FeedItemAdapter
Inheritance
System.Object
FeedItemAdapter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.ActivityStreams.Rest
Assembly: EPiServer.Social.ActivityStreams.Rest.dll
Version: 1.5.4Syntax
public class FeedItemAdapter
Constructors
FeedItemAdapter()
Declaration
public FeedItemAdapter()
Methods
Adapt(FeedResponse)
Declaration
public FeedItem Adapt(FeedResponse response)
Parameters
| Type | Name | Description |
|---|---|---|
| FeedResponse | response |
Returns
| Type | Description |
|---|---|
| FeedItem |
Adapt(PagedResponse<FeedResponse>, PageInfo)
Declaration
public ResultPage<FeedItem> Adapt(PagedResponse<FeedResponse> pagedFeedResponse, PageInfo pageInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| PagedResponse<FeedResponse> | pagedFeedResponse | |
| PageInfo | pageInfo |
Returns
| Type | Description |
|---|---|
| ResultPage<FeedItem> |
Adapt<TExtension>(PagedResponse<FeedResponse>, PageInfo)
Declaration
public ResultPage<Composite<FeedItem, TExtension>> Adapt<TExtension>(PagedResponse<FeedResponse> pagedFeedResponse, PageInfo pageInfo)
where TExtension : class
Parameters
| Type | Name | Description |
|---|---|---|
| PagedResponse<FeedResponse> | pagedFeedResponse | |
| PageInfo | pageInfo |
Returns
| Type | Description |
|---|---|
| ResultPage<Composite<FeedItem, TExtension>> |
Type Parameters
| Name | Description |
|---|---|
| TExtension |
AdaptToComposite<TExtension>(FeedResponse)
Converts a FeedResponse instance to a corresponding Composite instance.
Declaration
public Composite<FeedItem, TExtension> AdaptToComposite<TExtension>(FeedResponse response)
where TExtension : class
Parameters
| Type | Name | Description |
|---|---|---|
| FeedResponse | response |
Returns
| Type | Description |
|---|---|
| Composite<FeedItem, TExtension> | A corresponding Composite instance |
Type Parameters
| Name | Description |
|---|---|
| TExtension | Type of extension data in the composite |