Imported Upstream version 1.1.0
[platform/upstream/iotivity.git] / service / resource-encapsulation / src / common / primitiveResource / include / ResponseStatement.h
index 7181e75..8c49dc3 100644 (file)
 #ifndef COMMON_RESPONSESTATEMENT_H
 #define COMMON_RESPONSESTATEMENT_H
 
-#include <string>
-#include <vector>
-
-#include <RCSResourceAttributes.h>
-
-namespace OC
-{
-    class OCRepresentation;
-}
+#include "RCSRepresentation.h"
 
 namespace OIC
 {
     namespace Service
     {
-        class RCSResourceAttributes;
-
-        class ResponseStatement
-        {
-        public:
-            static ResponseStatement create(const OC::OCRepresentation&);
-            static ResponseStatement create(RCSResourceAttributes&&);
-
-            explicit ResponseStatement(const RCSResourceAttributes&);
-            explicit ResponseStatement(RCSResourceAttributes&&);
-
-            ResponseStatement(RCSResourceAttributes&&, std::string&& uri,
-                    std::vector< std::string >&& resourceTypes,
-                    std::vector< std::string >&& resourceInterfaces);
-
-            ResponseStatement(ResponseStatement&&) = default;
-
-            ResponseStatement& operator=(ResponseStatement&&) = default;
-
-            std::string getUri() const;
-            std::vector< std::string > getResourceTypes() const;
-            std::vector< std::string > getResourceInterfaces() const;
-
-            const RCSResourceAttributes& getAttributes() const;
-
-        private:
-            RCSResourceAttributes m_attrs;
-
-            std::string m_uri;
-            std::vector< std::string > m_resourceTypes;
-            std::vector< std::string > m_resourceInterfaces;
-        };
-
+        typedef RCSRepresentation ResponseStatement;
     }
 }