]> git.stg.codes - stg.git/commitdiff
Ticket 37. The 'changePolicy' added to the map structVal in the
authorElena Mamontova <helenh463@gmail.com>
Mon, 11 Jul 2016 08:07:23 +0000 (11:07 +0300)
committerElena Mamontova <helenh463@gmail.com>
Mon, 11 Jul 2016 08:07:23 +0000 (11:07 +0300)
GetTariffInfo() function.

projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp

index 26b4e993b719067fae180f47b9c1d1792b1da204..548774deae784fa64c57ed51c475e5dfad554287 100644 (file)
@@ -13,6 +13,7 @@ structVal["freemb"] = xmlrpc_c::value_double(data.tariffConf.free);
 structVal["passivecost"] = xmlrpc_c::value_double(data.tariffConf.passiveCost);
 structVal["traffType"] = xmlrpc_c::value_int(data.tariffConf.traffType);
 structVal["period"] = xmlrpc_c::value_string(TARIFF::PeriodToString(data.tariffConf.period));
 structVal["passivecost"] = xmlrpc_c::value_double(data.tariffConf.passiveCost);
 structVal["traffType"] = xmlrpc_c::value_int(data.tariffConf.traffType);
 structVal["period"] = xmlrpc_c::value_string(TARIFF::PeriodToString(data.tariffConf.period));
+structVal["changePolicy"] = xmlrpc_c::value_string(TARIFF::ChangePolicyToString(data.tariffConf.changePolicy));
 
 std::vector<xmlrpc_c::value> prices(DIR_NUM);
 
 
 std::vector<xmlrpc_c::value> prices(DIR_NUM);