Add generic API for setting and getting defined tag values
[platform/upstream/iotivity.git] / android / android_api / base / src / main / java / org / iotivity / base / ObservationInfo.java
old mode 100755 (executable)
new mode 100644 (file)
index 483d4cb..064eeaf
@@ -1,55 +1,55 @@
-/*\r
- * //******************************************************************\r
- * //\r
- * // Copyright 2015 Intel Corporation.\r
- * //\r
- * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r
- * //\r
- * // Licensed under the Apache License, Version 2.0 (the "License");\r
- * // you may not use this file except in compliance with the License.\r
- * // You may obtain a copy of the License at\r
- * //\r
- * //      http://www.apache.org/licenses/LICENSE-2.0\r
- * //\r
- * // Unless required by applicable law or agreed to in writing, software\r
- * // distributed under the License is distributed on an "AS IS" BASIS,\r
- * // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * // See the License for the specific language governing permissions and\r
- * // limitations under the License.\r
- * //\r
- * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r
- */\r
-\r
-package org.iotivity.base;\r
-\r
-public class ObservationInfo {\r
-\r
-    private ObserveAction mObserveAction;\r
-    private byte mOcObservationId;\r
-\r
-    private ObservationInfo(int observationAction, byte observationId) {\r
-        this.mObserveAction = ObserveAction.get(observationAction);\r
-        this.mOcObservationId = observationId;\r
-    }\r
-\r
-    public ObservationInfo(ObserveAction observeAction, byte observationId) {\r
-        this.mObserveAction = observeAction;\r
-        this.mOcObservationId = observationId;\r
-    }\r
-\r
-    public ObserveAction getObserveAction() {\r
-        return mObserveAction;\r
-    }\r
-\r
-    public void setObserveAction(ObserveAction observeAction) {\r
-        this.mObserveAction = observeAction;\r
-    }\r
-\r
-    public byte getOcObservationId() {\r
-        return mOcObservationId;\r
-    }\r
-\r
-    public void setOcObservationId(byte ocObservationId) {\r
-        this.mOcObservationId = ocObservationId;\r
-    }\r
-}\r
+/*
+ *******************************************************************
+ *
+ * Copyright 2015 Intel Corporation.
+ *
+ *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+ */
+
+package org.iotivity.base;
+
+public class ObservationInfo {
+
+    private ObserveAction mObserveAction;
+    private byte mOcObservationId;
+
+    private ObservationInfo(int observationAction, byte observationId) {
+        this.mObserveAction = ObserveAction.get(observationAction);
+        this.mOcObservationId = observationId;
+    }
+
+    public ObservationInfo(ObserveAction observeAction, byte observationId) {
+        this.mObserveAction = observeAction;
+        this.mOcObservationId = observationId;
+    }
+
+    public ObserveAction getObserveAction() {
+        return mObserveAction;
+    }
+
+    public void setObserveAction(ObserveAction observeAction) {
+        this.mObserveAction = observeAction;
+    }
+
+    public byte getOcObservationId() {
+        return mOcObservationId;
+    }
+
+    public void setOcObservationId(byte ocObservationId) {
+        this.mOcObservationId = ocObservationId;
+    }
+}