public class AndroidSenseServiceImpl extends Object implements AndroidSenseService
Constructor and Description |
---|
AndroidSenseServiceImpl() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getAndroidSenseDeviceStats(String deviceId,
String sensor,
long from,
long to)
Retrieve Sensor data for the device type
|
javax.ws.rs.core.Response |
register(String deviceId,
String deviceName)
Enroll devices.
|
javax.ws.rs.core.Response |
removeKeyWords(String deviceId,
String words)
End point to remove key words from the device
|
javax.ws.rs.core.Response |
sendKeyWords(String deviceId,
String keywords)
End point to send the key words to the device
|
javax.ws.rs.core.Response |
sendThreshold(String deviceId,
String threshold)
End point to send the key words to the device
|
public javax.ws.rs.core.Response sendKeyWords(String deviceId, String keywords)
AndroidSenseService
sendKeyWords
in interface AndroidSenseService
deviceId
- The registered device Id.keywords
- The key words to be sent. (Comma separated values)public javax.ws.rs.core.Response sendThreshold(String deviceId, String threshold)
AndroidSenseService
sendThreshold
in interface AndroidSenseService
deviceId
- The registered device Id.threshold
- The key words to be sent. (Comma separated values)public javax.ws.rs.core.Response removeKeyWords(String deviceId, String words)
AndroidSenseService
removeKeyWords
in interface AndroidSenseService
public javax.ws.rs.core.Response getAndroidSenseDeviceStats(String deviceId, String sensor, long from, long to)
AndroidSenseService
getAndroidSenseDeviceStats
in interface AndroidSenseService
public javax.ws.rs.core.Response register(String deviceId, String deviceName)
AndroidSenseService
register
in interface AndroidSenseService
Copyright © 2017 WSO2. All rights reserved.