public class BoneThing
extends BaseBonePlugin
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
API_EVENTNOTIFY |
static java.lang.String |
API_LOCALCONNECTCHANGE |
static java.lang.String |
API_NAME |
static java.lang.String |
API_UNBIND |
static java.lang.String |
CODE_ERRPR |
static java.lang.String |
CODE_PARAMS |
protected SerializeDeviceMgr |
mSerializeDevMgr |
static java.lang.String |
MSG_THINGID_EMPTY |
Constructor and Description |
---|
BoneThing() |
Modifier and Type | Method and Description |
---|---|
void |
callService(JSONObject params,
BoneCallback boneCallback) |
void |
getDetailInfo(JSONObject params,
BoneCallback boneCallback) |
void |
getEvents(JSONObject params,
BoneCallback boneCallback) |
void |
getLocalConnectionState(JSONObject params,
BoneCallback boneCallback) |
void |
getProps(JSONObject params,
BoneCallback boneCallback) |
static JSONObject |
getRspJson(java.lang.String code,
java.lang.String msg,
JSONArray data) |
static JSONObject |
getRspJson(java.lang.String code,
java.lang.String msg,
JSONObject data) |
void |
getStatus(JSONObject params,
BoneCallback boneCallback) |
static JSONObject |
getSuccessRspJson(JSONArray data) |
static JSONObject |
getSuccessRspJson(JSONObject data) |
void |
getTsl(JSONObject params,
BoneCallback boneCallback) |
static void |
onCallback(BoneCallback boneCallback,
JSONObject result) |
void |
onDestroy() |
void |
onDevStateChange(java.lang.String s,
java.lang.Object o) |
static java.lang.String |
parseThingId(JSONObject params) |
void |
setProps(JSONObject params,
BoneCallback boneCallback) |
void |
startLocalConnect(JSONObject params,
BoneCallback boneCallback) |
void |
stopLocalConnect(JSONObject params,
BoneCallback boneCallback) |
void |
subscribeAll(JSONObject params,
BoneCallback boneCallback) |
void |
unsubscribeAll(JSONObject params,
BoneCallback boneCallback) |
public static final java.lang.String API_NAME
public static final java.lang.String API_LOCALCONNECTCHANGE
public static final java.lang.String API_UNBIND
public static final java.lang.String API_EVENTNOTIFY
public static final java.lang.String CODE_PARAMS
public static final java.lang.String MSG_THINGID_EMPTY
public static final java.lang.String CODE_ERRPR
protected SerializeDeviceMgr mSerializeDevMgr
public void onDestroy()
public void getProps(JSONObject params, BoneCallback boneCallback)
public void getStatus(JSONObject params, BoneCallback boneCallback)
public void getEvents(JSONObject params, BoneCallback boneCallback)
public void setProps(JSONObject params, BoneCallback boneCallback)
public void callService(JSONObject params, BoneCallback boneCallback)
public void subscribeAll(JSONObject params, BoneCallback boneCallback)
public void unsubscribeAll(JSONObject params, BoneCallback boneCallback)
public void getLocalConnectionState(JSONObject params, BoneCallback boneCallback)
public void startLocalConnect(JSONObject params, BoneCallback boneCallback)
public void stopLocalConnect(JSONObject params, BoneCallback boneCallback)
public void getTsl(JSONObject params, BoneCallback boneCallback)
public void getDetailInfo(JSONObject params, BoneCallback boneCallback)
public static void onCallback(BoneCallback boneCallback, JSONObject result)
public static java.lang.String parseThingId(JSONObject params)
public static JSONObject getSuccessRspJson(JSONArray data)
public static JSONObject getSuccessRspJson(JSONObject data)
public static JSONObject getRspJson(java.lang.String code, java.lang.String msg, JSONObject data)
public static JSONObject getRspJson(java.lang.String code, java.lang.String msg, JSONArray data)
public void onDevStateChange(java.lang.String s, java.lang.Object o)