]> git.stg.codes - stg.git/commitdiff
Ticket 37. The getting changePolicy value from the structVal map and
authorElena Mamontova <helenh463@gmail.com>
Mon, 11 Jul 2016 08:21:45 +0000 (11:21 +0300)
committerElena Mamontova <helenh463@gmail.com>
Mon, 11 Jul 2016 08:21:45 +0000 (11:21 +0300)
assign value to data.tariffConf.changePolicy added in the
SetTariffInfo() function.

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(