Skip to content
mmaciel edited this page Jun 19, 2015 · 2 revisions

All methods attempt to return the following data in both the success and failure callbacks. Front end development should take into account any all or all of these values may be null

Following returned in the JSONObject:

  • Boolean Success - was the call a success
  • int ErrorCode - Error code if an error occurred, else will be zero
  • String ErrorMessage - Text representation of the error code
  • Boolean ServiceRunning - True if the Service is running
  • Boolean TimerEnabled - True if the Timer is enabled
  • Boolean RegisteredForBootStart - True if the Service is registered for boot start
  • JSONObject Configuration - A JSONObject of the configuration of the service (contents dependant on the service)
  • JSONObject LatestResult - A JSONObject of the last result of the service (contents dependant on the service)
  • int TimerMilliseconds - Milliseconds used by the background service if Timer enabled
  • Boolean RegisteredForUpdates - True if the Service is registered to send updates to the front-end
Clone this wiki locally