@Component
public class ServiceConfigurationRest
extends java.lang.Object
| Constructor and Description |
|---|
ServiceConfigurationRest() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getServiceConfiguration(java.lang.String keyAsString)
This Restful Web Service takes one parameter keyAsString
This is used to get the service configuration details of the coupon
RestFul End Point URI: http://host:port/PhoneAppService/rest/ServiceConfiguration/getServiceConfiguration
REQUEST TYPE: GET
|
public java.lang.String getServiceConfiguration(java.lang.String keyAsString)
This Restful Web Service takes one parameter keyAsString This is used to get the service configuration details of the coupon RestFul End Point URI: http://host:port/PhoneAppService/rest/ServiceConfiguration/getServiceConfiguration REQUEST TYPE: GET
keyAsString - - phone session key
If session key is invalid,
returns json object with fields("code":404,"message":"error")
If study is completed,
returns json object with fields("code":600,"message":"study is completed")
If consent not agreed,
returns json object with fields("code":600,"message":"consent not agreed")
If study not exists,
returns json object with fields ("code":700,message":"study not exists")
If session key is valid
returns json object with list of sensors ("jsonResult":,"code":200,"message":"ok")
*)serviceConfiguration object contains
i) answerLastSequenceNumber - int
ii)uploadHeartBeatInterval - int
iii)ruleQuestionHeartBeatInterval - int
iv)uploadInterval - int
v)HashMap sensorNameToSensorDetails -> where SensorTypes object contains (sensorid(int),sensorParam(String),sensorHeartBeatInterval(int))
If any exception occurs then returns json object with fields (code=500,message="error")