// Copyrigth Xtooltech @ 2023- All rights reserved.(LXH)

#include "StationResultReportRecord.hpp"
#include "cJSON.h"

namespace otx {
	namespace jidu {

		StationResultReportRecord::~StationResultReportRecord() {

		}

		std::string StationResultReportRecord::getOverallResult() {
			return this->mOverallResult;
		}
		void StationResultReportRecord::setOverallResult(const std::string& v) {
			this->mOverallResult = v;
		}

		std::string StationResultReportRecord::toJsonString() {
			std::string result;

			cJSON* obj = cJSON_Parse(ReportRecord::toJsonString().c_str());
			if (this->mOverallResult.size() > 0) {
				cJSON_AddStringToObject(obj, "overallResult", this->mOverallResult.c_str());
			}

			char* tepm = cJSON_PrintUnformatted(obj);
			cJSON_Delete(obj);
			result = tepm;
			cJSON_free(tepm);
			return result;
		}

	} // namespace jidu
} // namespace otx
