Update common data class.
[platform/upstream/iotivity.git] / service / easy-setup / mediator / richsdk / inc / ESRichCommon.h
index 56fc35e..a5af75c 100755 (executable)
@@ -55,6 +55,16 @@ namespace OIC
              */
             EnrolleeStatus(const OCRepresentation& rep) { m_rep = rep; }
 
+            EnrolleeStatus(const EnrolleeStatus& enrolleeStatus) :
+                m_rep(enrolleeStatus.getRepresentation())
+            {
+            }
+
+            EnrolleeStatus(const EnrolleeStatus&& enrolleeStatus) :
+                m_rep(std::move(enrolleeStatus.getRepresentation()))
+            {
+            }
+
             /**
              * Get a provisioning status property of Enrollee.
              *
@@ -86,7 +96,7 @@ namespace OIC
              *
              * @return OCRepresentation object
              */
-            const OCRepresentation& getRepresentation()
+            const OCRepresentation& getRepresentation() const
             {
                 return m_rep;
             }