-
public interface IThingSmartRequestThe server api calls the common function interface.
-
-
Method Summary
Modifier and Type Method Description abstract voidrequestWithApiName(String apiName, String version, Map<String, Object> postData, IRequestCallback request)Deprecated. abstract <T> voidrequestWithApiName(String apiName, String version, Map<String, Object> postData, Class<T> object, IThingDataCallback<T> callback)Applicable to api interface request with session. abstract <T> voidrequestWithApiNameWithoutSession(String apiName, String version, Map<String, Object> postData, Class<T> object, IThingDataCallback<T> callback)Applies to api interface requests without session. abstract voidrequestWithApiNameWithoutSession(String apiName, String version, Map<String, Object> postData, IRequestCallback request)Deprecated. abstract voidqueryDeviceOperateLogs(String devId, String dpIds, int offset, int limit, String startTime, String endTime, String sortType, IThingDataCallback<String> callback)Query the device operate log abstract voidsendCacheDps(String devId, String dps, long validity, int dpCacheType, IThingDataCallback<Boolean> listener)abstract voidonDestroy()Cancel all request. -
-
Method Detail
-
requestWithApiName
@Deprecated() abstract void requestWithApiName(String apiName, String version, Map<String, Object> postData, IRequestCallback request)
Deprecated.
Replace by requestWithApiName
-
requestWithApiName
abstract <T> void requestWithApiName(String apiName, String version, Map<String, Object> postData, Class<T> object, IThingDataCallback<T> callback)
Applicable to api interface request with session.
To call this method, the user needs to log in first.
- Parameters:
apiName- api nameversion- api versionpostData- Post sent dataobject- The Class for json serialization.callback- Callback request result.
-
requestWithApiNameWithoutSession
abstract <T> void requestWithApiNameWithoutSession(String apiName, String version, Map<String, Object> postData, Class<T> object, IThingDataCallback<T> callback)
Applies to api interface requests without session.
- Parameters:
apiName- api nameversion- api versionpostData- Post sent dataobject- The Class for json serialization.callback- Callback request result.
-
requestWithApiNameWithoutSession
@Deprecated() abstract void requestWithApiNameWithoutSession(String apiName, String version, Map<String, Object> postData, IRequestCallback request)
Deprecated.
Replace by requestWithApiNameWithoutSession
-
queryDeviceOperateLogs
abstract void queryDeviceOperateLogs(String devId, String dpIds, int offset, int limit, String startTime, String endTime, String sortType, IThingDataCallback<String> callback)
Query the device operate log
- Parameters:
devId- device iddpIds- The DPs to be returned, separated with commas (,).offset- The number of entries starting from which entries are returned.limit- The number of entries to be returned per page.startTime- The time when DP status reporting starts.endTime- The time when DP status reporting ends.sortType- The method to sort data by time.
-
sendCacheDps
abstract void sendCacheDps(String devId, String dps, long validity, int dpCacheType, IThingDataCallback<Boolean> listener)
-
onDestroy
abstract void onDestroy()
Cancel all request.
-
-
-
-