replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / android / android_api / base / src / main / java / org / iotivity / base / OcDeviceInfo.java
index acb4cfa..4320ad1 100644 (file)
 
 package org.iotivity.base;
 
+import java.util.List;
+
 /**
- * This class is expected as input for device properties. Device name is mandatory and expected
- * from the application. Device id of type UUID will be generated by the stack.
+ * 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) {
-
+    public OcDeviceInfo(String deviceName, List<String> deviceTypes) {
         this.mDeviceName = deviceName;
+        this.mDeviceTypes = deviceTypes;
     }
 
     public String getDeviceName() {
         return mDeviceName;
     }
+
+    public List<String> getDeviceTypes() {
+        return mDeviceTypes;
+    }
 }