From 5a50715b3bec67dc070444c75b89f322495f41db Mon Sep 17 00:00:00 2001 From: chenglei Date: Fri, 5 Aug 2016 16:47:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=A6=E5=8F=91=E5=99=A8th?= =?UTF-8?q?reshold=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/chinamobile/iot/onenet/trigger/AddTrigger.java | 4 ++-- .../java/com/chinamobile/iot/onenet/trigger/EditTrigger.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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);