replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / android / android_api / base / src / main / java / org / iotivity / base / OcDeviceInfo.java
old mode 100755 (executable)
new mode 100644 (file)
index 65e1497..4320ad1
-/*\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 OcDeviceInfo {\r
-\r
-    private String deviceName;\r
-    private String hostName;\r
-    private String deviceUuid;\r
-    private String contentType;\r
-    private String version;\r
-    private String manufacturerName;\r
-    private String manufacturerUrl;\r
-    private String modelNumber;\r
-    private String dateOfManufacture;\r
-    private String platformVersion;\r
-    private String firmwareVersion;\r
-    private String supportUrl;\r
-\r
-    public OcDeviceInfo() {\r
-        deviceName = "";\r
-        hostName = "";\r
-        deviceUuid = "";\r
-        contentType = "";\r
-        version = "";\r
-        manufacturerName = "";\r
-        manufacturerUrl = "";\r
-        modelNumber = "";\r
-        dateOfManufacture = "";\r
-        platformVersion = "";\r
-        firmwareVersion = "";\r
-        supportUrl = "";\r
-    }\r
-\r
-    public OcDeviceInfo(\r
-            String deviceName,\r
-            String hostName,\r
-            String deviceUuid,\r
-            String contentType,\r
-            String version,\r
-            String manufacturerName,\r
-            String manufacturerUrl,\r
-            String modelNumber,\r
-            String dateOfManufacture,\r
-            String platformVersion,\r
-            String firmwareVersion,\r
-            String supportUrl) {\r
-        this.deviceName = deviceName;\r
-        this.hostName = hostName;\r
-        this.deviceUuid = deviceUuid;\r
-        this.contentType = contentType;\r
-        this.version = version;\r
-        this.manufacturerName = manufacturerName;\r
-        this.manufacturerUrl = manufacturerUrl;\r
-        this.modelNumber = modelNumber;\r
-        this.dateOfManufacture = dateOfManufacture;\r
-        this.platformVersion = platformVersion;\r
-        this.firmwareVersion = firmwareVersion;\r
-        this.supportUrl = supportUrl;\r
-    }\r
-\r
-    public String getDeviceName() {\r
-        return deviceName;\r
-    }\r
-\r
-    public void setDeviceName(String deviceName) {\r
-        this.deviceName = deviceName;\r
-    }\r
-\r
-    public String getHostName() {\r
-        return hostName;\r
-    }\r
-\r
-    public void setHostName(String hostName) {\r
-        this.hostName = hostName;\r
-    }\r
-\r
-    public String getDeviceUuid() {\r
-        return deviceUuid;\r
-    }\r
-\r
-    public void setDeviceUuid(String deviceUuid) {\r
-        this.deviceUuid = deviceUuid;\r
-    }\r
-\r
-    public String getContentType() {\r
-        return contentType;\r
-    }\r
-\r
-    public void setContentType(String contentType) {\r
-        this.contentType = contentType;\r
-    }\r
-\r
-    public String getVersion() {\r
-        return version;\r
-    }\r
-\r
-    public void setVersion(String version) {\r
-        this.version = version;\r
-    }\r
-\r
-    public String getManufacturerName() {\r
-        return manufacturerName;\r
-    }\r
-\r
-    public void setManufacturerName(String manufacturerName) {\r
-        this.manufacturerName = manufacturerName;\r
-    }\r
-\r
-    public String getManufacturerUrl() {\r
-        return manufacturerUrl;\r
-    }\r
-\r
-    public void setManufacturerUrl(String manufacturerUrl) {\r
-        this.manufacturerUrl = manufacturerUrl;\r
-    }\r
-\r
-    public String getModelNumber() {\r
-        return modelNumber;\r
-    }\r
-\r
-    public void setModelNumber(String modelNumber) {\r
-        this.modelNumber = modelNumber;\r
-    }\r
-\r
-    public String getDateOfManufacture() {\r
-        return dateOfManufacture;\r
-    }\r
-\r
-    public void setDateOfManufacture(String dateOfManufacture) {\r
-        this.dateOfManufacture = dateOfManufacture;\r
-    }\r
-\r
-    public String getPlatformVersion() {\r
-        return platformVersion;\r
-    }\r
-\r
-    public void setPlatformVersion(String platformVersion) {\r
-        this.platformVersion = platformVersion;\r
-    }\r
-\r
-    public String getFirmwareVersion() {\r
-        return firmwareVersion;\r
-    }\r
-\r
-    public void setFirmwareVersion(String firmwareVersion) {\r
-        this.firmwareVersion = firmwareVersion;\r
-    }\r
-\r
-    public String getSupportUrl() {\r
-        return supportUrl;\r
-    }\r
-\r
-    public void setSupportUrl(String supportUrl) {\r
-        this.supportUrl = supportUrl;\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;
+
+import java.util.List;
+
+/**
+ * This class is expected as input for device properties. Device name and types are mandatory
+ * and expected from the application. Device id of type UUID will be generated by the stack.
+ */
+public class OcDeviceInfo {
+
+    private String mDeviceName;
+    private List<String> mDeviceTypes;
+
+    public OcDeviceInfo(String deviceName, List<String> deviceTypes) {
+        this.mDeviceName = deviceName;
+        this.mDeviceTypes = deviceTypes;
+    }
+
+    public String getDeviceName() {
+        return mDeviceName;
+    }
+
+    public List<String> getDeviceTypes() {
+        return mDeviceTypes;
+    }
+}