From: Elena Mamontova Date: Mon, 11 Jul 2016 08:21:45 +0000 (+0300) Subject: Ticket 37. The getting changePolicy value from the structVal map and X-Git-Tag: 2.409~145 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/cc9b57b85e72f96a92a96c90ca9fbac5040129c3?ds=inline;hp=b58a57adfb73f8b5368b8c31fa120399b7c15ef4 Ticket 37. The getting changePolicy value from the structVal map and assign value to data.tariffConf.changePolicy added in the SetTariffInfo() function. --- diff --git a/projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp b/projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp index 548774de..c96b7d31 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp @@ -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 prices(