C# Class SensorbergSDK.Internal.Services.ApiConnection

Implementation for the Sensorberg Cloud Backend. IApiConnection
Inheritance: IApiConnection
Mostra file Open project: sensorberg-dev/windows10-sdk

Public Methods

Method Description
Convert ( System code ) : HttpStatusCode

Helper to convert the status code to the other status code object.

LoadSettings ( ) : Task

Load the Settings from the backend.

RetrieveLayoutResponse ( string apiId ) : Task

Sends a layout request to server and returns the HTTP response, if any.

SendHistory ( History history ) : Task

Sends the given History object to the cloud.

Method Details

Convert() public static method

Helper to convert the status code to the other status code object.
public static Convert ( System code ) : HttpStatusCode
code System
return HttpStatusCode

LoadSettings() public method

Load the Settings from the backend.
public LoadSettings ( ) : Task
return Task

RetrieveLayoutResponse() public method

Sends a layout request to server and returns the HTTP response, if any.
public RetrieveLayoutResponse ( string apiId ) : Task
apiId string optional api id, overrides the given id by SDKData.
return Task

SendHistory() public method

Sends the given History object to the cloud.
public SendHistory ( History history ) : Task
history SensorbergSDK.Internal.Data.History History object to send.
return Task