/* SPDX-License-Identifier: GPL-3.0-or-later Copyright © 2022 Amebis */ #pragma once #include "../include/version.h" #include #include #include #include OATPP_CODEGEN_BEGIN(DTO) class aboutDto : public oatpp::DTO { DTO_INIT(aboutDto, DTO) DTO_FIELD(String, vendor) = PRODUCT_CFG_VENDOR; DTO_FIELD(String, application) = PRODUCT_CFG_APPLICATION; DTO_FIELD(String, version) = PRODUCT_VERSION_STR; }; class transetDto : public oatpp::DTO { DTO_INIT(transetDto, DTO) DTO_FIELD(UInt16, set); DTO_FIELD(String, src); DTO_FIELD(String, dst); }; class languageDto : public oatpp::DTO { DTO_INIT(languageDto, DTO) DTO_FIELD(String, lang); DTO_FIELD(String, name); }; class translateInDto : public oatpp::DTO { DTO_INIT(translateInDto, DTO) DTO_FIELD(Vector, transet); DTO_FIELD(String, text); DTO_FIELD(String, lang) = "slv"; }; class translateOutDto : public oatpp::DTO { DTO_INIT(translateOutDto, DTO) DTO_FIELD(String, text); DTO_FIELD(Vector, map); }; #include OATPP_CODEGEN_END(DTO)