Class Request<T, U>
Base class for network requests.
Namespace: Kinvey
Assembly: Kinvey.dll
Syntax
public abstract class Request<T, U> : object
Type Parameters
Name | Description |
---|---|
T | The type of the network request. |
U | The type of the network response. |
Constructors
| Improve this Doc View SourceRequest(AbstractClient)
Initializes a new instance of the class.
Declaration
public Request(AbstractClient client)
Parameters
Type | Name | Description |
---|---|---|
AbstractClient | client | Client that the user is logged in. |
Properties
| Improve this Doc View SourceClient
Client that the user is logged in
Declaration
protected AbstractClient Client { get; }
Property Value
Type | Description |
---|---|
AbstractClient | The instance of the class inherited from the AbstractClient class. |
Methods
| Improve this Doc View SourceCancel()
Communicates a request for cancellation.
Declaration
public abstract Task<bool> Cancel()
Returns
Type | Description |
---|---|
Task<System.Boolean> | The async task with the boolean result. |
ExecuteAsync()
Executes a request asynchronously .
Declaration
public abstract Task<U> ExecuteAsync()
Returns
Type | Description |
---|---|
Task<U> | The async task with the type of the response. |