Class: DataSenderController

OSH.DataSender. DataSenderController

This class is responsible for sending request to server.

new OSH.DataSender.DataSenderController(options)

Name Type Description
options Object

Methods

addDataSource(datasource)

Adds a datasource to the list of datasources to process

Name Type Description
datasource Object

the datasource to add

sendRequest(dataSourceId, properties, onSucess, onError)

Sends request to the server

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