]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp
Ticket 37. The ReadTime() call for 'ChangePolicyTimeout' field in the if()
[stg.git] / projects / stargazer / plugins / configuration / rpcconfig / tariff_helper.cpp
index 548774deae784fa64c57ed51c475e5dfad554287..c96b7d31cd58b025a83a52d3950f438d3389d67e 100644 (file)
@@ -72,6 +72,11 @@ if ((it = structVal.find("period")) != structVal.end())
     data.tariffConf.period = TARIFF::StringToPeriod(xmlrpc_c::value_string(it->second));
     }
 
+if ((it = structVal.find("changePolicy")) != structVal.end())
+    {
+    data.tariffConf.changePolicy = TARIFF::StringToChangePolicy(xmlrpc_c::value_string(it->second));
+    }
+
 if ((it = structVal.find("dirprices")) != structVal.end())
     {
     std::vector<xmlrpc_c::value> prices(