Class SortInfoAdapter
Converts SortInfo to the format anticipated by the Social cloud services.
Inheritance
System.Object
SortInfoAdapter
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.Common.Rest
Assembly: EPiServer.Social.Common.Rest.dll
Version: 1.5.4Syntax
public class SortInfoAdapter
Constructors
SortInfoAdapter()
Constructor
Declaration
public SortInfoAdapter()
SortInfoAdapter(Dictionary<SortField, String>)
Constructor
Declaration
public SortInfoAdapter(Dictionary<SortField, string> knownFields)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.Dictionary<SortField, System.String> | knownFields | A map of known fields to their corresponding identifiers |
Methods
Adapt(SortInfo)
Converts a sort rules to the format anticipated by the Social cloud services.
Declaration
public string Adapt(SortInfo sortRule)
Parameters
| Type | Name | Description |
|---|---|---|
| SortInfo | sortRule | Sort rules to be adapted |
Returns
| Type | Description |
|---|---|
| System.String | String representing the sepcified sort rules |
Adapt(IEnumerable<SortInfo>)
Converts a collection of sort rules to the format anticipated by the Social cloud services.
Declaration
public string Adapt(IEnumerable<SortInfo> sortRules)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<SortInfo> | sortRules | Sort rules to be adapted |
Returns
| Type | Description |
|---|---|
| System.String | String representing the sepcified sort rules |