C# Class IO.Swagger.Api.ResourceApi

Represents a collection of functions to interact with the API endpoints
Inheritance: IResourceApi
Show file Open project: TNOCS/csTouch Class Usage Examples

Public Methods

Method Description
AddResource ( Resource body ) : void

Add resource Adds a single resource

AddResourceAsync ( Resource body ) : System.Threading.Tasks.Task

Add resource Adds a single resource

GetBasePath ( ) : String

Gets the base path of the API client.

GetResource ( string resourceId ) : Resource

Find resource by ID Returns a single resource

GetResourceAsync ( string resourceId ) : System.Threading.Tasks.Task

Find resource by ID Returns a single resource

ResourceApi ( ApiClient apiClient = null ) : System

Initializes a new instance of the ResourceApi class.

ResourceApi ( String basePath ) : System

Initializes a new instance of the ResourceApi class.

SetBasePath ( String basePath ) : void

Sets the base path of the API client.

Method Details

AddResource() public method

Add resource Adds a single resource
public AddResource ( Resource body ) : void
body IO.Swagger.Model.Resource Resource object that needs to be added to the datastorage
return void

AddResourceAsync() public method

Add resource Adds a single resource
public AddResourceAsync ( Resource body ) : System.Threading.Tasks.Task
body IO.Swagger.Model.Resource Resource object that needs to be added to the datastorage
return System.Threading.Tasks.Task

GetBasePath() public method

Gets the base path of the API client.
public GetBasePath ( ) : String
return String

GetResource() public method

Find resource by ID Returns a single resource
public GetResource ( string resourceId ) : Resource
resourceId string ID of the resource to be returned
return IO.Swagger.Model.Resource

GetResourceAsync() public method

Find resource by ID Returns a single resource
public GetResourceAsync ( string resourceId ) : System.Threading.Tasks.Task
resourceId string ID of the resource to be returned
return System.Threading.Tasks.Task

ResourceApi() public method

Initializes a new instance of the ResourceApi class.
public ResourceApi ( ApiClient apiClient = null ) : System
apiClient IO.Swagger.Client.ApiClient an instance of ApiClient (optional)
return System

ResourceApi() public method

Initializes a new instance of the ResourceApi class.
public ResourceApi ( String basePath ) : System
basePath String
return System

SetBasePath() public method

Sets the base path of the API client.
public SetBasePath ( String basePath ) : void
basePath String The base path
return void