Class: DataSenderController

OSH.DataSender.DataSenderController

This class is responsible for sending request to server.

Constructor

new DataSenderController(options)

Parameters:
Name Type Description
options Object
Source:

Methods

addDataSource(datasource)

Adds a datasource to the list of datasources to process

Parameters:
Name Type Description
datasource Object

the datasource to add

Source:

sendRequest(dataSourceId, properties, onSucess, onError)

Sends request to the server

Parameters:
Name Type Description
dataSourceId string

the datasource id to process

properties Object

the properties to use

onSucess function

the onSucess function

onError function

the onError function

Source: