Class CustomEndpoint<I, O>
Custom endpoint.
Inheritance
System.Object
CustomEndpoint<I, O>
Namespace: Kinvey
Assembly: Kinvey.dll
Syntax
public class CustomEndpoint<I, O> : object
Type Parameters
Name | Description |
---|---|
I | The type of request. |
O | The type of response. |
Constructors
| Improve this Doc View SourceCustomEndpoint(AbstractClient)
Initializes a new instance of the CustomEndpoint<I, O> class.
Declaration
public CustomEndpoint(AbstractClient client)
Parameters
Type | Name | Description |
---|---|---|
AbstractClient | client | Client that the user is logged in. |
Methods
| Improve this Doc View SourceClearCustomRequestProperties()
Clears the custom request properties.
Declaration
public void ClearCustomRequestProperties()
ExecuteCustomEndpoint(String, I, AbstractClient)
Executes the custom endpoint, expecting a single result.
Declaration
public Task<O> ExecuteCustomEndpoint(string endpoint, I input, AbstractClient client = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | endpoint | Endpoint name. |
I | input | Input object. |
AbstractClient | client | [optional] Client that the user is logged in for, defaulted to SharedClient. |
Returns
Type | Description |
---|---|
Task<O> | The asynchronous task with response result. |
GetCustomRequestProperties()
Gets the custom request properties.
Declaration
public JObject GetCustomRequestProperties()
Returns
Type | Description |
---|---|
JObject | The custom request properties. |
SetCustomRequestProperties(JObject)
Sets the custom request properties.
Declaration
public void SetCustomRequestProperties(JObject customheaders)
Parameters
Type | Name | Description |
---|---|---|
JObject | customheaders | Custom headers. |
SetCustomRequestProperty(String, JObject)
Sets the custom request property.
Declaration
public void SetCustomRequestProperty(string key, JObject value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key. |
JObject | value | Value. |