diff --git a/onenetapi-library/src/main/java/com/chinamobile/iot/onenet/trigger/AddTrigger.java b/onenetapi-library/src/main/java/com/chinamobile/iot/onenet/trigger/AddTrigger.java index bf06b82..a57cafd 100644 --- a/onenetapi-library/src/main/java/com/chinamobile/iot/onenet/trigger/AddTrigger.java +++ b/onenetapi-library/src/main/java/com/chinamobile/iot/onenet/trigger/AddTrigger.java @@ -15,12 +15,12 @@ public class AddTrigger extends BaseStringRequest { private String mUrl; private String mType; - private double mThreshold; + private Object mThreshold; private String mDatastreamId; private ArrayList mDevicesIds; private ArrayList mDsUUIDs; - public AddTrigger(String apiKey, String url, String type, double threshold, + public AddTrigger(String apiKey, String url, String type, Object threshold, String datastreamId, ArrayList deviceIds, ArrayList dsUUIDs, ResponseListener listener) { super(Method.POST, URL, apiKey, listener); diff --git a/onenetapi-library/src/main/java/com/chinamobile/iot/onenet/trigger/EditTrigger.java b/onenetapi-library/src/main/java/com/chinamobile/iot/onenet/trigger/EditTrigger.java index 2a13424..3a887dc 100644 --- a/onenetapi-library/src/main/java/com/chinamobile/iot/onenet/trigger/EditTrigger.java +++ b/onenetapi-library/src/main/java/com/chinamobile/iot/onenet/trigger/EditTrigger.java @@ -15,12 +15,12 @@ public class EditTrigger extends BaseStringRequest { private String mUrl; private String mType; - private double mThreshold; + private Object mThreshold; private String mDatastreamId; private ArrayList mDevicesIds; private ArrayList mDsUUIDs; - public EditTrigger(String apiKey, String triggerId, String url, String type, double threshold, + public EditTrigger(String apiKey, String triggerId, String url, String type, Object threshold, String datastreamId, ArrayList deviceIds, ArrayList dsUUIDs, ResponseListener listener) { super(Method.PUT, URL + triggerId, apiKey, listener);