in theory this will work

This commit is contained in:
DarthArgus
2016-12-26 14:50:53 -06:00
parent 39d41ee779
commit c99fee4802
6 changed files with 39 additions and 11 deletions
+8
View File
@@ -55,6 +55,14 @@ std::string webAPI::getString(const std::string &slot) {
return std::string("");
}
std::vector<std::string> getStringVector(const std::string &slot) {
if (!this->responseData.empty() && !slot.empty() && responseData.count(slot) && !this->responseData[slot].is_null()) {
return this->responseData[slot].get<std::vector<std::string>>();
}
return std::vector<std::string>();
}
bool webAPI::submit(const int &reqType, const int &getPost, const int &respType) {
if (reqType == DTYPE::JSON) // json request
{