C# Класс SensorbergSDK.Internal.Services.ApiConnection

Implementation for the Sensorberg Cloud Backend. IApiConnection
Наследование: IApiConnection
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Convert() публичный статический Метод

Helper to convert the status code to the other status code object.
public static Convert ( System code ) : HttpStatusCode
code System
Результат HttpStatusCode

LoadSettings() публичный Метод

Load the Settings from the backend.
public LoadSettings ( ) : Task
Результат Task

RetrieveLayoutResponse() публичный Метод

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.
Результат Task

SendHistory() публичный Метод

Sends the given History object to the cloud.
public SendHistory ( History history ) : Task
history SensorbergSDK.Internal.Data.History History object to send.
Результат Task