diff Core/WebServiceParameters.h @ 2655:c196d76cb8fa jobs

serialization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Jun 2018 17:57:49 +0200
parents 878b59270859
children eaf10085ffa1
line wrap: on
line diff
--- a/Core/WebServiceParameters.h	Tue Jun 05 17:09:18 2018 +0200
+++ b/Core/WebServiceParameters.h	Tue Jun 05 17:57:49 2018 +0200
@@ -61,6 +61,8 @@
   public:
     WebServiceParameters();
 
+    WebServiceParameters(const Json::Value& serialized);
+
     const std::string& GetUrl() const
     {
       return url_;
@@ -127,5 +129,7 @@
     void FromJson(const Json::Value& peer);
 
     void ToJson(Json::Value& value) const;
+
+    void Serialize(Json::Value& target) const;
   };
 }