]> git.stg.codes - stg.git/blobdiff - projects/sgconf/tariffs.cpp
Implemented --add-admin.
[stg.git] / projects / sgconf / tariffs.cpp
index 75cd169fae66b89b5d687c3956104df02f902e99..3da1001a683e92538f9dff7bd0cc34d0de04981c 100644 (file)
@@ -94,15 +94,15 @@ for (size_t i = 0; i < info.dirPrice.size(); ++i)
 std::vector<SGCONF::API_ACTION::PARAM> GetTariffParams()
 {
 std::vector<SGCONF::API_ACTION::PARAM> params;
-params.push_back({"fee", "<fee>", "\t\ttariff fee"});
-params.push_back({"free", "<free mb>", "\tprepaid traff"});
-params.push_back({"passive-cost", "<cost>", "\tpassive cost"});
-params.push_back({"traff-type", "<type>", "\ttraff type (up, dow, up+down, max)"});
-params.push_back({"period", "<period>", "\ttarification period (daily, monthly)"});
-params.push_back({"times", "<hh:mm-hh:mm, ...>", "coma-separated day time-spans for each direction"});
-params.push_back({"day-prices", "<price/price, ...>", "coma-separated day prices for each direction"});
-params.push_back({"night-prices", "<price/price, ...>", "coma-separated day prices for each direction"});
-params.push_back({"thresholds", "<threshold, ...>", "coma-separated thresholds for each direction"});
+params.push_back(SGCONF::API_ACTION::PARAM("fee", "<fee>", "\t\ttariff fee"));
+params.push_back(SGCONF::API_ACTION::PARAM("free", "<free mb>", "\tprepaid traff"));
+params.push_back(SGCONF::API_ACTION::PARAM("passive-cost", "<cost>", "\tpassive cost"));
+params.push_back(SGCONF::API_ACTION::PARAM("traff-type", "<type>", "\ttraff type (up, dow, up+down, max)"));
+params.push_back(SGCONF::API_ACTION::PARAM("period", "<period>", "\ttarification period (daily, monthly)"));
+params.push_back(SGCONF::API_ACTION::PARAM("times", "<hh:mm-hh:mm, ...>", "coma-separated day time-spans for each direction"));
+params.push_back(SGCONF::API_ACTION::PARAM("day-prices", "<price/price, ...>", "coma-separated day prices for each direction"));
+params.push_back(SGCONF::API_ACTION::PARAM("night-prices", "<price/price, ...>", "coma-separated day prices for each direction"));
+params.push_back(SGCONF::API_ACTION::PARAM("thresholds", "<threshold, ...>", "coma-separated thresholds for each direction"));
 return params;
 }