|
Kanda Foundation 0.2.0
|
Handles basic REST-type requests to the Cloud API by creating UnityWebRequests with the relevant data, executing these requests with UnityHttpClient and deserializing the response data. More...
Inheritance diagram for ICloudApiClient:Public Member Functions | |
| Task< CloudApiResponse< T > > | Get< T > (string endpoint, CancellationToken cancellationToken) |
| Get an item at a given API endpoint. | |
| Task< CloudApiResponse< T > > | AnonymousGet< T > (string endpoint, CancellationToken cancellationToken) |
| Get an item at a given API endpoint without authorization. | |
| Task< CloudApiResponse< CloudApiPage< T > > > | GetPage< T > (string endpoint, int limit, string continueToken, CancellationToken cancellationToken) |
| Get a page of items at a given API endpoint. | |
| Task< CloudApiResponse< TResponse > > | Post< TRequest, TResponse > (string endpoint, TRequest payload, CancellationToken cancellationToken) |
| Create an item or trigger an action at a given API endpoint. | |
| Task< CloudApiResponse< T > > | Put< T > (string endpoint, T payload, CancellationToken cancellationToken) |
| Update an item at a given API endpoint. | |
| Task< CloudApiResponse< T > > | Delete< T > (string endpoint, CancellationToken cancellationToken) |
| Removes an item at a given API endpoint. | |
| Task< CloudApiResponse< T > > | AnonymousUploadToAzureBlobStorage< T > (string signedUrl, byte[] data, CancellationToken cancellationToken) |
| Uploads binary data to a given Azure Blob Storage signed URL. | |
Properties | |
| ICloudAuthentication | Auth [get] |
| Used for authenticating requests. | |
Handles basic REST-type requests to the Cloud API by creating UnityWebRequests with the relevant data, executing these requests with UnityHttpClient and deserializing the response data.
| Task< CloudApiResponse< T > > AnonymousGet< T > | ( | string | endpoint, |
| CancellationToken | cancellationToken ) |
Get an item at a given API endpoint without authorization.
| T | The expected Cloud response model. |
Implemented in CloudApiClient.
| Task< CloudApiResponse< T > > AnonymousUploadToAzureBlobStorage< T > | ( | string | signedUrl, |
| byte[] | data, | ||
| CancellationToken | cancellationToken ) |
Uploads binary data to a given Azure Blob Storage signed URL.
Implemented in CloudApiClient.
| Task< CloudApiResponse< T > > Delete< T > | ( | string | endpoint, |
| CancellationToken | cancellationToken ) |
Removes an item at a given API endpoint.
| T | The expected Cloud response model. |
Implemented in CloudApiClient.
| Task< CloudApiResponse< T > > Get< T > | ( | string | endpoint, |
| CancellationToken | cancellationToken ) |
Get an item at a given API endpoint.
| T | The expected Cloud response model. |
Implemented in CloudApiClient.
| Task< CloudApiResponse< CloudApiPage< T > > > GetPage< T > | ( | string | endpoint, |
| int | limit, | ||
| string | continueToken, | ||
| CancellationToken | cancellationToken ) |
Get a page of items at a given API endpoint.
| T | The expected Cloud response model. |
Implemented in CloudApiClient.
| Task< CloudApiResponse< TResponse > > Post< TRequest, TResponse > | ( | string | endpoint, |
| TRequest | payload, | ||
| CancellationToken | cancellationToken ) |
Create an item or trigger an action at a given API endpoint.
Implemented in CloudApiClient.
| Task< CloudApiResponse< T > > Put< T > | ( | string | endpoint, |
| T | payload, | ||
| CancellationToken | cancellationToken ) |
Update an item at a given API endpoint.
| T | The expected Cloud response model. |
Implemented in CloudApiClient.
|
get |
Used for authenticating requests.
Implemented in CloudApiClient.