Kanda Foundation 0.2.0
Loading...
Searching...
No Matches
CloudApiResponse< T > Struct Template Reference

A wrapper for Cloud responses reducing the amount of boilerplate required to evaluate whether a request was successful and providing feedback when a request fails. More...

Static Public Member Functions

static CloudApiResponse< T > CreateSuccess (int statusCode, T data)
 
static CloudApiResponse< T > CreateSuccess (int statusCode)
 
static CloudApiResponse< T > CreateError (int statusCode, string errorMessage)
 

Public Attributes

int StatusCode
 
bool Succeeded
 
Data
 
string ErrorMessage
 

Detailed Description

A wrapper for Cloud responses reducing the amount of boilerplate required to evaluate whether a request was successful and providing feedback when a request fails.

Template Parameters
TThe expected Cloud response model.

The documentation for this struct was generated from the following file: