Class EthosResponseExtension
Extends EthosResponse.
Inheritance
System.Object
EthosResponseExtension
Namespace: Ellucian.Ethos.Integration.Client.Extensions
Assembly: Ellucian.Ethos.Integration.dll
Syntax
public static class EthosResponseExtension : object
Methods
Deserialize<T>(EthosResponse)
Converts ethos response content to an object of type T
Declaration
public static T Deserialize<T>(this EthosResponse ethosResponse)
Parameters
| Type | Name | Description |
|---|---|---|
| EthosResponse | ethosResponse | Ethos response. |
Returns
| Type | Description |
|---|---|
| T | Returns deserialized object. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of object to be deserialized. |
Serialize<T>(EthosResponse, Formatting)
Converts ethos response content to an object of type T
Declaration
public static string Serialize<T>(this EthosResponse ethosResponse, Formatting formatting = null)
Parameters
| Type | Name | Description |
|---|---|---|
| EthosResponse | ethosResponse | Ethos response containing json content. |
| Formatting | formatting | Json formatting, values are none where json is not formatted and Indented where json is properly indented. |
Returns
| Type | Description |
|---|---|
| System.String | Returns serialized string. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of object to be serialized. |