diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 5f84a81d..4c631cf2 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.12.0 +7.14.0-SNAPSHOT diff --git a/include/tribufu++/AnyType.h b/include/tribufu++/AnyType.h index 10dff4aa..822c542a 100644 --- a/include/tribufu++/AnyType.h +++ b/include/tribufu++/AnyType.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/ApiClient.h b/include/tribufu++/ApiClient.h index f38c6241..3221c271 100644 --- a/include/tribufu++/ApiClient.h +++ b/include/tribufu++/ApiClient.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,7 +23,7 @@ #include "tribufu++/ApiException.h" #include "tribufu++/HttpContent.h" #include "tribufu++/IHttpBody.h" - +#include "tribufu++/ModelBase.h" #if defined(_WIN32) || defined(_WIN64) #undef U #endif @@ -63,6 +63,7 @@ namespace tribufu static utility::string_t parameterToString(double value); static utility::string_t parameterToString(const utility::datetime &value); static utility::string_t parameterToString(bool value); + static utility::string_t parameterToString(const ModelBase &value); template static utility::string_t parameterToString(const std::vector &value); template static utility::string_t parameterToString(const std::shared_ptr &value); diff --git a/include/tribufu++/ApiConfiguration.h b/include/tribufu++/ApiConfiguration.h index e9222feb..57b49bac 100644 --- a/include/tribufu++/ApiConfiguration.h +++ b/include/tribufu++/ApiConfiguration.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/ApiException.h b/include/tribufu++/ApiException.h index 311e9508..b8275220 100644 --- a/include/tribufu++/ApiException.h +++ b/include/tribufu++/ApiException.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/HttpContent.h b/include/tribufu++/HttpContent.h index cc0d305a..21abca1a 100644 --- a/include/tribufu++/HttpContent.h +++ b/include/tribufu++/HttpContent.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/IHttpBody.h b/include/tribufu++/IHttpBody.h index 81c768c4..9c76345f 100644 --- a/include/tribufu++/IHttpBody.h +++ b/include/tribufu++/IHttpBody.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/JsonBody.h b/include/tribufu++/JsonBody.h index 20870eeb..d325b5aa 100644 --- a/include/tribufu++/JsonBody.h +++ b/include/tribufu++/JsonBody.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/ModelBase.h b/include/tribufu++/ModelBase.h index e70502e2..60ac4048 100644 --- a/include/tribufu++/ModelBase.h +++ b/include/tribufu++/ModelBase.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/MultipartFormData.h b/include/tribufu++/MultipartFormData.h index 359dd4e1..a1d25b58 100644 --- a/include/tribufu++/MultipartFormData.h +++ b/include/tribufu++/MultipartFormData.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/Object.h b/include/tribufu++/Object.h index 5c78fcde..f3137713 100644 --- a/include/tribufu++/Object.h +++ b/include/tribufu++/Object.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/api/TribufuGeneratedApi.h b/include/tribufu++/api/TribufuGeneratedApi.h index 6ebd2dae..e41321ac 100644 --- a/include/tribufu++/api/TribufuGeneratedApi.h +++ b/include/tribufu++/api/TribufuGeneratedApi.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/Account.h b/include/tribufu++/model/Account.h index f380461d..03a5a2b9 100644 --- a/include/tribufu++/model/Account.h +++ b/include/tribufu++/model/Account.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/Application.h b/include/tribufu++/model/Application.h index 2cc0a47d..45678c79 100644 --- a/include/tribufu++/model/Application.h +++ b/include/tribufu++/model/Application.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/ApplicationType.h b/include/tribufu++/model/ApplicationType.h index e9353649..7a16637d 100644 --- a/include/tribufu++/model/ApplicationType.h +++ b/include/tribufu++/model/ApplicationType.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,12 @@ namespace tribufu { public: ApplicationType(); + ApplicationType(utility::string_t str); + operator utility::string_t() const + { + return enumToStrMap.at(getValue()); + } + virtual ~ApplicationType(); ///////////////////////////////////////////// @@ -56,6 +62,12 @@ namespace tribufu protected: eApplicationType m_value; + std::map enumToStrMap = { + {eApplicationType::ApplicationType_APPLICATION, "APPLICATION"}, + {eApplicationType::ApplicationType_GAME, "GAME"}}; + std::map strToEnumMap = { + {"APPLICATION", eApplicationType::ApplicationType_APPLICATION}, + {"GAME", eApplicationType::ApplicationType_GAME}}; }; } diff --git a/include/tribufu++/model/AuthorizeRequest.h b/include/tribufu++/model/AuthorizeRequest.h index 26928036..8bd08770 100644 --- a/include/tribufu++/model/AuthorizeRequest.h +++ b/include/tribufu++/model/AuthorizeRequest.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/CodeChallengeMethod.h b/include/tribufu++/model/CodeChallengeMethod.h index 9211efc9..bd8feb46 100644 --- a/include/tribufu++/model/CodeChallengeMethod.h +++ b/include/tribufu++/model/CodeChallengeMethod.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,12 @@ namespace tribufu { public: CodeChallengeMethod(); + CodeChallengeMethod(utility::string_t str); + operator utility::string_t() const + { + return enumToStrMap.at(getValue()); + } + virtual ~CodeChallengeMethod(); ///////////////////////////////////////////// @@ -56,6 +62,12 @@ namespace tribufu protected: eCodeChallengeMethod m_value; + std::map enumToStrMap = { + {eCodeChallengeMethod::CodeChallengeMethod_PLAIN, "PLAIN"}, + {eCodeChallengeMethod::CodeChallengeMethod_S256, "S256"}}; + std::map strToEnumMap = { + {"PLAIN", eCodeChallengeMethod::CodeChallengeMethod_PLAIN}, + {"S256", eCodeChallengeMethod::CodeChallengeMethod_S256}}; }; } diff --git a/include/tribufu++/model/CryptoViewModel.h b/include/tribufu++/model/CryptoViewModel.h index 3ca17382..0d010bd8 100644 --- a/include/tribufu++/model/CryptoViewModel.h +++ b/include/tribufu++/model/CryptoViewModel.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/Game.h b/include/tribufu++/model/Game.h index 95125f3e..003d5c72 100644 --- a/include/tribufu++/model/Game.h +++ b/include/tribufu++/model/Game.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/GameServer.h b/include/tribufu++/model/GameServer.h index 61b59afc..b8d6863a 100644 --- a/include/tribufu++/model/GameServer.h +++ b/include/tribufu++/model/GameServer.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/GameServerCluster.h b/include/tribufu++/model/GameServerCluster.h index e43127f5..29f7e0db 100644 --- a/include/tribufu++/model/GameServerCluster.h +++ b/include/tribufu++/model/GameServerCluster.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/GrantType.h b/include/tribufu++/model/GrantType.h index 64135be5..938ab906 100644 --- a/include/tribufu++/model/GrantType.h +++ b/include/tribufu++/model/GrantType.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,12 @@ namespace tribufu { public: GrantType(); + GrantType(utility::string_t str); + operator utility::string_t() const + { + return enumToStrMap.at(getValue()); + } + virtual ~GrantType(); ///////////////////////////////////////////// @@ -58,6 +64,16 @@ namespace tribufu protected: eGrantType m_value; + std::map enumToStrMap = { + {eGrantType::GrantType_AUTHORIZATION_CODE, "AUTHORIZATION_CODE"}, + {eGrantType::GrantType_CLIENT_CREDENTIALS, "CLIENT_CREDENTIALS"}, + {eGrantType::GrantType_PASSWORD, "PASSWORD"}, + {eGrantType::GrantType_REFRESH_TOKEN, "REFRESH_TOKEN"}}; + std::map strToEnumMap = { + {"AUTHORIZATION_CODE", eGrantType::GrantType_AUTHORIZATION_CODE}, + {"CLIENT_CREDENTIALS", eGrantType::GrantType_CLIENT_CREDENTIALS}, + {"PASSWORD", eGrantType::GrantType_PASSWORD}, + {"REFRESH_TOKEN", eGrantType::GrantType_REFRESH_TOKEN}}; }; } diff --git a/include/tribufu++/model/Group.h b/include/tribufu++/model/Group.h index 2c0cf235..86af2938 100644 --- a/include/tribufu++/model/Group.h +++ b/include/tribufu++/model/Group.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/GroupGame.h b/include/tribufu++/model/GroupGame.h index 8e01d084..b594a21c 100644 --- a/include/tribufu++/model/GroupGame.h +++ b/include/tribufu++/model/GroupGame.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/GroupMember.h b/include/tribufu++/model/GroupMember.h index c09f2f58..cec88032 100644 --- a/include/tribufu++/model/GroupMember.h +++ b/include/tribufu++/model/GroupMember.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/GroupRank.h b/include/tribufu++/model/GroupRank.h index 47fd0d1d..dc098b56 100644 --- a/include/tribufu++/model/GroupRank.h +++ b/include/tribufu++/model/GroupRank.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,12 @@ namespace tribufu { public: GroupRank(); + GroupRank(utility::string_t str); + operator utility::string_t() const + { + return enumToStrMap.at(getValue()); + } + virtual ~GroupRank(); ///////////////////////////////////////////// @@ -57,6 +63,12 @@ namespace tribufu protected: eGroupRank m_value; + std::map enumToStrMap = {{eGroupRank::GroupRank_MEMBER, "MEMBER"}, + {eGroupRank::GroupRank_LEADER, "LEADER"}, + {eGroupRank::GroupRank_OWNER, "OWNER"}}; + std::map strToEnumMap = {{"MEMBER", eGroupRank::GroupRank_MEMBER}, + {"LEADER", eGroupRank::GroupRank_LEADER}, + {"OWNER", eGroupRank::GroupRank_OWNER}}; }; } diff --git a/include/tribufu++/model/HashViewModel.h b/include/tribufu++/model/HashViewModel.h index 1a361df2..adcb3e17 100644 --- a/include/tribufu++/model/HashViewModel.h +++ b/include/tribufu++/model/HashViewModel.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/IntrospectRequest.h b/include/tribufu++/model/IntrospectRequest.h index 73ba38f0..7887a43a 100644 --- a/include/tribufu++/model/IntrospectRequest.h +++ b/include/tribufu++/model/IntrospectRequest.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/IpAddress.h b/include/tribufu++/model/IpAddress.h index 3732ad6d..9fbd3942 100644 --- a/include/tribufu++/model/IpAddress.h +++ b/include/tribufu++/model/IpAddress.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/LeaderboardItem.h b/include/tribufu++/model/LeaderboardItem.h index d62fb8d2..273fb77d 100644 --- a/include/tribufu++/model/LeaderboardItem.h +++ b/include/tribufu++/model/LeaderboardItem.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/LeaderboardOrder.h b/include/tribufu++/model/LeaderboardOrder.h index 83d3f354..71bcce1a 100644 --- a/include/tribufu++/model/LeaderboardOrder.h +++ b/include/tribufu++/model/LeaderboardOrder.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,12 @@ namespace tribufu { public: LeaderboardOrder(); + LeaderboardOrder(utility::string_t str); + operator utility::string_t() const + { + return enumToStrMap.at(getValue()); + } + virtual ~LeaderboardOrder(); ///////////////////////////////////////////// @@ -56,6 +62,12 @@ namespace tribufu protected: eLeaderboardOrder m_value; + std::map enumToStrMap = { + {eLeaderboardOrder::LeaderboardOrder_LEVEL, "LEVEL"}, + {eLeaderboardOrder::LeaderboardOrder_POINTS, "POINTS"}}; + std::map strToEnumMap = { + {"LEVEL", eLeaderboardOrder::LeaderboardOrder_LEVEL}, + {"POINTS", eLeaderboardOrder::LeaderboardOrder_POINTS}}; }; } diff --git a/include/tribufu++/model/LoginProvider.h b/include/tribufu++/model/LoginProvider.h index 9eb3b464..4fb293d2 100644 --- a/include/tribufu++/model/LoginProvider.h +++ b/include/tribufu++/model/LoginProvider.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,12 @@ namespace tribufu { public: LoginProvider(); + LoginProvider(utility::string_t str); + operator utility::string_t() const + { + return enumToStrMap.at(getValue()); + } + virtual ~LoginProvider(); ///////////////////////////////////////////// @@ -61,6 +67,22 @@ namespace tribufu protected: eLoginProvider m_value; + std::map enumToStrMap = { + {eLoginProvider::LoginProvider_STEAM, "STEAM"}, + {eLoginProvider::LoginProvider_EPIC, "EPIC"}, + {eLoginProvider::LoginProvider_DISCORD, "DISCORD"}, + {eLoginProvider::LoginProvider_MICROSOFT, "MICROSOFT"}, + {eLoginProvider::LoginProvider_PLAYSTATION, "PLAYSTATION"}, + {eLoginProvider::LoginProvider_GOOGLE, "GOOGLE"}, + {eLoginProvider::LoginProvider_APPLE, "APPLE"}}; + std::map strToEnumMap = { + {"STEAM", eLoginProvider::LoginProvider_STEAM}, + {"EPIC", eLoginProvider::LoginProvider_EPIC}, + {"DISCORD", eLoginProvider::LoginProvider_DISCORD}, + {"MICROSOFT", eLoginProvider::LoginProvider_MICROSOFT}, + {"PLAYSTATION", eLoginProvider::LoginProvider_PLAYSTATION}, + {"GOOGLE", eLoginProvider::LoginProvider_GOOGLE}, + {"APPLE", eLoginProvider::LoginProvider_APPLE}}; }; } diff --git a/include/tribufu++/model/LoginRequest.h b/include/tribufu++/model/LoginRequest.h index db83d881..25e83500 100644 --- a/include/tribufu++/model/LoginRequest.h +++ b/include/tribufu++/model/LoginRequest.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/LoginResponse.h b/include/tribufu++/model/LoginResponse.h index 64b790f6..c511d187 100644 --- a/include/tribufu++/model/LoginResponse.h +++ b/include/tribufu++/model/LoginResponse.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/Package.h b/include/tribufu++/model/Package.h index 4ee382aa..0b0cde3e 100644 --- a/include/tribufu++/model/Package.h +++ b/include/tribufu++/model/Package.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/Profile.h b/include/tribufu++/model/Profile.h index fc668ba6..63e1ee0e 100644 --- a/include/tribufu++/model/Profile.h +++ b/include/tribufu++/model/Profile.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/ProfileGame.h b/include/tribufu++/model/ProfileGame.h index 004899f5..0a9f286f 100644 --- a/include/tribufu++/model/ProfileGame.h +++ b/include/tribufu++/model/ProfileGame.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/ProfileGroup.h b/include/tribufu++/model/ProfileGroup.h index 2bd4ef7f..f7613ebb 100644 --- a/include/tribufu++/model/ProfileGroup.h +++ b/include/tribufu++/model/ProfileGroup.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/RefreshRequest.h b/include/tribufu++/model/RefreshRequest.h index de46a104..faddab2a 100644 --- a/include/tribufu++/model/RefreshRequest.h +++ b/include/tribufu++/model/RefreshRequest.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/RegisterRequest.h b/include/tribufu++/model/RegisterRequest.h index d59e6aaa..c461404d 100644 --- a/include/tribufu++/model/RegisterRequest.h +++ b/include/tribufu++/model/RegisterRequest.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/ResponseType.h b/include/tribufu++/model/ResponseType.h index 752569b4..d6f5d745 100644 --- a/include/tribufu++/model/ResponseType.h +++ b/include/tribufu++/model/ResponseType.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,12 @@ namespace tribufu { public: ResponseType(); + ResponseType(utility::string_t str); + operator utility::string_t() const + { + return enumToStrMap.at(getValue()); + } + virtual ~ResponseType(); ///////////////////////////////////////////// @@ -56,6 +62,10 @@ namespace tribufu protected: eResponseType m_value; + std::map enumToStrMap = {{eResponseType::ResponseType_CODE, "CODE"}, + {eResponseType::ResponseType_TOKEN, "TOKEN"}}; + std::map strToEnumMap = {{"CODE", eResponseType::ResponseType_CODE}, + {"TOKEN", eResponseType::ResponseType_TOKEN}}; }; } diff --git a/include/tribufu++/model/RevokeRequest.h b/include/tribufu++/model/RevokeRequest.h index da241578..bc6fd543 100644 --- a/include/tribufu++/model/RevokeRequest.h +++ b/include/tribufu++/model/RevokeRequest.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/SearchRequest.h b/include/tribufu++/model/SearchRequest.h index dd73786b..e0ac6af8 100644 --- a/include/tribufu++/model/SearchRequest.h +++ b/include/tribufu++/model/SearchRequest.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/SearchType.h b/include/tribufu++/model/SearchType.h index 3271783b..dfbbeeb2 100644 --- a/include/tribufu++/model/SearchType.h +++ b/include/tribufu++/model/SearchType.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,12 @@ namespace tribufu { public: SearchType(); + SearchType(utility::string_t str); + operator utility::string_t() const + { + return enumToStrMap.at(getValue()); + } + virtual ~SearchType(); ///////////////////////////////////////////// @@ -58,6 +64,14 @@ namespace tribufu protected: eSearchType m_value; + std::map enumToStrMap = {{eSearchType::SearchType_USER, "USER"}, + {eSearchType::SearchType_GROUP, "GROUP"}, + {eSearchType::SearchType_SERVER, "SERVER"}, + {eSearchType::SearchType_CLUSTER, "CLUSTER"}}; + std::map strToEnumMap = {{"USER", eSearchType::SearchType_USER}, + {"GROUP", eSearchType::SearchType_GROUP}, + {"SERVER", eSearchType::SearchType_SERVER}, + {"CLUSTER", eSearchType::SearchType_CLUSTER}}; }; } diff --git a/include/tribufu++/model/ServerMetrics.h b/include/tribufu++/model/ServerMetrics.h index bf63deb3..7cf24019 100644 --- a/include/tribufu++/model/ServerMetrics.h +++ b/include/tribufu++/model/ServerMetrics.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/ServerStatus.h b/include/tribufu++/model/ServerStatus.h index 71b7ef27..502c9702 100644 --- a/include/tribufu++/model/ServerStatus.h +++ b/include/tribufu++/model/ServerStatus.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,12 @@ namespace tribufu { public: ServerStatus(); + ServerStatus(utility::string_t str); + operator utility::string_t() const + { + return enumToStrMap.at(getValue()); + } + virtual ~ServerStatus(); ///////////////////////////////////////////// @@ -57,6 +63,12 @@ namespace tribufu protected: eServerStatus m_value; + std::map enumToStrMap = {{eServerStatus::ServerStatus_UNKNOWN, "UNKNOWN"}, + {eServerStatus::ServerStatus_OFFLINE, "OFFLINE"}, + {eServerStatus::ServerStatus_ONLINE, "ONLINE"}}; + std::map strToEnumMap = {{"UNKNOWN", eServerStatus::ServerStatus_UNKNOWN}, + {"OFFLINE", eServerStatus::ServerStatus_OFFLINE}, + {"ONLINE", eServerStatus::ServerStatus_ONLINE}}; }; } diff --git a/include/tribufu++/model/Subscription.h b/include/tribufu++/model/Subscription.h index 45926adc..c13e7e64 100644 --- a/include/tribufu++/model/Subscription.h +++ b/include/tribufu++/model/Subscription.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/TokenHintType.h b/include/tribufu++/model/TokenHintType.h index 8d042d2f..a6adcce9 100644 --- a/include/tribufu++/model/TokenHintType.h +++ b/include/tribufu++/model/TokenHintType.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,12 @@ namespace tribufu { public: TokenHintType(); + TokenHintType(utility::string_t str); + operator utility::string_t() const + { + return enumToStrMap.at(getValue()); + } + virtual ~TokenHintType(); ///////////////////////////////////////////// @@ -56,6 +62,12 @@ namespace tribufu protected: eTokenHintType m_value; + std::map enumToStrMap = { + {eTokenHintType::TokenHintType_ACCESS_TOKEN, "ACCESS_TOKEN"}, + {eTokenHintType::TokenHintType_REFRESH_TOKEN, "REFRESH_TOKEN"}}; + std::map strToEnumMap = { + {"ACCESS_TOKEN", eTokenHintType::TokenHintType_ACCESS_TOKEN}, + {"REFRESH_TOKEN", eTokenHintType::TokenHintType_REFRESH_TOKEN}}; }; } diff --git a/include/tribufu++/model/TokenRequest.h b/include/tribufu++/model/TokenRequest.h index 2b046e5c..9b9bbaca 100644 --- a/include/tribufu++/model/TokenRequest.h +++ b/include/tribufu++/model/TokenRequest.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/TokenResponse.h b/include/tribufu++/model/TokenResponse.h index e08beda3..cf91324e 100644 --- a/include/tribufu++/model/TokenResponse.h +++ b/include/tribufu++/model/TokenResponse.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/TokenType.h b/include/tribufu++/model/TokenType.h index 0a37e0af..d7fc4bf6 100644 --- a/include/tribufu++/model/TokenType.h +++ b/include/tribufu++/model/TokenType.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,12 @@ namespace tribufu { public: TokenType(); + TokenType(utility::string_t str); + operator utility::string_t() const + { + return enumToStrMap.at(getValue()); + } + virtual ~TokenType(); ///////////////////////////////////////////// @@ -55,6 +61,8 @@ namespace tribufu protected: eTokenType m_value; + std::map enumToStrMap = {{eTokenType::TokenType_BEARER, "BEARER"}}; + std::map strToEnumMap = {{"BEARER", eTokenType::TokenType_BEARER}}; }; } diff --git a/include/tribufu++/model/UpdateProfile.h b/include/tribufu++/model/UpdateProfile.h index 9d1da85f..0c427b86 100644 --- a/include/tribufu++/model/UpdateProfile.h +++ b/include/tribufu++/model/UpdateProfile.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/UserInfo.h b/include/tribufu++/model/UserInfo.h index 8031119f..4c67001c 100644 --- a/include/tribufu++/model/UserInfo.h +++ b/include/tribufu++/model/UserInfo.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/include/tribufu++/model/UserType.h b/include/tribufu++/model/UserType.h index c0203709..bf0c8254 100644 --- a/include/tribufu++/model/UserType.h +++ b/include/tribufu++/model/UserType.h @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -30,6 +30,12 @@ namespace tribufu { public: UserType(); + UserType(utility::string_t str); + operator utility::string_t() const + { + return enumToStrMap.at(getValue()); + } + virtual ~UserType(); ///////////////////////////////////////////// @@ -56,6 +62,10 @@ namespace tribufu protected: eUserType m_value; + std::map enumToStrMap = {{eUserType::UserType_USER, "USER"}, + {eUserType::UserType_BOT, "BOT"}}; + std::map strToEnumMap = {{"USER", eUserType::UserType_USER}, + {"BOT", eUserType::UserType_BOT}}; }; } diff --git a/src/AnyType.cpp b/src/AnyType.cpp index 2f2a3946..82ee6ccb 100644 --- a/src/AnyType.cpp +++ b/src/AnyType.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/src/ApiClient.cpp b/src/ApiClient.cpp index aee64086..b154eb35 100644 --- a/src/ApiClient.cpp +++ b/src/ApiClient.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -90,6 +90,11 @@ namespace tribufu return utility::conversions::to_string_t(value.to_string(utility::datetime::ISO_8601)); } + utility::string_t ApiClient::parameterToString(const ModelBase &value) + { + return value.toJson().serialize(); + } + utility::string_t ApiClient::parameterToString(bool value) { std::stringstream valueAsStringStream; diff --git a/src/ApiConfiguration.cpp b/src/ApiConfiguration.cpp index 792a576a..ccfaa968 100644 --- a/src/ApiConfiguration.cpp +++ b/src/ApiConfiguration.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/src/ApiException.cpp b/src/ApiException.cpp index 3103dc14..0c2dabad 100644 --- a/src/ApiException.cpp +++ b/src/ApiException.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/src/HttpContent.cpp b/src/HttpContent.cpp index 68f01b7b..174dd35d 100644 --- a/src/HttpContent.cpp +++ b/src/HttpContent.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/src/JsonBody.cpp b/src/JsonBody.cpp index 7e9b87ee..80ade7ba 100644 --- a/src/JsonBody.cpp +++ b/src/JsonBody.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/src/ModelBase.cpp b/src/ModelBase.cpp index 7642168b..868c14cb 100644 --- a/src/ModelBase.cpp +++ b/src/ModelBase.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/src/MultipartFormData.cpp b/src/MultipartFormData.cpp index 329a5347..79243a4d 100644 --- a/src/MultipartFormData.cpp +++ b/src/MultipartFormData.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/src/Object.cpp b/src/Object.cpp index b988cce7..8381d8b8 100644 --- a/src/Object.cpp +++ b/src/Object.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/src/api/TribufuGeneratedApi.cpp b/src/api/TribufuGeneratedApi.cpp index cfc42b55..bc53273b 100644 --- a/src/api/TribufuGeneratedApi.cpp +++ b/src/api/TribufuGeneratedApi.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/src/model/Account.cpp b/src/model/Account.cpp index 5f32dee3..19725def 100644 --- a/src/model/Account.cpp +++ b/src/model/Account.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -50,42 +50,42 @@ namespace tribufu if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_ProviderIsSet) { - val[utility::conversions::to_string_t(U("provider"))] = ModelBase::toJson(m_Provider); + val[utility::conversions::to_string_t(_XPLATSTR("provider"))] = ModelBase::toJson(m_Provider); } if (m_User_idIsSet) { - val[utility::conversions::to_string_t(U("user_id"))] = ModelBase::toJson(m_User_id); + val[utility::conversions::to_string_t(_XPLATSTR("user_id"))] = ModelBase::toJson(m_User_id); } if (m_AuthorizedIsSet) { - val[utility::conversions::to_string_t(U("authorized"))] = ModelBase::toJson(m_Authorized); + val[utility::conversions::to_string_t(_XPLATSTR("authorized"))] = ModelBase::toJson(m_Authorized); } if (m_FieldsIsSet) { - val[utility::conversions::to_string_t(U("fields"))] = ModelBase::toJson(m_Fields); + val[utility::conversions::to_string_t(_XPLATSTR("fields"))] = ModelBase::toJson(m_Fields); } if (m_CreatedIsSet) { - val[utility::conversions::to_string_t(U("created"))] = ModelBase::toJson(m_Created); + val[utility::conversions::to_string_t(_XPLATSTR("created"))] = ModelBase::toJson(m_Created); } if (m_UpdatedIsSet) { - val[utility::conversions::to_string_t(U("updated"))] = ModelBase::toJson(m_Updated); + val[utility::conversions::to_string_t(_XPLATSTR("updated"))] = ModelBase::toJson(m_Updated); } return val; @@ -94,9 +94,9 @@ namespace tribufu bool Account::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -104,9 +104,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -114,9 +114,9 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("provider")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("provider")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("provider"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("provider"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setProvider; @@ -124,9 +124,9 @@ namespace tribufu setProvider(refVal_setProvider); } } - if (val.has_field(utility::conversions::to_string_t(U("user_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("user_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("user_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setUserId; @@ -134,9 +134,9 @@ namespace tribufu setUserId(refVal_setUserId); } } - if (val.has_field(utility::conversions::to_string_t(U("authorized")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("authorized")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("authorized"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("authorized"))); if (!fieldValue.is_null()) { bool refVal_setAuthorized; @@ -144,9 +144,9 @@ namespace tribufu setAuthorized(refVal_setAuthorized); } } - if (val.has_field(utility::conversions::to_string_t(U("fields")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("fields")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("fields"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("fields"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setFields; @@ -154,9 +154,9 @@ namespace tribufu setFields(refVal_setFields); } } - if (val.has_field(utility::conversions::to_string_t(U("created")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("created")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("created"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("created"))); if (!fieldValue.is_null()) { utility::datetime refVal_setCreated; @@ -164,9 +164,9 @@ namespace tribufu setCreated(refVal_setCreated); } } - if (val.has_field(utility::conversions::to_string_t(U("updated")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("updated")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("updated"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("updated"))); if (!fieldValue.is_null()) { utility::datetime refVal_setUpdated; @@ -181,48 +181,49 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_ProviderIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("provider")), - m_Provider)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("provider")), m_Provider)); } if (m_User_idIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("user_id")), m_User_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("user_id")), m_User_id)); } if (m_AuthorizedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("authorized")), - m_Authorized)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("authorized")), m_Authorized)); } if (m_FieldsIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("fields")), m_Fields)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("fields")), m_Fields)); } if (m_CreatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created)); } if (m_UpdatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated)); } } @@ -231,65 +232,67 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("provider")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("provider")))) { std::shared_ptr refVal_setProvider; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("provider"))), refVal_setProvider); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("provider"))), + refVal_setProvider); setProvider(refVal_setProvider); } - if (multipart->hasContent(utility::conversions::to_string_t(U("user_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user_id")))) { utility::string_t refVal_setUserId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("user_id"))), - refVal_setUserId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user_id"))), refVal_setUserId); setUserId(refVal_setUserId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("authorized")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("authorized")))) { bool refVal_setAuthorized; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("authorized"))), refVal_setAuthorized); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("authorized"))), + refVal_setAuthorized); setAuthorized(refVal_setAuthorized); } - if (multipart->hasContent(utility::conversions::to_string_t(U("fields")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("fields")))) { std::shared_ptr refVal_setFields; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("fields"))), - refVal_setFields); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("fields"))), refVal_setFields); setFields(refVal_setFields); } - if (multipart->hasContent(utility::conversions::to_string_t(U("created")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("created")))) { utility::datetime refVal_setCreated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))), - refVal_setCreated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated); setCreated(refVal_setCreated); } - if (multipart->hasContent(utility::conversions::to_string_t(U("updated")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("updated")))) { utility::datetime refVal_setUpdated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))), - refVal_setUpdated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated); setUpdated(refVal_setUpdated); } return ok; diff --git a/src/model/Application.cpp b/src/model/Application.cpp index 32cfee49..83c847e4 100644 --- a/src/model/Application.cpp +++ b/src/model/Application.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -75,102 +75,107 @@ namespace tribufu if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_DescriptionIsSet) { - val[utility::conversions::to_string_t(U("description"))] = ModelBase::toJson(m_Description); + val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if (m_TypeIsSet) { - val[utility::conversions::to_string_t(U("type"))] = ModelBase::toJson(m_Type); + val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if (m_Organization_idIsSet) { - val[utility::conversions::to_string_t(U("organization_id"))] = ModelBase::toJson(m_Organization_id); + val[utility::conversions::to_string_t(_XPLATSTR("organization_id"))] = + ModelBase::toJson(m_Organization_id); } if (m_Icon_urlIsSet) { - val[utility::conversions::to_string_t(U("icon_url"))] = ModelBase::toJson(m_Icon_url); + val[utility::conversions::to_string_t(_XPLATSTR("icon_url"))] = ModelBase::toJson(m_Icon_url); } if (m_Banner_urlIsSet) { - val[utility::conversions::to_string_t(U("banner_url"))] = ModelBase::toJson(m_Banner_url); + val[utility::conversions::to_string_t(_XPLATSTR("banner_url"))] = ModelBase::toJson(m_Banner_url); } if (m_Capsule_image_urlIsSet) { - val[utility::conversions::to_string_t(U("capsule_image_url"))] = ModelBase::toJson(m_Capsule_image_url); + val[utility::conversions::to_string_t(_XPLATSTR("capsule_image_url"))] = + ModelBase::toJson(m_Capsule_image_url); } if (m_Library_image_urlIsSet) { - val[utility::conversions::to_string_t(U("library_image_url"))] = ModelBase::toJson(m_Library_image_url); + val[utility::conversions::to_string_t(_XPLATSTR("library_image_url"))] = + ModelBase::toJson(m_Library_image_url); } if (m_Parent_idIsSet) { - val[utility::conversions::to_string_t(U("parent_id"))] = ModelBase::toJson(m_Parent_id); + val[utility::conversions::to_string_t(_XPLATSTR("parent_id"))] = ModelBase::toJson(m_Parent_id); } if (m_SlugIsSet) { - val[utility::conversions::to_string_t(U("slug"))] = ModelBase::toJson(m_Slug); + val[utility::conversions::to_string_t(_XPLATSTR("slug"))] = ModelBase::toJson(m_Slug); } if (m_VisibilityIsSet) { - val[utility::conversions::to_string_t(U("visibility"))] = ModelBase::toJson(m_Visibility); + val[utility::conversions::to_string_t(_XPLATSTR("visibility"))] = ModelBase::toJson(m_Visibility); } if (m_PasswordIsSet) { - val[utility::conversions::to_string_t(U("password"))] = ModelBase::toJson(m_Password); + val[utility::conversions::to_string_t(_XPLATSTR("password"))] = ModelBase::toJson(m_Password); } if (m_PrimaryIsSet) { - val[utility::conversions::to_string_t(U("primary"))] = ModelBase::toJson(m_Primary); + val[utility::conversions::to_string_t(_XPLATSTR("primary"))] = ModelBase::toJson(m_Primary); } if (m_User_countIsSet) { - val[utility::conversions::to_string_t(U("user_count"))] = ModelBase::toJson(m_User_count); + val[utility::conversions::to_string_t(_XPLATSTR("user_count"))] = ModelBase::toJson(m_User_count); } if (m_Achievement_countIsSet) { - val[utility::conversions::to_string_t(U("achievement_count"))] = ModelBase::toJson(m_Achievement_count); + val[utility::conversions::to_string_t(_XPLATSTR("achievement_count"))] = + ModelBase::toJson(m_Achievement_count); } if (m_Badge_countIsSet) { - val[utility::conversions::to_string_t(U("badge_count"))] = ModelBase::toJson(m_Badge_count); + val[utility::conversions::to_string_t(_XPLATSTR("badge_count"))] = ModelBase::toJson(m_Badge_count); } if (m_Download_countIsSet) { - val[utility::conversions::to_string_t(U("download_count"))] = ModelBase::toJson(m_Download_count); + val[utility::conversions::to_string_t(_XPLATSTR("download_count"))] = + ModelBase::toJson(m_Download_count); } if (m_CreatedIsSet) { - val[utility::conversions::to_string_t(U("created"))] = ModelBase::toJson(m_Created); + val[utility::conversions::to_string_t(_XPLATSTR("created"))] = ModelBase::toJson(m_Created); } if (m_UpdatedIsSet) { - val[utility::conversions::to_string_t(U("updated"))] = ModelBase::toJson(m_Updated); + val[utility::conversions::to_string_t(_XPLATSTR("updated"))] = ModelBase::toJson(m_Updated); } return val; @@ -179,9 +184,9 @@ namespace tribufu bool Application::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -189,9 +194,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -199,9 +204,10 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("description")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("description")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("description"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("description"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDescription; @@ -209,9 +215,9 @@ namespace tribufu setDescription(refVal_setDescription); } } - if (val.has_field(utility::conversions::to_string_t(U("type")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("type")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("type"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("type"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setType; @@ -219,9 +225,10 @@ namespace tribufu setType(refVal_setType); } } - if (val.has_field(utility::conversions::to_string_t(U("organization_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("organization_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("organization_id"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("organization_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setOrganizationId; @@ -229,9 +236,9 @@ namespace tribufu setOrganizationId(refVal_setOrganizationId); } } - if (val.has_field(utility::conversions::to_string_t(U("icon_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("icon_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("icon_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("icon_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setIconUrl; @@ -239,9 +246,9 @@ namespace tribufu setIconUrl(refVal_setIconUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("banner_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("banner_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banner_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setBannerUrl; @@ -249,9 +256,10 @@ namespace tribufu setBannerUrl(refVal_setBannerUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("capsule_image_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("capsule_image_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("capsule_image_url"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("capsule_image_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setCapsuleImageUrl; @@ -259,9 +267,10 @@ namespace tribufu setCapsuleImageUrl(refVal_setCapsuleImageUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("library_image_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("library_image_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("library_image_url"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("library_image_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setLibraryImageUrl; @@ -269,9 +278,9 @@ namespace tribufu setLibraryImageUrl(refVal_setLibraryImageUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("parent_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("parent_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("parent_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("parent_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setParentId; @@ -279,9 +288,9 @@ namespace tribufu setParentId(refVal_setParentId); } } - if (val.has_field(utility::conversions::to_string_t(U("slug")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("slug")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("slug"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("slug"))); if (!fieldValue.is_null()) { utility::string_t refVal_setSlug; @@ -289,9 +298,9 @@ namespace tribufu setSlug(refVal_setSlug); } } - if (val.has_field(utility::conversions::to_string_t(U("visibility")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("visibility")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("visibility"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("visibility"))); if (!fieldValue.is_null()) { int32_t refVal_setVisibility; @@ -299,9 +308,9 @@ namespace tribufu setVisibility(refVal_setVisibility); } } - if (val.has_field(utility::conversions::to_string_t(U("password")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("password")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("password"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("password"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPassword; @@ -309,9 +318,9 @@ namespace tribufu setPassword(refVal_setPassword); } } - if (val.has_field(utility::conversions::to_string_t(U("primary")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("primary")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("primary"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("primary"))); if (!fieldValue.is_null()) { int32_t refVal_setPrimary; @@ -319,9 +328,9 @@ namespace tribufu setPrimary(refVal_setPrimary); } } - if (val.has_field(utility::conversions::to_string_t(U("user_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("user_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("user_count"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user_count"))); if (!fieldValue.is_null()) { int32_t refVal_setUserCount; @@ -329,9 +338,10 @@ namespace tribufu setUserCount(refVal_setUserCount); } } - if (val.has_field(utility::conversions::to_string_t(U("achievement_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("achievement_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("achievement_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("achievement_count"))); if (!fieldValue.is_null()) { int32_t refVal_setAchievementCount; @@ -339,9 +349,10 @@ namespace tribufu setAchievementCount(refVal_setAchievementCount); } } - if (val.has_field(utility::conversions::to_string_t(U("badge_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("badge_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("badge_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("badge_count"))); if (!fieldValue.is_null()) { int32_t refVal_setBadgeCount; @@ -349,9 +360,10 @@ namespace tribufu setBadgeCount(refVal_setBadgeCount); } } - if (val.has_field(utility::conversions::to_string_t(U("download_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("download_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("download_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("download_count"))); if (!fieldValue.is_null()) { int32_t refVal_setDownloadCount; @@ -359,9 +371,9 @@ namespace tribufu setDownloadCount(refVal_setDownloadCount); } } - if (val.has_field(utility::conversions::to_string_t(U("created")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("created")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("created"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("created"))); if (!fieldValue.is_null()) { utility::datetime refVal_setCreated; @@ -369,9 +381,9 @@ namespace tribufu setCreated(refVal_setCreated); } } - if (val.has_field(utility::conversions::to_string_t(U("updated")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("updated")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("updated"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("updated"))); if (!fieldValue.is_null()) { utility::datetime refVal_setUpdated; @@ -387,108 +399,112 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_DescriptionIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("description")), m_Description)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("description")), m_Description)); } if (m_TypeIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("type")), m_Type)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type)); } if (m_Organization_idIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("organization_id")), m_Organization_id)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("organization_id")), m_Organization_id)); } if (m_Icon_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("icon_url")), - m_Icon_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("icon_url")), m_Icon_url)); } if (m_Banner_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("banner_url")), - m_Banner_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("banner_url")), m_Banner_url)); } if (m_Capsule_image_urlIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("capsule_image_url")), m_Capsule_image_url)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("capsule_image_url")), + m_Capsule_image_url)); } if (m_Library_image_urlIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("library_image_url")), m_Library_image_url)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("library_image_url")), + m_Library_image_url)); } if (m_Parent_idIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("parent_id")), - m_Parent_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("parent_id")), m_Parent_id)); } if (m_SlugIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("slug")), m_Slug)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("slug")), m_Slug)); } if (m_VisibilityIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("visibility")), - m_Visibility)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("visibility")), m_Visibility)); } if (m_PasswordIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("password")), - m_Password)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("password")), m_Password)); } if (m_PrimaryIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("primary")), m_Primary)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("primary")), m_Primary)); } if (m_User_countIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("user_count")), - m_User_count)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("user_count")), m_User_count)); } if (m_Achievement_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("achievement_count")), m_Achievement_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("achievement_count")), + m_Achievement_count)); } if (m_Badge_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("badge_count")), m_Badge_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("badge_count")), m_Badge_count)); } if (m_Download_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("download_count")), m_Download_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("download_count")), m_Download_count)); } if (m_CreatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created)); } if (m_UpdatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated)); } } @@ -497,154 +513,161 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("description")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("description")))) { utility::string_t refVal_setDescription; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("description"))), refVal_setDescription); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("description"))), + refVal_setDescription); setDescription(refVal_setDescription); } - if (multipart->hasContent(utility::conversions::to_string_t(U("type")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("type")))) { std::shared_ptr refVal_setType; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("type"))), - refVal_setType); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("type"))), refVal_setType); setType(refVal_setType); } - if (multipart->hasContent(utility::conversions::to_string_t(U("organization_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("organization_id")))) { utility::string_t refVal_setOrganizationId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("organization_id"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("organization_id"))), refVal_setOrganizationId); setOrganizationId(refVal_setOrganizationId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("icon_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("icon_url")))) { utility::string_t refVal_setIconUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("icon_url"))), refVal_setIconUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("icon_url"))), refVal_setIconUrl); setIconUrl(refVal_setIconUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("banner_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { utility::string_t refVal_setBannerUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("banner_url"))), refVal_setBannerUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banner_url"))), + refVal_setBannerUrl); setBannerUrl(refVal_setBannerUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("capsule_image_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("capsule_image_url")))) { utility::string_t refVal_setCapsuleImageUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("capsule_image_url"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("capsule_image_url"))), refVal_setCapsuleImageUrl); setCapsuleImageUrl(refVal_setCapsuleImageUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("library_image_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("library_image_url")))) { utility::string_t refVal_setLibraryImageUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("library_image_url"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("library_image_url"))), refVal_setLibraryImageUrl); setLibraryImageUrl(refVal_setLibraryImageUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("parent_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("parent_id")))) { utility::string_t refVal_setParentId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("parent_id"))), refVal_setParentId); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("parent_id"))), + refVal_setParentId); setParentId(refVal_setParentId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("slug")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("slug")))) { utility::string_t refVal_setSlug; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("slug"))), - refVal_setSlug); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("slug"))), refVal_setSlug); setSlug(refVal_setSlug); } - if (multipart->hasContent(utility::conversions::to_string_t(U("visibility")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("visibility")))) { int32_t refVal_setVisibility; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("visibility"))), refVal_setVisibility); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("visibility"))), + refVal_setVisibility); setVisibility(refVal_setVisibility); } - if (multipart->hasContent(utility::conversions::to_string_t(U("password")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("password")))) { utility::string_t refVal_setPassword; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("password"))), refVal_setPassword); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("password"))), + refVal_setPassword); setPassword(refVal_setPassword); } - if (multipart->hasContent(utility::conversions::to_string_t(U("primary")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("primary")))) { int32_t refVal_setPrimary; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("primary"))), - refVal_setPrimary); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("primary"))), refVal_setPrimary); setPrimary(refVal_setPrimary); } - if (multipart->hasContent(utility::conversions::to_string_t(U("user_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user_count")))) { int32_t refVal_setUserCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("user_count"))), refVal_setUserCount); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user_count"))), + refVal_setUserCount); setUserCount(refVal_setUserCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("achievement_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("achievement_count")))) { int32_t refVal_setAchievementCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("achievement_count"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("achievement_count"))), refVal_setAchievementCount); setAchievementCount(refVal_setAchievementCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("badge_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badge_count")))) { int32_t refVal_setBadgeCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("badge_count"))), refVal_setBadgeCount); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badge_count"))), + refVal_setBadgeCount); setBadgeCount(refVal_setBadgeCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("download_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("download_count")))) { int32_t refVal_setDownloadCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("download_count"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("download_count"))), refVal_setDownloadCount); setDownloadCount(refVal_setDownloadCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("created")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("created")))) { utility::datetime refVal_setCreated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))), - refVal_setCreated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated); setCreated(refVal_setCreated); } - if (multipart->hasContent(utility::conversions::to_string_t(U("updated")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("updated")))) { utility::datetime refVal_setUpdated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))), - refVal_setUpdated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated); setUpdated(refVal_setUpdated); } return ok; diff --git a/src/model/ApplicationType.cpp b/src/model/ApplicationType.cpp index 25662917..227113e4 100644 --- a/src/model/ApplicationType.cpp +++ b/src/model/ApplicationType.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,9 +23,9 @@ namespace tribufu ApplicationType::eApplicationType toEnum(const EnumUnderlyingType &val) { - if (val == utility::conversions::to_string_t(U("application"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("application"))) return ApplicationType::eApplicationType::ApplicationType_APPLICATION; - if (val == utility::conversions::to_string_t(U("game"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("game"))) return ApplicationType::eApplicationType::ApplicationType_GAME; return {}; } @@ -35,9 +35,9 @@ namespace tribufu switch (e) { case ApplicationType::eApplicationType::ApplicationType_APPLICATION: - return U("application"); + return _XPLATSTR("application"); case ApplicationType::eApplicationType::ApplicationType_GAME: - return U("game"); + return _XPLATSTR("game"); default: break; } @@ -74,9 +74,9 @@ namespace tribufu const utility::string_t &prefix) const { utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } auto e = fromEnum(m_value); @@ -88,9 +88,9 @@ namespace tribufu { bool ok = true; utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } { EnumUnderlyingType e; @@ -114,5 +114,10 @@ namespace tribufu m_value = value; } + ApplicationType::ApplicationType(utility::string_t str) + { + setValue(strToEnumMap[str]); + } + } } diff --git a/src/model/AuthorizeRequest.cpp b/src/model/AuthorizeRequest.cpp index e635b7a7..8fb5d895 100644 --- a/src/model/AuthorizeRequest.cpp +++ b/src/model/AuthorizeRequest.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -48,38 +48,39 @@ namespace tribufu if (m_Response_typeIsSet) { - val[utility::conversions::to_string_t(U("response_type"))] = ModelBase::toJson(m_Response_type); + val[utility::conversions::to_string_t(_XPLATSTR("response_type"))] = ModelBase::toJson(m_Response_type); } if (m_Client_idIsSet) { - val[utility::conversions::to_string_t(U("client_id"))] = ModelBase::toJson(m_Client_id); + val[utility::conversions::to_string_t(_XPLATSTR("client_id"))] = ModelBase::toJson(m_Client_id); } if (m_Code_challengeIsSet) { - val[utility::conversions::to_string_t(U("code_challenge"))] = ModelBase::toJson(m_Code_challenge); + val[utility::conversions::to_string_t(_XPLATSTR("code_challenge"))] = + ModelBase::toJson(m_Code_challenge); } if (m_Code_challenge_methodIsSet) { - val[utility::conversions::to_string_t(U("code_challenge_method"))] = + val[utility::conversions::to_string_t(_XPLATSTR("code_challenge_method"))] = ModelBase::toJson(m_Code_challenge_method); } if (m_Redirect_uriIsSet) { - val[utility::conversions::to_string_t(U("redirect_uri"))] = ModelBase::toJson(m_Redirect_uri); + val[utility::conversions::to_string_t(_XPLATSTR("redirect_uri"))] = ModelBase::toJson(m_Redirect_uri); } if (m_ScopeIsSet) { - val[utility::conversions::to_string_t(U("scope"))] = ModelBase::toJson(m_Scope); + val[utility::conversions::to_string_t(_XPLATSTR("scope"))] = ModelBase::toJson(m_Scope); } if (m_StateIsSet) { - val[utility::conversions::to_string_t(U("state"))] = ModelBase::toJson(m_State); + val[utility::conversions::to_string_t(_XPLATSTR("state"))] = ModelBase::toJson(m_State); } return val; @@ -88,9 +89,10 @@ namespace tribufu bool AuthorizeRequest::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("response_type")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("response_type")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("response_type"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("response_type"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setResponseType; @@ -98,9 +100,9 @@ namespace tribufu setResponseType(refVal_setResponseType); } } - if (val.has_field(utility::conversions::to_string_t(U("client_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("client_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("client_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("client_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setClientId; @@ -108,9 +110,10 @@ namespace tribufu setClientId(refVal_setClientId); } } - if (val.has_field(utility::conversions::to_string_t(U("code_challenge")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("code_challenge")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("code_challenge"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("code_challenge"))); if (!fieldValue.is_null()) { utility::string_t refVal_setCodeChallenge; @@ -118,10 +121,10 @@ namespace tribufu setCodeChallenge(refVal_setCodeChallenge); } } - if (val.has_field(utility::conversions::to_string_t(U("code_challenge_method")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("code_challenge_method")))) { const web::json::value &fieldValue = - val.at(utility::conversions::to_string_t(U("code_challenge_method"))); + val.at(utility::conversions::to_string_t(_XPLATSTR("code_challenge_method"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setCodeChallengeMethod; @@ -129,9 +132,10 @@ namespace tribufu setCodeChallengeMethod(refVal_setCodeChallengeMethod); } } - if (val.has_field(utility::conversions::to_string_t(U("redirect_uri")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("redirect_uri")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("redirect_uri"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("redirect_uri"))); if (!fieldValue.is_null()) { utility::string_t refVal_setRedirectUri; @@ -139,9 +143,9 @@ namespace tribufu setRedirectUri(refVal_setRedirectUri); } } - if (val.has_field(utility::conversions::to_string_t(U("scope")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("scope")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("scope"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("scope"))); if (!fieldValue.is_null()) { utility::string_t refVal_setScope; @@ -149,9 +153,9 @@ namespace tribufu setScope(refVal_setScope); } } - if (val.has_field(utility::conversions::to_string_t(U("state")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("state")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("state"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("state"))); if (!fieldValue.is_null()) { utility::string_t refVal_setState; @@ -167,45 +171,45 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_Response_typeIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("response_type")), m_Response_type)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("response_type")), m_Response_type)); } if (m_Client_idIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("client_id")), - m_Client_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("client_id")), m_Client_id)); } if (m_Code_challengeIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("code_challenge")), m_Code_challenge)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("code_challenge")), m_Code_challenge)); } if (m_Code_challenge_methodIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("code_challenge_method")), - m_Code_challenge_method)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("code_challenge_method")), + m_Code_challenge_method)); } if (m_Redirect_uriIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("redirect_uri")), m_Redirect_uri)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("redirect_uri")), m_Redirect_uri)); } if (m_ScopeIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("scope")), m_Scope)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("scope")), m_Scope)); } if (m_StateIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("state")), m_State)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("state")), m_State)); } } @@ -215,61 +219,63 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("response_type")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("response_type")))) { std::shared_ptr refVal_setResponseType; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("response_type"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("response_type"))), refVal_setResponseType); setResponseType(refVal_setResponseType); } - if (multipart->hasContent(utility::conversions::to_string_t(U("client_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("client_id")))) { utility::string_t refVal_setClientId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("client_id"))), refVal_setClientId); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("client_id"))), + refVal_setClientId); setClientId(refVal_setClientId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("code_challenge")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code_challenge")))) { utility::string_t refVal_setCodeChallenge; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("code_challenge"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code_challenge"))), refVal_setCodeChallenge); setCodeChallenge(refVal_setCodeChallenge); } - if (multipart->hasContent(utility::conversions::to_string_t(U("code_challenge_method")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code_challenge_method")))) { std::shared_ptr refVal_setCodeChallengeMethod; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("code_challenge_method"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code_challenge_method"))), refVal_setCodeChallengeMethod); setCodeChallengeMethod(refVal_setCodeChallengeMethod); } - if (multipart->hasContent(utility::conversions::to_string_t(U("redirect_uri")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("redirect_uri")))) { utility::string_t refVal_setRedirectUri; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("redirect_uri"))), refVal_setRedirectUri); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("redirect_uri"))), + refVal_setRedirectUri); setRedirectUri(refVal_setRedirectUri); } - if (multipart->hasContent(utility::conversions::to_string_t(U("scope")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("scope")))) { utility::string_t refVal_setScope; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("scope"))), - refVal_setScope); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("scope"))), refVal_setScope); setScope(refVal_setScope); } - if (multipart->hasContent(utility::conversions::to_string_t(U("state")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("state")))) { utility::string_t refVal_setState; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("state"))), - refVal_setState); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("state"))), refVal_setState); setState(refVal_setState); } return ok; diff --git a/src/model/CodeChallengeMethod.cpp b/src/model/CodeChallengeMethod.cpp index fe6798c7..f18a4f41 100644 --- a/src/model/CodeChallengeMethod.cpp +++ b/src/model/CodeChallengeMethod.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,9 +23,9 @@ namespace tribufu CodeChallengeMethod::eCodeChallengeMethod toEnum(const EnumUnderlyingType &val) { - if (val == utility::conversions::to_string_t(U("plain"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("plain"))) return CodeChallengeMethod::eCodeChallengeMethod::CodeChallengeMethod_PLAIN; - if (val == utility::conversions::to_string_t(U("S256"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("S256"))) return CodeChallengeMethod::eCodeChallengeMethod::CodeChallengeMethod_S256; return {}; } @@ -35,9 +35,9 @@ namespace tribufu switch (e) { case CodeChallengeMethod::eCodeChallengeMethod::CodeChallengeMethod_PLAIN: - return U("plain"); + return _XPLATSTR("plain"); case CodeChallengeMethod::eCodeChallengeMethod::CodeChallengeMethod_S256: - return U("S256"); + return _XPLATSTR("S256"); default: break; } @@ -74,9 +74,9 @@ namespace tribufu const utility::string_t &prefix) const { utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } auto e = fromEnum(m_value); @@ -88,9 +88,9 @@ namespace tribufu { bool ok = true; utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } { EnumUnderlyingType e; @@ -114,5 +114,10 @@ namespace tribufu m_value = value; } + CodeChallengeMethod::CodeChallengeMethod(utility::string_t str) + { + setValue(strToEnumMap[str]); + } + } } diff --git a/src/model/CryptoViewModel.cpp b/src/model/CryptoViewModel.cpp index c1f6d1f0..04a769e2 100644 --- a/src/model/CryptoViewModel.cpp +++ b/src/model/CryptoViewModel.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,12 +40,12 @@ namespace tribufu if (m_EncodedIsSet) { - val[utility::conversions::to_string_t(U("encoded"))] = ModelBase::toJson(m_Encoded); + val[utility::conversions::to_string_t(_XPLATSTR("encoded"))] = ModelBase::toJson(m_Encoded); } if (m_DecodedIsSet) { - val[utility::conversions::to_string_t(U("decoded"))] = ModelBase::toJson(m_Decoded); + val[utility::conversions::to_string_t(_XPLATSTR("decoded"))] = ModelBase::toJson(m_Decoded); } return val; @@ -54,9 +54,9 @@ namespace tribufu bool CryptoViewModel::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("encoded")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("encoded")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("encoded"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("encoded"))); if (!fieldValue.is_null()) { utility::string_t refVal_setEncoded; @@ -64,9 +64,9 @@ namespace tribufu setEncoded(refVal_setEncoded); } } - if (val.has_field(utility::conversions::to_string_t(U("decoded")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("decoded")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("decoded"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("decoded"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDecoded; @@ -82,19 +82,19 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_EncodedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("encoded")), m_Encoded)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("encoded")), m_Encoded)); } if (m_DecodedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("decoded")), m_Decoded)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("decoded")), m_Decoded)); } } @@ -104,23 +104,23 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("encoded")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("encoded")))) { utility::string_t refVal_setEncoded; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("encoded"))), - refVal_setEncoded); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("encoded"))), refVal_setEncoded); setEncoded(refVal_setEncoded); } - if (multipart->hasContent(utility::conversions::to_string_t(U("decoded")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("decoded")))) { utility::string_t refVal_setDecoded; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("decoded"))), - refVal_setDecoded); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("decoded"))), refVal_setDecoded); setDecoded(refVal_setDecoded); } return ok; diff --git a/src/model/Game.cpp b/src/model/Game.cpp index bb081c83..c14bdc4b 100644 --- a/src/model/Game.cpp +++ b/src/model/Game.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -97,159 +97,167 @@ namespace tribufu if (m_Game_portIsSet) { - val[utility::conversions::to_string_t(U("game_port"))] = ModelBase::toJson(m_Game_port); + val[utility::conversions::to_string_t(_XPLATSTR("game_port"))] = ModelBase::toJson(m_Game_port); } if (m_Query_portIsSet) { - val[utility::conversions::to_string_t(U("query_port"))] = ModelBase::toJson(m_Query_port); + val[utility::conversions::to_string_t(_XPLATSTR("query_port"))] = ModelBase::toJson(m_Query_port); } if (m_Rcon_portIsSet) { - val[utility::conversions::to_string_t(U("rcon_port"))] = ModelBase::toJson(m_Rcon_port); + val[utility::conversions::to_string_t(_XPLATSTR("rcon_port"))] = ModelBase::toJson(m_Rcon_port); } if (m_Server_countIsSet) { - val[utility::conversions::to_string_t(U("server_count"))] = ModelBase::toJson(m_Server_count); + val[utility::conversions::to_string_t(_XPLATSTR("server_count"))] = ModelBase::toJson(m_Server_count); } if (m_Steam_app_idIsSet) { - val[utility::conversions::to_string_t(U("steam_app_id"))] = ModelBase::toJson(m_Steam_app_id); + val[utility::conversions::to_string_t(_XPLATSTR("steam_app_id"))] = ModelBase::toJson(m_Steam_app_id); } if (m_Steam_server_app_idIsSet) { - val[utility::conversions::to_string_t(U("steam_server_app_id"))] = + val[utility::conversions::to_string_t(_XPLATSTR("steam_server_app_id"))] = ModelBase::toJson(m_Steam_server_app_id); } if (m_Enable_serversIsSet) { - val[utility::conversions::to_string_t(U("enable_servers"))] = ModelBase::toJson(m_Enable_servers); + val[utility::conversions::to_string_t(_XPLATSTR("enable_servers"))] = + ModelBase::toJson(m_Enable_servers); } if (m_Rust_gamedig_idIsSet) { - val[utility::conversions::to_string_t(U("rust_gamedig_id"))] = ModelBase::toJson(m_Rust_gamedig_id); + val[utility::conversions::to_string_t(_XPLATSTR("rust_gamedig_id"))] = + ModelBase::toJson(m_Rust_gamedig_id); } if (m_Node_gamedig_idIsSet) { - val[utility::conversions::to_string_t(U("node_gamedig_id"))] = ModelBase::toJson(m_Node_gamedig_id); + val[utility::conversions::to_string_t(_XPLATSTR("node_gamedig_id"))] = + ModelBase::toJson(m_Node_gamedig_id); } if (m_Server_connect_urlIsSet) { - val[utility::conversions::to_string_t(U("server_connect_url"))] = + val[utility::conversions::to_string_t(_XPLATSTR("server_connect_url"))] = ModelBase::toJson(m_Server_connect_url); } if (m_Server_tagsIsSet) { - val[utility::conversions::to_string_t(U("server_tags"))] = ModelBase::toJson(m_Server_tags); + val[utility::conversions::to_string_t(_XPLATSTR("server_tags"))] = ModelBase::toJson(m_Server_tags); } if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_DescriptionIsSet) { - val[utility::conversions::to_string_t(U("description"))] = ModelBase::toJson(m_Description); + val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if (m_TypeIsSet) { - val[utility::conversions::to_string_t(U("type"))] = ModelBase::toJson(m_Type); + val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if (m_Organization_idIsSet) { - val[utility::conversions::to_string_t(U("organization_id"))] = ModelBase::toJson(m_Organization_id); + val[utility::conversions::to_string_t(_XPLATSTR("organization_id"))] = + ModelBase::toJson(m_Organization_id); } if (m_Icon_urlIsSet) { - val[utility::conversions::to_string_t(U("icon_url"))] = ModelBase::toJson(m_Icon_url); + val[utility::conversions::to_string_t(_XPLATSTR("icon_url"))] = ModelBase::toJson(m_Icon_url); } if (m_Banner_urlIsSet) { - val[utility::conversions::to_string_t(U("banner_url"))] = ModelBase::toJson(m_Banner_url); + val[utility::conversions::to_string_t(_XPLATSTR("banner_url"))] = ModelBase::toJson(m_Banner_url); } if (m_Capsule_image_urlIsSet) { - val[utility::conversions::to_string_t(U("capsule_image_url"))] = ModelBase::toJson(m_Capsule_image_url); + val[utility::conversions::to_string_t(_XPLATSTR("capsule_image_url"))] = + ModelBase::toJson(m_Capsule_image_url); } if (m_Library_image_urlIsSet) { - val[utility::conversions::to_string_t(U("library_image_url"))] = ModelBase::toJson(m_Library_image_url); + val[utility::conversions::to_string_t(_XPLATSTR("library_image_url"))] = + ModelBase::toJson(m_Library_image_url); } if (m_Parent_idIsSet) { - val[utility::conversions::to_string_t(U("parent_id"))] = ModelBase::toJson(m_Parent_id); + val[utility::conversions::to_string_t(_XPLATSTR("parent_id"))] = ModelBase::toJson(m_Parent_id); } if (m_SlugIsSet) { - val[utility::conversions::to_string_t(U("slug"))] = ModelBase::toJson(m_Slug); + val[utility::conversions::to_string_t(_XPLATSTR("slug"))] = ModelBase::toJson(m_Slug); } if (m_VisibilityIsSet) { - val[utility::conversions::to_string_t(U("visibility"))] = ModelBase::toJson(m_Visibility); + val[utility::conversions::to_string_t(_XPLATSTR("visibility"))] = ModelBase::toJson(m_Visibility); } if (m_PasswordIsSet) { - val[utility::conversions::to_string_t(U("password"))] = ModelBase::toJson(m_Password); + val[utility::conversions::to_string_t(_XPLATSTR("password"))] = ModelBase::toJson(m_Password); } if (m_PrimaryIsSet) { - val[utility::conversions::to_string_t(U("primary"))] = ModelBase::toJson(m_Primary); + val[utility::conversions::to_string_t(_XPLATSTR("primary"))] = ModelBase::toJson(m_Primary); } if (m_User_countIsSet) { - val[utility::conversions::to_string_t(U("user_count"))] = ModelBase::toJson(m_User_count); + val[utility::conversions::to_string_t(_XPLATSTR("user_count"))] = ModelBase::toJson(m_User_count); } if (m_Achievement_countIsSet) { - val[utility::conversions::to_string_t(U("achievement_count"))] = ModelBase::toJson(m_Achievement_count); + val[utility::conversions::to_string_t(_XPLATSTR("achievement_count"))] = + ModelBase::toJson(m_Achievement_count); } if (m_Badge_countIsSet) { - val[utility::conversions::to_string_t(U("badge_count"))] = ModelBase::toJson(m_Badge_count); + val[utility::conversions::to_string_t(_XPLATSTR("badge_count"))] = ModelBase::toJson(m_Badge_count); } if (m_Download_countIsSet) { - val[utility::conversions::to_string_t(U("download_count"))] = ModelBase::toJson(m_Download_count); + val[utility::conversions::to_string_t(_XPLATSTR("download_count"))] = + ModelBase::toJson(m_Download_count); } if (m_CreatedIsSet) { - val[utility::conversions::to_string_t(U("created"))] = ModelBase::toJson(m_Created); + val[utility::conversions::to_string_t(_XPLATSTR("created"))] = ModelBase::toJson(m_Created); } if (m_UpdatedIsSet) { - val[utility::conversions::to_string_t(U("updated"))] = ModelBase::toJson(m_Updated); + val[utility::conversions::to_string_t(_XPLATSTR("updated"))] = ModelBase::toJson(m_Updated); } return val; @@ -258,9 +266,9 @@ namespace tribufu bool Game::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("game_port")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("game_port")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("game_port"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("game_port"))); if (!fieldValue.is_null()) { int32_t refVal_setGamePort; @@ -268,9 +276,9 @@ namespace tribufu setGamePort(refVal_setGamePort); } } - if (val.has_field(utility::conversions::to_string_t(U("query_port")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("query_port")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("query_port"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("query_port"))); if (!fieldValue.is_null()) { int32_t refVal_setQueryPort; @@ -278,9 +286,9 @@ namespace tribufu setQueryPort(refVal_setQueryPort); } } - if (val.has_field(utility::conversions::to_string_t(U("rcon_port")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("rcon_port")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("rcon_port"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("rcon_port"))); if (!fieldValue.is_null()) { int32_t refVal_setRconPort; @@ -288,9 +296,10 @@ namespace tribufu setRconPort(refVal_setRconPort); } } - if (val.has_field(utility::conversions::to_string_t(U("server_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("server_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("server_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("server_count"))); if (!fieldValue.is_null()) { int32_t refVal_setServerCount; @@ -298,9 +307,10 @@ namespace tribufu setServerCount(refVal_setServerCount); } } - if (val.has_field(utility::conversions::to_string_t(U("steam_app_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("steam_app_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("steam_app_id"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("steam_app_id"))); if (!fieldValue.is_null()) { int32_t refVal_setSteamAppId; @@ -308,10 +318,10 @@ namespace tribufu setSteamAppId(refVal_setSteamAppId); } } - if (val.has_field(utility::conversions::to_string_t(U("steam_server_app_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("steam_server_app_id")))) { const web::json::value &fieldValue = - val.at(utility::conversions::to_string_t(U("steam_server_app_id"))); + val.at(utility::conversions::to_string_t(_XPLATSTR("steam_server_app_id"))); if (!fieldValue.is_null()) { int32_t refVal_setSteamServerAppId; @@ -319,9 +329,10 @@ namespace tribufu setSteamServerAppId(refVal_setSteamServerAppId); } } - if (val.has_field(utility::conversions::to_string_t(U("enable_servers")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("enable_servers")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("enable_servers"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("enable_servers"))); if (!fieldValue.is_null()) { bool refVal_setEnableServers; @@ -329,9 +340,10 @@ namespace tribufu setEnableServers(refVal_setEnableServers); } } - if (val.has_field(utility::conversions::to_string_t(U("rust_gamedig_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("rust_gamedig_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("rust_gamedig_id"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("rust_gamedig_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setRustGamedigId; @@ -339,9 +351,10 @@ namespace tribufu setRustGamedigId(refVal_setRustGamedigId); } } - if (val.has_field(utility::conversions::to_string_t(U("node_gamedig_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("node_gamedig_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("node_gamedig_id"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("node_gamedig_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setNodeGamedigId; @@ -349,9 +362,10 @@ namespace tribufu setNodeGamedigId(refVal_setNodeGamedigId); } } - if (val.has_field(utility::conversions::to_string_t(U("server_connect_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("server_connect_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("server_connect_url"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("server_connect_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setServerConnectUrl; @@ -359,9 +373,10 @@ namespace tribufu setServerConnectUrl(refVal_setServerConnectUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("server_tags")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("server_tags")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("server_tags"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("server_tags"))); if (!fieldValue.is_null()) { utility::string_t refVal_setServerTags; @@ -369,9 +384,9 @@ namespace tribufu setServerTags(refVal_setServerTags); } } - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -379,9 +394,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -389,9 +404,10 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("description")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("description")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("description"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("description"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDescription; @@ -399,9 +415,9 @@ namespace tribufu setDescription(refVal_setDescription); } } - if (val.has_field(utility::conversions::to_string_t(U("type")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("type")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("type"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("type"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setType; @@ -409,9 +425,10 @@ namespace tribufu setType(refVal_setType); } } - if (val.has_field(utility::conversions::to_string_t(U("organization_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("organization_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("organization_id"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("organization_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setOrganizationId; @@ -419,9 +436,9 @@ namespace tribufu setOrganizationId(refVal_setOrganizationId); } } - if (val.has_field(utility::conversions::to_string_t(U("icon_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("icon_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("icon_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("icon_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setIconUrl; @@ -429,9 +446,9 @@ namespace tribufu setIconUrl(refVal_setIconUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("banner_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("banner_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banner_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setBannerUrl; @@ -439,9 +456,10 @@ namespace tribufu setBannerUrl(refVal_setBannerUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("capsule_image_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("capsule_image_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("capsule_image_url"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("capsule_image_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setCapsuleImageUrl; @@ -449,9 +467,10 @@ namespace tribufu setCapsuleImageUrl(refVal_setCapsuleImageUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("library_image_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("library_image_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("library_image_url"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("library_image_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setLibraryImageUrl; @@ -459,9 +478,9 @@ namespace tribufu setLibraryImageUrl(refVal_setLibraryImageUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("parent_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("parent_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("parent_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("parent_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setParentId; @@ -469,9 +488,9 @@ namespace tribufu setParentId(refVal_setParentId); } } - if (val.has_field(utility::conversions::to_string_t(U("slug")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("slug")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("slug"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("slug"))); if (!fieldValue.is_null()) { utility::string_t refVal_setSlug; @@ -479,9 +498,9 @@ namespace tribufu setSlug(refVal_setSlug); } } - if (val.has_field(utility::conversions::to_string_t(U("visibility")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("visibility")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("visibility"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("visibility"))); if (!fieldValue.is_null()) { int32_t refVal_setVisibility; @@ -489,9 +508,9 @@ namespace tribufu setVisibility(refVal_setVisibility); } } - if (val.has_field(utility::conversions::to_string_t(U("password")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("password")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("password"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("password"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPassword; @@ -499,9 +518,9 @@ namespace tribufu setPassword(refVal_setPassword); } } - if (val.has_field(utility::conversions::to_string_t(U("primary")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("primary")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("primary"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("primary"))); if (!fieldValue.is_null()) { int32_t refVal_setPrimary; @@ -509,9 +528,9 @@ namespace tribufu setPrimary(refVal_setPrimary); } } - if (val.has_field(utility::conversions::to_string_t(U("user_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("user_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("user_count"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user_count"))); if (!fieldValue.is_null()) { int32_t refVal_setUserCount; @@ -519,9 +538,10 @@ namespace tribufu setUserCount(refVal_setUserCount); } } - if (val.has_field(utility::conversions::to_string_t(U("achievement_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("achievement_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("achievement_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("achievement_count"))); if (!fieldValue.is_null()) { int32_t refVal_setAchievementCount; @@ -529,9 +549,10 @@ namespace tribufu setAchievementCount(refVal_setAchievementCount); } } - if (val.has_field(utility::conversions::to_string_t(U("badge_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("badge_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("badge_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("badge_count"))); if (!fieldValue.is_null()) { int32_t refVal_setBadgeCount; @@ -539,9 +560,10 @@ namespace tribufu setBadgeCount(refVal_setBadgeCount); } } - if (val.has_field(utility::conversions::to_string_t(U("download_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("download_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("download_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("download_count"))); if (!fieldValue.is_null()) { int32_t refVal_setDownloadCount; @@ -549,9 +571,9 @@ namespace tribufu setDownloadCount(refVal_setDownloadCount); } } - if (val.has_field(utility::conversions::to_string_t(U("created")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("created")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("created"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("created"))); if (!fieldValue.is_null()) { utility::datetime refVal_setCreated; @@ -559,9 +581,9 @@ namespace tribufu setCreated(refVal_setCreated); } } - if (val.has_field(utility::conversions::to_string_t(U("updated")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("updated")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("updated"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("updated"))); if (!fieldValue.is_null()) { utility::datetime refVal_setUpdated; @@ -576,163 +598,169 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_Game_portIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("game_port")), - m_Game_port)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("game_port")), m_Game_port)); } if (m_Query_portIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("query_port")), - m_Query_port)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("query_port")), m_Query_port)); } if (m_Rcon_portIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("rcon_port")), - m_Rcon_port)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("rcon_port")), m_Rcon_port)); } if (m_Server_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("server_count")), m_Server_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("server_count")), m_Server_count)); } if (m_Steam_app_idIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("steam_app_id")), m_Steam_app_id)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("steam_app_id")), m_Steam_app_id)); } if (m_Steam_server_app_idIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("steam_server_app_id")), m_Steam_server_app_id)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("steam_server_app_id")), + m_Steam_server_app_id)); } if (m_Enable_serversIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("enable_servers")), m_Enable_servers)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("enable_servers")), m_Enable_servers)); } if (m_Rust_gamedig_idIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("rust_gamedig_id")), m_Rust_gamedig_id)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("rust_gamedig_id")), m_Rust_gamedig_id)); } if (m_Node_gamedig_idIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("node_gamedig_id")), m_Node_gamedig_id)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("node_gamedig_id")), m_Node_gamedig_id)); } if (m_Server_connect_urlIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("server_connect_url")), m_Server_connect_url)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("server_connect_url")), + m_Server_connect_url)); } if (m_Server_tagsIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("server_tags")), m_Server_tags)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("server_tags")), m_Server_tags)); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_DescriptionIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("description")), m_Description)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("description")), m_Description)); } if (m_TypeIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("type")), m_Type)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type)); } if (m_Organization_idIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("organization_id")), m_Organization_id)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("organization_id")), m_Organization_id)); } if (m_Icon_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("icon_url")), - m_Icon_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("icon_url")), m_Icon_url)); } if (m_Banner_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("banner_url")), - m_Banner_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("banner_url")), m_Banner_url)); } if (m_Capsule_image_urlIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("capsule_image_url")), m_Capsule_image_url)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("capsule_image_url")), + m_Capsule_image_url)); } if (m_Library_image_urlIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("library_image_url")), m_Library_image_url)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("library_image_url")), + m_Library_image_url)); } if (m_Parent_idIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("parent_id")), - m_Parent_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("parent_id")), m_Parent_id)); } if (m_SlugIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("slug")), m_Slug)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("slug")), m_Slug)); } if (m_VisibilityIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("visibility")), - m_Visibility)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("visibility")), m_Visibility)); } if (m_PasswordIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("password")), - m_Password)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("password")), m_Password)); } if (m_PrimaryIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("primary")), m_Primary)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("primary")), m_Primary)); } if (m_User_countIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("user_count")), - m_User_count)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("user_count")), m_User_count)); } if (m_Achievement_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("achievement_count")), m_Achievement_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("achievement_count")), + m_Achievement_count)); } if (m_Badge_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("badge_count")), m_Badge_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("badge_count")), m_Badge_count)); } if (m_Download_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("download_count")), m_Download_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("download_count")), m_Download_count)); } if (m_CreatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created)); } if (m_UpdatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated)); } } @@ -741,236 +769,249 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("game_port")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("game_port")))) { int32_t refVal_setGamePort; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("game_port"))), refVal_setGamePort); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("game_port"))), + refVal_setGamePort); setGamePort(refVal_setGamePort); } - if (multipart->hasContent(utility::conversions::to_string_t(U("query_port")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("query_port")))) { int32_t refVal_setQueryPort; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("query_port"))), refVal_setQueryPort); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("query_port"))), + refVal_setQueryPort); setQueryPort(refVal_setQueryPort); } - if (multipart->hasContent(utility::conversions::to_string_t(U("rcon_port")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("rcon_port")))) { int32_t refVal_setRconPort; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("rcon_port"))), refVal_setRconPort); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("rcon_port"))), + refVal_setRconPort); setRconPort(refVal_setRconPort); } - if (multipart->hasContent(utility::conversions::to_string_t(U("server_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("server_count")))) { int32_t refVal_setServerCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("server_count"))), refVal_setServerCount); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("server_count"))), + refVal_setServerCount); setServerCount(refVal_setServerCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("steam_app_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("steam_app_id")))) { int32_t refVal_setSteamAppId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("steam_app_id"))), refVal_setSteamAppId); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("steam_app_id"))), + refVal_setSteamAppId); setSteamAppId(refVal_setSteamAppId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("steam_server_app_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("steam_server_app_id")))) { int32_t refVal_setSteamServerAppId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("steam_server_app_id"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("steam_server_app_id"))), refVal_setSteamServerAppId); setSteamServerAppId(refVal_setSteamServerAppId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("enable_servers")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("enable_servers")))) { bool refVal_setEnableServers; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("enable_servers"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("enable_servers"))), refVal_setEnableServers); setEnableServers(refVal_setEnableServers); } - if (multipart->hasContent(utility::conversions::to_string_t(U("rust_gamedig_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("rust_gamedig_id")))) { utility::string_t refVal_setRustGamedigId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("rust_gamedig_id"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("rust_gamedig_id"))), refVal_setRustGamedigId); setRustGamedigId(refVal_setRustGamedigId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("node_gamedig_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("node_gamedig_id")))) { utility::string_t refVal_setNodeGamedigId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("node_gamedig_id"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("node_gamedig_id"))), refVal_setNodeGamedigId); setNodeGamedigId(refVal_setNodeGamedigId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("server_connect_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("server_connect_url")))) { utility::string_t refVal_setServerConnectUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("server_connect_url"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("server_connect_url"))), refVal_setServerConnectUrl); setServerConnectUrl(refVal_setServerConnectUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("server_tags")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("server_tags")))) { utility::string_t refVal_setServerTags; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("server_tags"))), refVal_setServerTags); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("server_tags"))), + refVal_setServerTags); setServerTags(refVal_setServerTags); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("description")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("description")))) { utility::string_t refVal_setDescription; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("description"))), refVal_setDescription); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("description"))), + refVal_setDescription); setDescription(refVal_setDescription); } - if (multipart->hasContent(utility::conversions::to_string_t(U("type")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("type")))) { std::shared_ptr refVal_setType; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("type"))), - refVal_setType); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("type"))), refVal_setType); setType(refVal_setType); } - if (multipart->hasContent(utility::conversions::to_string_t(U("organization_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("organization_id")))) { utility::string_t refVal_setOrganizationId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("organization_id"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("organization_id"))), refVal_setOrganizationId); setOrganizationId(refVal_setOrganizationId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("icon_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("icon_url")))) { utility::string_t refVal_setIconUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("icon_url"))), refVal_setIconUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("icon_url"))), refVal_setIconUrl); setIconUrl(refVal_setIconUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("banner_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { utility::string_t refVal_setBannerUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("banner_url"))), refVal_setBannerUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banner_url"))), + refVal_setBannerUrl); setBannerUrl(refVal_setBannerUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("capsule_image_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("capsule_image_url")))) { utility::string_t refVal_setCapsuleImageUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("capsule_image_url"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("capsule_image_url"))), refVal_setCapsuleImageUrl); setCapsuleImageUrl(refVal_setCapsuleImageUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("library_image_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("library_image_url")))) { utility::string_t refVal_setLibraryImageUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("library_image_url"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("library_image_url"))), refVal_setLibraryImageUrl); setLibraryImageUrl(refVal_setLibraryImageUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("parent_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("parent_id")))) { utility::string_t refVal_setParentId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("parent_id"))), refVal_setParentId); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("parent_id"))), + refVal_setParentId); setParentId(refVal_setParentId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("slug")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("slug")))) { utility::string_t refVal_setSlug; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("slug"))), - refVal_setSlug); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("slug"))), refVal_setSlug); setSlug(refVal_setSlug); } - if (multipart->hasContent(utility::conversions::to_string_t(U("visibility")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("visibility")))) { int32_t refVal_setVisibility; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("visibility"))), refVal_setVisibility); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("visibility"))), + refVal_setVisibility); setVisibility(refVal_setVisibility); } - if (multipart->hasContent(utility::conversions::to_string_t(U("password")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("password")))) { utility::string_t refVal_setPassword; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("password"))), refVal_setPassword); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("password"))), + refVal_setPassword); setPassword(refVal_setPassword); } - if (multipart->hasContent(utility::conversions::to_string_t(U("primary")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("primary")))) { int32_t refVal_setPrimary; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("primary"))), - refVal_setPrimary); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("primary"))), refVal_setPrimary); setPrimary(refVal_setPrimary); } - if (multipart->hasContent(utility::conversions::to_string_t(U("user_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user_count")))) { int32_t refVal_setUserCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("user_count"))), refVal_setUserCount); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user_count"))), + refVal_setUserCount); setUserCount(refVal_setUserCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("achievement_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("achievement_count")))) { int32_t refVal_setAchievementCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("achievement_count"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("achievement_count"))), refVal_setAchievementCount); setAchievementCount(refVal_setAchievementCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("badge_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("badge_count")))) { int32_t refVal_setBadgeCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("badge_count"))), refVal_setBadgeCount); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("badge_count"))), + refVal_setBadgeCount); setBadgeCount(refVal_setBadgeCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("download_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("download_count")))) { int32_t refVal_setDownloadCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("download_count"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("download_count"))), refVal_setDownloadCount); setDownloadCount(refVal_setDownloadCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("created")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("created")))) { utility::datetime refVal_setCreated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))), - refVal_setCreated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated); setCreated(refVal_setCreated); } - if (multipart->hasContent(utility::conversions::to_string_t(U("updated")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("updated")))) { utility::datetime refVal_setUpdated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))), - refVal_setUpdated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated); setUpdated(refVal_setUpdated); } return ok; diff --git a/src/model/GameServer.cpp b/src/model/GameServer.cpp index 281bc181..0491e8ff 100644 --- a/src/model/GameServer.cpp +++ b/src/model/GameServer.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -97,157 +97,159 @@ namespace tribufu if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_DescriptionIsSet) { - val[utility::conversions::to_string_t(U("description"))] = ModelBase::toJson(m_Description); + val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if (m_AddressIsSet) { - val[utility::conversions::to_string_t(U("address"))] = ModelBase::toJson(m_Address); + val[utility::conversions::to_string_t(_XPLATSTR("address"))] = ModelBase::toJson(m_Address); } if (m_Game_portIsSet) { - val[utility::conversions::to_string_t(U("game_port"))] = ModelBase::toJson(m_Game_port); + val[utility::conversions::to_string_t(_XPLATSTR("game_port"))] = ModelBase::toJson(m_Game_port); } if (m_Query_portIsSet) { - val[utility::conversions::to_string_t(U("query_port"))] = ModelBase::toJson(m_Query_port); + val[utility::conversions::to_string_t(_XPLATSTR("query_port"))] = ModelBase::toJson(m_Query_port); } if (m_Game_idIsSet) { - val[utility::conversions::to_string_t(U("game_id"))] = ModelBase::toJson(m_Game_id); + val[utility::conversions::to_string_t(_XPLATSTR("game_id"))] = ModelBase::toJson(m_Game_id); } if (m_Game_icon_urlIsSet) { - val[utility::conversions::to_string_t(U("game_icon_url"))] = ModelBase::toJson(m_Game_icon_url); + val[utility::conversions::to_string_t(_XPLATSTR("game_icon_url"))] = ModelBase::toJson(m_Game_icon_url); } if (m_VersionIsSet) { - val[utility::conversions::to_string_t(U("version"))] = ModelBase::toJson(m_Version); + val[utility::conversions::to_string_t(_XPLATSTR("version"))] = ModelBase::toJson(m_Version); } if (m_FeaturedIsSet) { - val[utility::conversions::to_string_t(U("featured"))] = ModelBase::toJson(m_Featured); + val[utility::conversions::to_string_t(_XPLATSTR("featured"))] = ModelBase::toJson(m_Featured); } if (m_Cluster_idIsSet) { - val[utility::conversions::to_string_t(U("cluster_id"))] = ModelBase::toJson(m_Cluster_id); + val[utility::conversions::to_string_t(_XPLATSTR("cluster_id"))] = ModelBase::toJson(m_Cluster_id); } if (m_Website_urlIsSet) { - val[utility::conversions::to_string_t(U("website_url"))] = ModelBase::toJson(m_Website_url); + val[utility::conversions::to_string_t(_XPLATSTR("website_url"))] = ModelBase::toJson(m_Website_url); } if (m_Banner_urlIsSet) { - val[utility::conversions::to_string_t(U("banner_url"))] = ModelBase::toJson(m_Banner_url); + val[utility::conversions::to_string_t(_XPLATSTR("banner_url"))] = ModelBase::toJson(m_Banner_url); } if (m_Owner_idIsSet) { - val[utility::conversions::to_string_t(U("owner_id"))] = ModelBase::toJson(m_Owner_id); + val[utility::conversions::to_string_t(_XPLATSTR("owner_id"))] = ModelBase::toJson(m_Owner_id); } if (m_UptimeIsSet) { - val[utility::conversions::to_string_t(U("uptime"))] = ModelBase::toJson(m_Uptime); + val[utility::conversions::to_string_t(_XPLATSTR("uptime"))] = ModelBase::toJson(m_Uptime); } if (m_StatusIsSet) { - val[utility::conversions::to_string_t(U("status"))] = ModelBase::toJson(m_Status); + val[utility::conversions::to_string_t(_XPLATSTR("status"))] = ModelBase::toJson(m_Status); } if (m_PingIsSet) { - val[utility::conversions::to_string_t(U("ping"))] = ModelBase::toJson(m_Ping); + val[utility::conversions::to_string_t(_XPLATSTR("ping"))] = ModelBase::toJson(m_Ping); } if (m_mapIsSet) { - val[utility::conversions::to_string_t(U("map"))] = ModelBase::toJson(m_map); + val[utility::conversions::to_string_t(_XPLATSTR("map"))] = ModelBase::toJson(m_map); } if (m_Used_slotsIsSet) { - val[utility::conversions::to_string_t(U("used_slots"))] = ModelBase::toJson(m_Used_slots); + val[utility::conversions::to_string_t(_XPLATSTR("used_slots"))] = ModelBase::toJson(m_Used_slots); } if (m_Max_slotsIsSet) { - val[utility::conversions::to_string_t(U("max_slots"))] = ModelBase::toJson(m_Max_slots); + val[utility::conversions::to_string_t(_XPLATSTR("max_slots"))] = ModelBase::toJson(m_Max_slots); } if (m_MotdIsSet) { - val[utility::conversions::to_string_t(U("motd"))] = ModelBase::toJson(m_Motd); + val[utility::conversions::to_string_t(_XPLATSTR("motd"))] = ModelBase::toJson(m_Motd); } if (m_PlayersIsSet) { - val[utility::conversions::to_string_t(U("players"))] = ModelBase::toJson(m_Players); + val[utility::conversions::to_string_t(_XPLATSTR("players"))] = ModelBase::toJson(m_Players); } if (m_Last_onlineIsSet) { - val[utility::conversions::to_string_t(U("last_online"))] = ModelBase::toJson(m_Last_online); + val[utility::conversions::to_string_t(_XPLATSTR("last_online"))] = ModelBase::toJson(m_Last_online); } if (m_CountryIsSet) { - val[utility::conversions::to_string_t(U("country"))] = ModelBase::toJson(m_Country); + val[utility::conversions::to_string_t(_XPLATSTR("country"))] = ModelBase::toJson(m_Country); } if (m_SteamIsSet) { - val[utility::conversions::to_string_t(U("steam"))] = ModelBase::toJson(m_Steam); + val[utility::conversions::to_string_t(_XPLATSTR("steam"))] = ModelBase::toJson(m_Steam); } if (m_Discord_server_idIsSet) { - val[utility::conversions::to_string_t(U("discord_server_id"))] = ModelBase::toJson(m_Discord_server_id); + val[utility::conversions::to_string_t(_XPLATSTR("discord_server_id"))] = + ModelBase::toJson(m_Discord_server_id); } if (m_Youtube_video_urlIsSet) { - val[utility::conversions::to_string_t(U("youtube_video_url"))] = ModelBase::toJson(m_Youtube_video_url); + val[utility::conversions::to_string_t(_XPLATSTR("youtube_video_url"))] = + ModelBase::toJson(m_Youtube_video_url); } if (m_TagsIsSet) { - val[utility::conversions::to_string_t(U("tags"))] = ModelBase::toJson(m_Tags); + val[utility::conversions::to_string_t(_XPLATSTR("tags"))] = ModelBase::toJson(m_Tags); } if (m_Comment_countIsSet) { - val[utility::conversions::to_string_t(U("comment_count"))] = ModelBase::toJson(m_Comment_count); + val[utility::conversions::to_string_t(_XPLATSTR("comment_count"))] = ModelBase::toJson(m_Comment_count); } if (m_CreatedIsSet) { - val[utility::conversions::to_string_t(U("created"))] = ModelBase::toJson(m_Created); + val[utility::conversions::to_string_t(_XPLATSTR("created"))] = ModelBase::toJson(m_Created); } if (m_UpdatedIsSet) { - val[utility::conversions::to_string_t(U("updated"))] = ModelBase::toJson(m_Updated); + val[utility::conversions::to_string_t(_XPLATSTR("updated"))] = ModelBase::toJson(m_Updated); } return val; @@ -256,9 +258,9 @@ namespace tribufu bool GameServer::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -266,9 +268,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -276,9 +278,10 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("description")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("description")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("description"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("description"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDescription; @@ -286,9 +289,9 @@ namespace tribufu setDescription(refVal_setDescription); } } - if (val.has_field(utility::conversions::to_string_t(U("address")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("address")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("address"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("address"))); if (!fieldValue.is_null()) { utility::string_t refVal_setAddress; @@ -296,9 +299,9 @@ namespace tribufu setAddress(refVal_setAddress); } } - if (val.has_field(utility::conversions::to_string_t(U("game_port")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("game_port")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("game_port"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("game_port"))); if (!fieldValue.is_null()) { int32_t refVal_setGamePort; @@ -306,9 +309,9 @@ namespace tribufu setGamePort(refVal_setGamePort); } } - if (val.has_field(utility::conversions::to_string_t(U("query_port")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("query_port")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("query_port"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("query_port"))); if (!fieldValue.is_null()) { int32_t refVal_setQueryPort; @@ -316,9 +319,9 @@ namespace tribufu setQueryPort(refVal_setQueryPort); } } - if (val.has_field(utility::conversions::to_string_t(U("game_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("game_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("game_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("game_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setGameId; @@ -326,9 +329,10 @@ namespace tribufu setGameId(refVal_setGameId); } } - if (val.has_field(utility::conversions::to_string_t(U("game_icon_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("game_icon_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("game_icon_url"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("game_icon_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setGameIconUrl; @@ -336,9 +340,9 @@ namespace tribufu setGameIconUrl(refVal_setGameIconUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("version")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("version")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("version"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("version"))); if (!fieldValue.is_null()) { utility::string_t refVal_setVersion; @@ -346,9 +350,9 @@ namespace tribufu setVersion(refVal_setVersion); } } - if (val.has_field(utility::conversions::to_string_t(U("featured")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("featured")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("featured"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("featured"))); if (!fieldValue.is_null()) { bool refVal_setFeatured; @@ -356,9 +360,9 @@ namespace tribufu setFeatured(refVal_setFeatured); } } - if (val.has_field(utility::conversions::to_string_t(U("cluster_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("cluster_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("cluster_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("cluster_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setClusterId; @@ -366,9 +370,10 @@ namespace tribufu setClusterId(refVal_setClusterId); } } - if (val.has_field(utility::conversions::to_string_t(U("website_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("website_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("website_url"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("website_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setWebsiteUrl; @@ -376,9 +381,9 @@ namespace tribufu setWebsiteUrl(refVal_setWebsiteUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("banner_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("banner_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banner_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setBannerUrl; @@ -386,9 +391,9 @@ namespace tribufu setBannerUrl(refVal_setBannerUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("owner_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("owner_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("owner_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("owner_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setOwnerId; @@ -396,9 +401,9 @@ namespace tribufu setOwnerId(refVal_setOwnerId); } } - if (val.has_field(utility::conversions::to_string_t(U("uptime")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("uptime")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("uptime"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("uptime"))); if (!fieldValue.is_null()) { double refVal_setUptime; @@ -406,9 +411,9 @@ namespace tribufu setUptime(refVal_setUptime); } } - if (val.has_field(utility::conversions::to_string_t(U("status")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("status")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("status"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("status"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setStatus; @@ -416,9 +421,9 @@ namespace tribufu setStatus(refVal_setStatus); } } - if (val.has_field(utility::conversions::to_string_t(U("ping")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("ping")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("ping"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("ping"))); if (!fieldValue.is_null()) { int32_t refVal_setPing; @@ -426,9 +431,9 @@ namespace tribufu setPing(refVal_setPing); } } - if (val.has_field(utility::conversions::to_string_t(U("map")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("map")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("map"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("map"))); if (!fieldValue.is_null()) { utility::string_t refVal_setMap; @@ -436,9 +441,9 @@ namespace tribufu setMap(refVal_setMap); } } - if (val.has_field(utility::conversions::to_string_t(U("used_slots")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("used_slots")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("used_slots"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("used_slots"))); if (!fieldValue.is_null()) { int32_t refVal_setUsedSlots; @@ -446,9 +451,9 @@ namespace tribufu setUsedSlots(refVal_setUsedSlots); } } - if (val.has_field(utility::conversions::to_string_t(U("max_slots")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("max_slots")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("max_slots"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("max_slots"))); if (!fieldValue.is_null()) { int32_t refVal_setMaxSlots; @@ -456,9 +461,9 @@ namespace tribufu setMaxSlots(refVal_setMaxSlots); } } - if (val.has_field(utility::conversions::to_string_t(U("motd")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("motd")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("motd"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("motd"))); if (!fieldValue.is_null()) { utility::string_t refVal_setMotd; @@ -466,9 +471,9 @@ namespace tribufu setMotd(refVal_setMotd); } } - if (val.has_field(utility::conversions::to_string_t(U("players")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("players")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("players"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("players"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPlayers; @@ -476,9 +481,10 @@ namespace tribufu setPlayers(refVal_setPlayers); } } - if (val.has_field(utility::conversions::to_string_t(U("last_online")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("last_online")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("last_online"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("last_online"))); if (!fieldValue.is_null()) { utility::datetime refVal_setLastOnline; @@ -486,9 +492,9 @@ namespace tribufu setLastOnline(refVal_setLastOnline); } } - if (val.has_field(utility::conversions::to_string_t(U("country")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("country")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("country"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("country"))); if (!fieldValue.is_null()) { utility::string_t refVal_setCountry; @@ -496,9 +502,9 @@ namespace tribufu setCountry(refVal_setCountry); } } - if (val.has_field(utility::conversions::to_string_t(U("steam")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("steam")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("steam"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("steam"))); if (!fieldValue.is_null()) { bool refVal_setSteam; @@ -506,9 +512,10 @@ namespace tribufu setSteam(refVal_setSteam); } } - if (val.has_field(utility::conversions::to_string_t(U("discord_server_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("discord_server_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("discord_server_id"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("discord_server_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDiscordServerId; @@ -516,9 +523,10 @@ namespace tribufu setDiscordServerId(refVal_setDiscordServerId); } } - if (val.has_field(utility::conversions::to_string_t(U("youtube_video_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("youtube_video_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("youtube_video_url"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("youtube_video_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setYoutubeVideoUrl; @@ -526,9 +534,9 @@ namespace tribufu setYoutubeVideoUrl(refVal_setYoutubeVideoUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("tags")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("tags")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("tags"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tags"))); if (!fieldValue.is_null()) { utility::string_t refVal_setTags; @@ -536,9 +544,10 @@ namespace tribufu setTags(refVal_setTags); } } - if (val.has_field(utility::conversions::to_string_t(U("comment_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("comment_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("comment_count"))); if (!fieldValue.is_null()) { int32_t refVal_setCommentCount; @@ -546,9 +555,9 @@ namespace tribufu setCommentCount(refVal_setCommentCount); } } - if (val.has_field(utility::conversions::to_string_t(U("created")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("created")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("created"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("created"))); if (!fieldValue.is_null()) { utility::datetime refVal_setCreated; @@ -556,9 +565,9 @@ namespace tribufu setCreated(refVal_setCreated); } } - if (val.has_field(utility::conversions::to_string_t(U("updated")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("updated")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("updated"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("updated"))); if (!fieldValue.is_null()) { utility::datetime refVal_setUpdated; @@ -574,163 +583,166 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_DescriptionIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("description")), m_Description)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("description")), m_Description)); } if (m_AddressIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("address")), m_Address)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("address")), m_Address)); } if (m_Game_portIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("game_port")), - m_Game_port)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("game_port")), m_Game_port)); } if (m_Query_portIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("query_port")), - m_Query_port)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("query_port")), m_Query_port)); } if (m_Game_idIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("game_id")), m_Game_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("game_id")), m_Game_id)); } if (m_Game_icon_urlIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("game_icon_url")), m_Game_icon_url)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("game_icon_url")), m_Game_icon_url)); } if (m_VersionIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("version")), m_Version)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("version")), m_Version)); } if (m_FeaturedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("featured")), - m_Featured)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("featured")), m_Featured)); } if (m_Cluster_idIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("cluster_id")), - m_Cluster_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("cluster_id")), m_Cluster_id)); } if (m_Website_urlIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("website_url")), m_Website_url)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("website_url")), m_Website_url)); } if (m_Banner_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("banner_url")), - m_Banner_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("banner_url")), m_Banner_url)); } if (m_Owner_idIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("owner_id")), - m_Owner_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("owner_id")), m_Owner_id)); } if (m_UptimeIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("uptime")), m_Uptime)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("uptime")), m_Uptime)); } if (m_StatusIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("status")), m_Status)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("status")), m_Status)); } if (m_PingIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("ping")), m_Ping)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("ping")), m_Ping)); } if (m_mapIsSet) { multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("map")), m_map)); + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("map")), m_map)); } if (m_Used_slotsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("used_slots")), - m_Used_slots)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("used_slots")), m_Used_slots)); } if (m_Max_slotsIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("max_slots")), - m_Max_slots)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("max_slots")), m_Max_slots)); } if (m_MotdIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("motd")), m_Motd)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("motd")), m_Motd)); } if (m_PlayersIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("players")), m_Players)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("players")), m_Players)); } if (m_Last_onlineIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("last_online")), m_Last_online)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("last_online")), m_Last_online)); } if (m_CountryIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("country")), m_Country)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("country")), m_Country)); } if (m_SteamIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("steam")), m_Steam)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("steam")), m_Steam)); } if (m_Discord_server_idIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("discord_server_id")), m_Discord_server_id)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("discord_server_id")), + m_Discord_server_id)); } if (m_Youtube_video_urlIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("youtube_video_url")), m_Youtube_video_url)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("youtube_video_url")), + m_Youtube_video_url)); } if (m_TagsIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("tags")), m_Tags)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("tags")), m_Tags)); } if (m_Comment_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("comment_count")), m_Comment_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment_count")), m_Comment_count)); } if (m_CreatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created)); } if (m_UpdatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated)); } } @@ -739,230 +751,240 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("description")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("description")))) { utility::string_t refVal_setDescription; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("description"))), refVal_setDescription); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("description"))), + refVal_setDescription); setDescription(refVal_setDescription); } - if (multipart->hasContent(utility::conversions::to_string_t(U("address")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("address")))) { utility::string_t refVal_setAddress; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("address"))), - refVal_setAddress); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("address"))), refVal_setAddress); setAddress(refVal_setAddress); } - if (multipart->hasContent(utility::conversions::to_string_t(U("game_port")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("game_port")))) { int32_t refVal_setGamePort; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("game_port"))), refVal_setGamePort); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("game_port"))), + refVal_setGamePort); setGamePort(refVal_setGamePort); } - if (multipart->hasContent(utility::conversions::to_string_t(U("query_port")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("query_port")))) { int32_t refVal_setQueryPort; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("query_port"))), refVal_setQueryPort); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("query_port"))), + refVal_setQueryPort); setQueryPort(refVal_setQueryPort); } - if (multipart->hasContent(utility::conversions::to_string_t(U("game_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("game_id")))) { utility::string_t refVal_setGameId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("game_id"))), - refVal_setGameId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("game_id"))), refVal_setGameId); setGameId(refVal_setGameId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("game_icon_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("game_icon_url")))) { utility::string_t refVal_setGameIconUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("game_icon_url"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("game_icon_url"))), refVal_setGameIconUrl); setGameIconUrl(refVal_setGameIconUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("version")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("version")))) { utility::string_t refVal_setVersion; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("version"))), - refVal_setVersion); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("version"))), refVal_setVersion); setVersion(refVal_setVersion); } - if (multipart->hasContent(utility::conversions::to_string_t(U("featured")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("featured")))) { bool refVal_setFeatured; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("featured"))), refVal_setFeatured); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("featured"))), + refVal_setFeatured); setFeatured(refVal_setFeatured); } - if (multipart->hasContent(utility::conversions::to_string_t(U("cluster_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("cluster_id")))) { utility::string_t refVal_setClusterId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("cluster_id"))), refVal_setClusterId); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("cluster_id"))), + refVal_setClusterId); setClusterId(refVal_setClusterId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("website_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("website_url")))) { utility::string_t refVal_setWebsiteUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("website_url"))), refVal_setWebsiteUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("website_url"))), + refVal_setWebsiteUrl); setWebsiteUrl(refVal_setWebsiteUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("banner_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { utility::string_t refVal_setBannerUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("banner_url"))), refVal_setBannerUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banner_url"))), + refVal_setBannerUrl); setBannerUrl(refVal_setBannerUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("owner_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("owner_id")))) { utility::string_t refVal_setOwnerId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("owner_id"))), refVal_setOwnerId); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("owner_id"))), refVal_setOwnerId); setOwnerId(refVal_setOwnerId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("uptime")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("uptime")))) { double refVal_setUptime; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("uptime"))), - refVal_setUptime); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uptime"))), refVal_setUptime); setUptime(refVal_setUptime); } - if (multipart->hasContent(utility::conversions::to_string_t(U("status")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("status")))) { std::shared_ptr refVal_setStatus; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("status"))), - refVal_setStatus); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("status"))), refVal_setStatus); setStatus(refVal_setStatus); } - if (multipart->hasContent(utility::conversions::to_string_t(U("ping")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("ping")))) { int32_t refVal_setPing; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("ping"))), - refVal_setPing); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("ping"))), refVal_setPing); setPing(refVal_setPing); } - if (multipart->hasContent(utility::conversions::to_string_t(U("map")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("map")))) { utility::string_t refVal_setMap; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("map"))), - refVal_setMap); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("map"))), refVal_setMap); setMap(refVal_setMap); } - if (multipart->hasContent(utility::conversions::to_string_t(U("used_slots")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("used_slots")))) { int32_t refVal_setUsedSlots; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("used_slots"))), refVal_setUsedSlots); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("used_slots"))), + refVal_setUsedSlots); setUsedSlots(refVal_setUsedSlots); } - if (multipart->hasContent(utility::conversions::to_string_t(U("max_slots")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("max_slots")))) { int32_t refVal_setMaxSlots; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("max_slots"))), refVal_setMaxSlots); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("max_slots"))), + refVal_setMaxSlots); setMaxSlots(refVal_setMaxSlots); } - if (multipart->hasContent(utility::conversions::to_string_t(U("motd")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("motd")))) { utility::string_t refVal_setMotd; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("motd"))), - refVal_setMotd); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("motd"))), refVal_setMotd); setMotd(refVal_setMotd); } - if (multipart->hasContent(utility::conversions::to_string_t(U("players")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("players")))) { utility::string_t refVal_setPlayers; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("players"))), - refVal_setPlayers); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("players"))), refVal_setPlayers); setPlayers(refVal_setPlayers); } - if (multipart->hasContent(utility::conversions::to_string_t(U("last_online")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("last_online")))) { utility::datetime refVal_setLastOnline; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("last_online"))), refVal_setLastOnline); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("last_online"))), + refVal_setLastOnline); setLastOnline(refVal_setLastOnline); } - if (multipart->hasContent(utility::conversions::to_string_t(U("country")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("country")))) { utility::string_t refVal_setCountry; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("country"))), - refVal_setCountry); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("country"))), refVal_setCountry); setCountry(refVal_setCountry); } - if (multipart->hasContent(utility::conversions::to_string_t(U("steam")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("steam")))) { bool refVal_setSteam; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("steam"))), - refVal_setSteam); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("steam"))), refVal_setSteam); setSteam(refVal_setSteam); } - if (multipart->hasContent(utility::conversions::to_string_t(U("discord_server_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("discord_server_id")))) { utility::string_t refVal_setDiscordServerId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("discord_server_id"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("discord_server_id"))), refVal_setDiscordServerId); setDiscordServerId(refVal_setDiscordServerId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("youtube_video_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("youtube_video_url")))) { utility::string_t refVal_setYoutubeVideoUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("youtube_video_url"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("youtube_video_url"))), refVal_setYoutubeVideoUrl); setYoutubeVideoUrl(refVal_setYoutubeVideoUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("tags")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tags")))) { utility::string_t refVal_setTags; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("tags"))), - refVal_setTags); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tags"))), refVal_setTags); setTags(refVal_setTags); } - if (multipart->hasContent(utility::conversions::to_string_t(U("comment_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment_count")))) { int32_t refVal_setCommentCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("comment_count"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment_count"))), refVal_setCommentCount); setCommentCount(refVal_setCommentCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("created")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("created")))) { utility::datetime refVal_setCreated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))), - refVal_setCreated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated); setCreated(refVal_setCreated); } - if (multipart->hasContent(utility::conversions::to_string_t(U("updated")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("updated")))) { utility::datetime refVal_setUpdated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))), - refVal_setUpdated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated); setUpdated(refVal_setUpdated); } return ok; diff --git a/src/model/GameServerCluster.cpp b/src/model/GameServerCluster.cpp index d684aef4..9d314600 100644 --- a/src/model/GameServerCluster.cpp +++ b/src/model/GameServerCluster.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -64,72 +64,74 @@ namespace tribufu if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_DescriptionIsSet) { - val[utility::conversions::to_string_t(U("description"))] = ModelBase::toJson(m_Description); + val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if (m_Game_idIsSet) { - val[utility::conversions::to_string_t(U("game_id"))] = ModelBase::toJson(m_Game_id); + val[utility::conversions::to_string_t(_XPLATSTR("game_id"))] = ModelBase::toJson(m_Game_id); } if (m_Website_urlIsSet) { - val[utility::conversions::to_string_t(U("website_url"))] = ModelBase::toJson(m_Website_url); + val[utility::conversions::to_string_t(_XPLATSTR("website_url"))] = ModelBase::toJson(m_Website_url); } if (m_Banner_urlIsSet) { - val[utility::conversions::to_string_t(U("banner_url"))] = ModelBase::toJson(m_Banner_url); + val[utility::conversions::to_string_t(_XPLATSTR("banner_url"))] = ModelBase::toJson(m_Banner_url); } if (m_Owner_idIsSet) { - val[utility::conversions::to_string_t(U("owner_id"))] = ModelBase::toJson(m_Owner_id); + val[utility::conversions::to_string_t(_XPLATSTR("owner_id"))] = ModelBase::toJson(m_Owner_id); } if (m_Discord_server_idIsSet) { - val[utility::conversions::to_string_t(U("discord_server_id"))] = ModelBase::toJson(m_Discord_server_id); + val[utility::conversions::to_string_t(_XPLATSTR("discord_server_id"))] = + ModelBase::toJson(m_Discord_server_id); } if (m_Youtube_video_urlIsSet) { - val[utility::conversions::to_string_t(U("youtube_video_url"))] = ModelBase::toJson(m_Youtube_video_url); + val[utility::conversions::to_string_t(_XPLATSTR("youtube_video_url"))] = + ModelBase::toJson(m_Youtube_video_url); } if (m_TagsIsSet) { - val[utility::conversions::to_string_t(U("tags"))] = ModelBase::toJson(m_Tags); + val[utility::conversions::to_string_t(_XPLATSTR("tags"))] = ModelBase::toJson(m_Tags); } if (m_Comment_countIsSet) { - val[utility::conversions::to_string_t(U("comment_count"))] = ModelBase::toJson(m_Comment_count); + val[utility::conversions::to_string_t(_XPLATSTR("comment_count"))] = ModelBase::toJson(m_Comment_count); } if (m_Server_countIsSet) { - val[utility::conversions::to_string_t(U("server_count"))] = ModelBase::toJson(m_Server_count); + val[utility::conversions::to_string_t(_XPLATSTR("server_count"))] = ModelBase::toJson(m_Server_count); } if (m_CreatedIsSet) { - val[utility::conversions::to_string_t(U("created"))] = ModelBase::toJson(m_Created); + val[utility::conversions::to_string_t(_XPLATSTR("created"))] = ModelBase::toJson(m_Created); } if (m_UpdatedIsSet) { - val[utility::conversions::to_string_t(U("updated"))] = ModelBase::toJson(m_Updated); + val[utility::conversions::to_string_t(_XPLATSTR("updated"))] = ModelBase::toJson(m_Updated); } return val; @@ -138,9 +140,9 @@ namespace tribufu bool GameServerCluster::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -148,9 +150,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -158,9 +160,10 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("description")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("description")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("description"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("description"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDescription; @@ -168,9 +171,9 @@ namespace tribufu setDescription(refVal_setDescription); } } - if (val.has_field(utility::conversions::to_string_t(U("game_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("game_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("game_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("game_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setGameId; @@ -178,9 +181,10 @@ namespace tribufu setGameId(refVal_setGameId); } } - if (val.has_field(utility::conversions::to_string_t(U("website_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("website_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("website_url"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("website_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setWebsiteUrl; @@ -188,9 +192,9 @@ namespace tribufu setWebsiteUrl(refVal_setWebsiteUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("banner_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("banner_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banner_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setBannerUrl; @@ -198,9 +202,9 @@ namespace tribufu setBannerUrl(refVal_setBannerUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("owner_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("owner_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("owner_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("owner_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setOwnerId; @@ -208,9 +212,10 @@ namespace tribufu setOwnerId(refVal_setOwnerId); } } - if (val.has_field(utility::conversions::to_string_t(U("discord_server_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("discord_server_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("discord_server_id"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("discord_server_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDiscordServerId; @@ -218,9 +223,10 @@ namespace tribufu setDiscordServerId(refVal_setDiscordServerId); } } - if (val.has_field(utility::conversions::to_string_t(U("youtube_video_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("youtube_video_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("youtube_video_url"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("youtube_video_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setYoutubeVideoUrl; @@ -228,9 +234,9 @@ namespace tribufu setYoutubeVideoUrl(refVal_setYoutubeVideoUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("tags")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("tags")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("tags"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tags"))); if (!fieldValue.is_null()) { utility::string_t refVal_setTags; @@ -238,9 +244,10 @@ namespace tribufu setTags(refVal_setTags); } } - if (val.has_field(utility::conversions::to_string_t(U("comment_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("comment_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("comment_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("comment_count"))); if (!fieldValue.is_null()) { int32_t refVal_setCommentCount; @@ -248,9 +255,10 @@ namespace tribufu setCommentCount(refVal_setCommentCount); } } - if (val.has_field(utility::conversions::to_string_t(U("server_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("server_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("server_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("server_count"))); if (!fieldValue.is_null()) { int32_t refVal_setServerCount; @@ -258,9 +266,9 @@ namespace tribufu setServerCount(refVal_setServerCount); } } - if (val.has_field(utility::conversions::to_string_t(U("created")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("created")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("created"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("created"))); if (!fieldValue.is_null()) { utility::datetime refVal_setCreated; @@ -268,9 +276,9 @@ namespace tribufu setCreated(refVal_setCreated); } } - if (val.has_field(utility::conversions::to_string_t(U("updated")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("updated")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("updated"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("updated"))); if (!fieldValue.is_null()) { utility::datetime refVal_setUpdated; @@ -286,78 +294,81 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_DescriptionIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("description")), m_Description)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("description")), m_Description)); } if (m_Game_idIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("game_id")), m_Game_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("game_id")), m_Game_id)); } if (m_Website_urlIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("website_url")), m_Website_url)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("website_url")), m_Website_url)); } if (m_Banner_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("banner_url")), - m_Banner_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("banner_url")), m_Banner_url)); } if (m_Owner_idIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("owner_id")), - m_Owner_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("owner_id")), m_Owner_id)); } if (m_Discord_server_idIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("discord_server_id")), m_Discord_server_id)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("discord_server_id")), + m_Discord_server_id)); } if (m_Youtube_video_urlIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("youtube_video_url")), m_Youtube_video_url)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("youtube_video_url")), + m_Youtube_video_url)); } if (m_TagsIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("tags")), m_Tags)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("tags")), m_Tags)); } if (m_Comment_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("comment_count")), m_Comment_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("comment_count")), m_Comment_count)); } if (m_Server_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("server_count")), m_Server_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("server_count")), m_Server_count)); } if (m_CreatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created)); } if (m_UpdatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated)); } } @@ -367,110 +378,114 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("description")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("description")))) { utility::string_t refVal_setDescription; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("description"))), refVal_setDescription); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("description"))), + refVal_setDescription); setDescription(refVal_setDescription); } - if (multipart->hasContent(utility::conversions::to_string_t(U("game_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("game_id")))) { utility::string_t refVal_setGameId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("game_id"))), - refVal_setGameId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("game_id"))), refVal_setGameId); setGameId(refVal_setGameId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("website_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("website_url")))) { utility::string_t refVal_setWebsiteUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("website_url"))), refVal_setWebsiteUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("website_url"))), + refVal_setWebsiteUrl); setWebsiteUrl(refVal_setWebsiteUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("banner_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { utility::string_t refVal_setBannerUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("banner_url"))), refVal_setBannerUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banner_url"))), + refVal_setBannerUrl); setBannerUrl(refVal_setBannerUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("owner_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("owner_id")))) { utility::string_t refVal_setOwnerId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("owner_id"))), refVal_setOwnerId); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("owner_id"))), refVal_setOwnerId); setOwnerId(refVal_setOwnerId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("discord_server_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("discord_server_id")))) { utility::string_t refVal_setDiscordServerId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("discord_server_id"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("discord_server_id"))), refVal_setDiscordServerId); setDiscordServerId(refVal_setDiscordServerId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("youtube_video_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("youtube_video_url")))) { utility::string_t refVal_setYoutubeVideoUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("youtube_video_url"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("youtube_video_url"))), refVal_setYoutubeVideoUrl); setYoutubeVideoUrl(refVal_setYoutubeVideoUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("tags")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tags")))) { utility::string_t refVal_setTags; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("tags"))), - refVal_setTags); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tags"))), refVal_setTags); setTags(refVal_setTags); } - if (multipart->hasContent(utility::conversions::to_string_t(U("comment_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("comment_count")))) { int32_t refVal_setCommentCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("comment_count"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("comment_count"))), refVal_setCommentCount); setCommentCount(refVal_setCommentCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("server_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("server_count")))) { int32_t refVal_setServerCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("server_count"))), refVal_setServerCount); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("server_count"))), + refVal_setServerCount); setServerCount(refVal_setServerCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("created")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("created")))) { utility::datetime refVal_setCreated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))), - refVal_setCreated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated); setCreated(refVal_setCreated); } - if (multipart->hasContent(utility::conversions::to_string_t(U("updated")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("updated")))) { utility::datetime refVal_setUpdated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))), - refVal_setUpdated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated); setUpdated(refVal_setUpdated); } return ok; diff --git a/src/model/GrantType.cpp b/src/model/GrantType.cpp index a7d87779..3558e083 100644 --- a/src/model/GrantType.cpp +++ b/src/model/GrantType.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,13 +23,13 @@ namespace tribufu GrantType::eGrantType toEnum(const EnumUnderlyingType &val) { - if (val == utility::conversions::to_string_t(U("authorization_code"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("authorization_code"))) return GrantType::eGrantType::GrantType_AUTHORIZATION_CODE; - if (val == utility::conversions::to_string_t(U("client_credentials"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("client_credentials"))) return GrantType::eGrantType::GrantType_CLIENT_CREDENTIALS; - if (val == utility::conversions::to_string_t(U("password"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("password"))) return GrantType::eGrantType::GrantType_PASSWORD; - if (val == utility::conversions::to_string_t(U("refresh_token"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("refresh_token"))) return GrantType::eGrantType::GrantType_REFRESH_TOKEN; return {}; } @@ -39,13 +39,13 @@ namespace tribufu switch (e) { case GrantType::eGrantType::GrantType_AUTHORIZATION_CODE: - return U("authorization_code"); + return _XPLATSTR("authorization_code"); case GrantType::eGrantType::GrantType_CLIENT_CREDENTIALS: - return U("client_credentials"); + return _XPLATSTR("client_credentials"); case GrantType::eGrantType::GrantType_PASSWORD: - return U("password"); + return _XPLATSTR("password"); case GrantType::eGrantType::GrantType_REFRESH_TOKEN: - return U("refresh_token"); + return _XPLATSTR("refresh_token"); default: break; } @@ -81,9 +81,9 @@ namespace tribufu void GrantType::toMultipart(std::shared_ptr multipart, const utility::string_t &prefix) const { utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } auto e = fromEnum(m_value); @@ -94,9 +94,9 @@ namespace tribufu { bool ok = true; utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } { EnumUnderlyingType e; @@ -120,5 +120,10 @@ namespace tribufu m_value = value; } + GrantType::GrantType(utility::string_t str) + { + setValue(strToEnumMap[str]); + } + } } diff --git a/src/model/Group.cpp b/src/model/Group.cpp index 0e6a47b8..a95d74bd 100644 --- a/src/model/Group.cpp +++ b/src/model/Group.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -68,82 +68,83 @@ namespace tribufu if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_UuidIsSet) { - val[utility::conversions::to_string_t(U("uuid"))] = ModelBase::toJson(m_Uuid); + val[utility::conversions::to_string_t(_XPLATSTR("uuid"))] = ModelBase::toJson(m_Uuid); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_TagIsSet) { - val[utility::conversions::to_string_t(U("tag"))] = ModelBase::toJson(m_Tag); + val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } if (m_DescriptionIsSet) { - val[utility::conversions::to_string_t(U("description"))] = ModelBase::toJson(m_Description); + val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if (m_TypeIsSet) { - val[utility::conversions::to_string_t(U("type"))] = ModelBase::toJson(m_Type); + val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if (m_PrivacyIsSet) { - val[utility::conversions::to_string_t(U("privacy"))] = ModelBase::toJson(m_Privacy); + val[utility::conversions::to_string_t(_XPLATSTR("privacy"))] = ModelBase::toJson(m_Privacy); } if (m_Owner_idIsSet) { - val[utility::conversions::to_string_t(U("owner_id"))] = ModelBase::toJson(m_Owner_id); + val[utility::conversions::to_string_t(_XPLATSTR("owner_id"))] = ModelBase::toJson(m_Owner_id); } if (m_VerifiedIsSet) { - val[utility::conversions::to_string_t(U("verified"))] = ModelBase::toJson(m_Verified); + val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if (m_Photo_urlIsSet) { - val[utility::conversions::to_string_t(U("photo_url"))] = ModelBase::toJson(m_Photo_url); + val[utility::conversions::to_string_t(_XPLATSTR("photo_url"))] = ModelBase::toJson(m_Photo_url); } if (m_Banner_urlIsSet) { - val[utility::conversions::to_string_t(U("banner_url"))] = ModelBase::toJson(m_Banner_url); + val[utility::conversions::to_string_t(_XPLATSTR("banner_url"))] = ModelBase::toJson(m_Banner_url); } if (m_Member_countIsSet) { - val[utility::conversions::to_string_t(U("member_count"))] = ModelBase::toJson(m_Member_count); + val[utility::conversions::to_string_t(_XPLATSTR("member_count"))] = ModelBase::toJson(m_Member_count); } if (m_Follower_countIsSet) { - val[utility::conversions::to_string_t(U("follower_count"))] = ModelBase::toJson(m_Follower_count); + val[utility::conversions::to_string_t(_XPLATSTR("follower_count"))] = + ModelBase::toJson(m_Follower_count); } if (m_View_countIsSet) { - val[utility::conversions::to_string_t(U("view_count"))] = ModelBase::toJson(m_View_count); + val[utility::conversions::to_string_t(_XPLATSTR("view_count"))] = ModelBase::toJson(m_View_count); } if (m_CreatedIsSet) { - val[utility::conversions::to_string_t(U("created"))] = ModelBase::toJson(m_Created); + val[utility::conversions::to_string_t(_XPLATSTR("created"))] = ModelBase::toJson(m_Created); } if (m_UpdatedIsSet) { - val[utility::conversions::to_string_t(U("updated"))] = ModelBase::toJson(m_Updated); + val[utility::conversions::to_string_t(_XPLATSTR("updated"))] = ModelBase::toJson(m_Updated); } return val; @@ -152,9 +153,9 @@ namespace tribufu bool Group::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -162,9 +163,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("uuid")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("uuid")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("uuid"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("uuid"))); if (!fieldValue.is_null()) { utility::string_t refVal_setUuid; @@ -172,9 +173,9 @@ namespace tribufu setUuid(refVal_setUuid); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -182,9 +183,9 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("tag")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("tag")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("tag"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tag"))); if (!fieldValue.is_null()) { utility::string_t refVal_setTag; @@ -192,9 +193,10 @@ namespace tribufu setTag(refVal_setTag); } } - if (val.has_field(utility::conversions::to_string_t(U("description")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("description")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("description"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("description"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDescription; @@ -202,9 +204,9 @@ namespace tribufu setDescription(refVal_setDescription); } } - if (val.has_field(utility::conversions::to_string_t(U("type")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("type")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("type"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("type"))); if (!fieldValue.is_null()) { int32_t refVal_setType; @@ -212,9 +214,9 @@ namespace tribufu setType(refVal_setType); } } - if (val.has_field(utility::conversions::to_string_t(U("privacy")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("privacy")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("privacy"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("privacy"))); if (!fieldValue.is_null()) { int32_t refVal_setPrivacy; @@ -222,9 +224,9 @@ namespace tribufu setPrivacy(refVal_setPrivacy); } } - if (val.has_field(utility::conversions::to_string_t(U("owner_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("owner_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("owner_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("owner_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setOwnerId; @@ -232,9 +234,9 @@ namespace tribufu setOwnerId(refVal_setOwnerId); } } - if (val.has_field(utility::conversions::to_string_t(U("verified")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("verified")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("verified"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("verified"))); if (!fieldValue.is_null()) { bool refVal_setVerified; @@ -242,9 +244,9 @@ namespace tribufu setVerified(refVal_setVerified); } } - if (val.has_field(utility::conversions::to_string_t(U("photo_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("photo_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("photo_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("photo_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPhotoUrl; @@ -252,9 +254,9 @@ namespace tribufu setPhotoUrl(refVal_setPhotoUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("banner_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("banner_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banner_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setBannerUrl; @@ -262,9 +264,10 @@ namespace tribufu setBannerUrl(refVal_setBannerUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("member_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("member_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("member_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("member_count"))); if (!fieldValue.is_null()) { int32_t refVal_setMemberCount; @@ -272,9 +275,10 @@ namespace tribufu setMemberCount(refVal_setMemberCount); } } - if (val.has_field(utility::conversions::to_string_t(U("follower_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("follower_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("follower_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("follower_count"))); if (!fieldValue.is_null()) { int32_t refVal_setFollowerCount; @@ -282,9 +286,9 @@ namespace tribufu setFollowerCount(refVal_setFollowerCount); } } - if (val.has_field(utility::conversions::to_string_t(U("view_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("view_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("view_count"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("view_count"))); if (!fieldValue.is_null()) { int32_t refVal_setViewCount; @@ -292,9 +296,9 @@ namespace tribufu setViewCount(refVal_setViewCount); } } - if (val.has_field(utility::conversions::to_string_t(U("created")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("created")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("created"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("created"))); if (!fieldValue.is_null()) { utility::datetime refVal_setCreated; @@ -302,9 +306,9 @@ namespace tribufu setCreated(refVal_setCreated); } } - if (val.has_field(utility::conversions::to_string_t(U("updated")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("updated")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("updated"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("updated"))); if (!fieldValue.is_null()) { utility::datetime refVal_setUpdated; @@ -319,88 +323,89 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_UuidIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("uuid")), m_Uuid)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("uuid")), m_Uuid)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_TagIsSet) { multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("tag")), m_Tag)); + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tag")), m_Tag)); } if (m_DescriptionIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("description")), m_Description)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("description")), m_Description)); } if (m_TypeIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("type")), m_Type)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type)); } if (m_PrivacyIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("privacy")), m_Privacy)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("privacy")), m_Privacy)); } if (m_Owner_idIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("owner_id")), - m_Owner_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("owner_id")), m_Owner_id)); } if (m_VerifiedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("verified")), - m_Verified)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } if (m_Photo_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("photo_url")), - m_Photo_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("photo_url")), m_Photo_url)); } if (m_Banner_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("banner_url")), - m_Banner_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("banner_url")), m_Banner_url)); } if (m_Member_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("member_count")), m_Member_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("member_count")), m_Member_count)); } if (m_Follower_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("follower_count")), m_Follower_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("follower_count")), m_Follower_count)); } if (m_View_countIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("view_count")), - m_View_count)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("view_count")), m_View_count)); } if (m_CreatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created)); } if (m_UpdatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated)); } } @@ -409,122 +414,128 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("uuid")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("uuid")))) { utility::string_t refVal_setUuid; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("uuid"))), - refVal_setUuid); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uuid"))), refVal_setUuid); setUuid(refVal_setUuid); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("tag")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tag")))) { utility::string_t refVal_setTag; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("tag"))), - refVal_setTag); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tag"))), refVal_setTag); setTag(refVal_setTag); } - if (multipart->hasContent(utility::conversions::to_string_t(U("description")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("description")))) { utility::string_t refVal_setDescription; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("description"))), refVal_setDescription); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("description"))), + refVal_setDescription); setDescription(refVal_setDescription); } - if (multipart->hasContent(utility::conversions::to_string_t(U("type")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("type")))) { int32_t refVal_setType; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("type"))), - refVal_setType); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("type"))), refVal_setType); setType(refVal_setType); } - if (multipart->hasContent(utility::conversions::to_string_t(U("privacy")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("privacy")))) { int32_t refVal_setPrivacy; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("privacy"))), - refVal_setPrivacy); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("privacy"))), refVal_setPrivacy); setPrivacy(refVal_setPrivacy); } - if (multipart->hasContent(utility::conversions::to_string_t(U("owner_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("owner_id")))) { utility::string_t refVal_setOwnerId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("owner_id"))), refVal_setOwnerId); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("owner_id"))), refVal_setOwnerId); setOwnerId(refVal_setOwnerId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("verified")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("verified")))) { bool refVal_setVerified; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("verified"))), refVal_setVerified); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("verified"))), + refVal_setVerified); setVerified(refVal_setVerified); } - if (multipart->hasContent(utility::conversions::to_string_t(U("photo_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("photo_url")))) { utility::string_t refVal_setPhotoUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("photo_url"))), refVal_setPhotoUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("photo_url"))), + refVal_setPhotoUrl); setPhotoUrl(refVal_setPhotoUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("banner_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { utility::string_t refVal_setBannerUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("banner_url"))), refVal_setBannerUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banner_url"))), + refVal_setBannerUrl); setBannerUrl(refVal_setBannerUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("member_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("member_count")))) { int32_t refVal_setMemberCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("member_count"))), refVal_setMemberCount); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("member_count"))), + refVal_setMemberCount); setMemberCount(refVal_setMemberCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("follower_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("follower_count")))) { int32_t refVal_setFollowerCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("follower_count"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("follower_count"))), refVal_setFollowerCount); setFollowerCount(refVal_setFollowerCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("view_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("view_count")))) { int32_t refVal_setViewCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("view_count"))), refVal_setViewCount); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("view_count"))), + refVal_setViewCount); setViewCount(refVal_setViewCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("created")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("created")))) { utility::datetime refVal_setCreated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))), - refVal_setCreated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated); setCreated(refVal_setCreated); } - if (multipart->hasContent(utility::conversions::to_string_t(U("updated")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("updated")))) { utility::datetime refVal_setUpdated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))), - refVal_setUpdated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated); setUpdated(refVal_setUpdated); } return ok; diff --git a/src/model/GroupGame.cpp b/src/model/GroupGame.cpp index f94a3339..f4834b10 100644 --- a/src/model/GroupGame.cpp +++ b/src/model/GroupGame.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -47,37 +47,38 @@ namespace tribufu if (m_Group_idIsSet) { - val[utility::conversions::to_string_t(U("group_id"))] = ModelBase::toJson(m_Group_id); + val[utility::conversions::to_string_t(_XPLATSTR("group_id"))] = ModelBase::toJson(m_Group_id); } if (m_GroupIsSet) { - val[utility::conversions::to_string_t(U("group"))] = ModelBase::toJson(m_Group); + val[utility::conversions::to_string_t(_XPLATSTR("group"))] = ModelBase::toJson(m_Group); } if (m_Application_idIsSet) { - val[utility::conversions::to_string_t(U("application_id"))] = ModelBase::toJson(m_Application_id); + val[utility::conversions::to_string_t(_XPLATSTR("application_id"))] = + ModelBase::toJson(m_Application_id); } if (m_ApplicationIsSet) { - val[utility::conversions::to_string_t(U("application"))] = ModelBase::toJson(m_Application); + val[utility::conversions::to_string_t(_XPLATSTR("application"))] = ModelBase::toJson(m_Application); } if (m_StatsIsSet) { - val[utility::conversions::to_string_t(U("stats"))] = ModelBase::toJson(m_Stats); + val[utility::conversions::to_string_t(_XPLATSTR("stats"))] = ModelBase::toJson(m_Stats); } if (m_AcquiredIsSet) { - val[utility::conversions::to_string_t(U("acquired"))] = ModelBase::toJson(m_Acquired); + val[utility::conversions::to_string_t(_XPLATSTR("acquired"))] = ModelBase::toJson(m_Acquired); } if (m_Last_usedIsSet) { - val[utility::conversions::to_string_t(U("last_used"))] = ModelBase::toJson(m_Last_used); + val[utility::conversions::to_string_t(_XPLATSTR("last_used"))] = ModelBase::toJson(m_Last_used); } return val; @@ -86,9 +87,9 @@ namespace tribufu bool GroupGame::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("group_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("group_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("group_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("group_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setGroupId; @@ -96,9 +97,9 @@ namespace tribufu setGroupId(refVal_setGroupId); } } - if (val.has_field(utility::conversions::to_string_t(U("group")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("group")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("group"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("group"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setGroup; @@ -106,9 +107,10 @@ namespace tribufu setGroup(refVal_setGroup); } } - if (val.has_field(utility::conversions::to_string_t(U("application_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("application_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("application_id"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("application_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setApplicationId; @@ -116,9 +118,10 @@ namespace tribufu setApplicationId(refVal_setApplicationId); } } - if (val.has_field(utility::conversions::to_string_t(U("application")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("application")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("application"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("application"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setApplication; @@ -126,9 +129,9 @@ namespace tribufu setApplication(refVal_setApplication); } } - if (val.has_field(utility::conversions::to_string_t(U("stats")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("stats")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("stats"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("stats"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setStats; @@ -136,9 +139,9 @@ namespace tribufu setStats(refVal_setStats); } } - if (val.has_field(utility::conversions::to_string_t(U("acquired")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("acquired")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("acquired"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("acquired"))); if (!fieldValue.is_null()) { utility::datetime refVal_setAcquired; @@ -146,9 +149,9 @@ namespace tribufu setAcquired(refVal_setAcquired); } } - if (val.has_field(utility::conversions::to_string_t(U("last_used")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("last_used")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("last_used"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("last_used"))); if (!fieldValue.is_null()) { utility::datetime refVal_setLastUsed; @@ -163,44 +166,44 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_Group_idIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("group_id")), - m_Group_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("group_id")), m_Group_id)); } if (m_GroupIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("group")), m_Group)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("group")), m_Group)); } if (m_Application_idIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("application_id")), m_Application_id)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("application_id")), m_Application_id)); } if (m_ApplicationIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("application")), m_Application)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("application")), m_Application)); } if (m_StatsIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("stats")), m_Stats)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("stats")), m_Stats)); } if (m_AcquiredIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("acquired")), - m_Acquired)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("acquired")), m_Acquired)); } if (m_Last_usedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("last_used")), - m_Last_used)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("last_used")), m_Last_used)); } } @@ -209,59 +212,62 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("group_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("group_id")))) { utility::string_t refVal_setGroupId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("group_id"))), refVal_setGroupId); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("group_id"))), refVal_setGroupId); setGroupId(refVal_setGroupId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("group")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("group")))) { std::shared_ptr refVal_setGroup; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("group"))), - refVal_setGroup); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("group"))), refVal_setGroup); setGroup(refVal_setGroup); } - if (multipart->hasContent(utility::conversions::to_string_t(U("application_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("application_id")))) { utility::string_t refVal_setApplicationId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("application_id"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("application_id"))), refVal_setApplicationId); setApplicationId(refVal_setApplicationId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("application")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("application")))) { std::shared_ptr refVal_setApplication; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("application"))), refVal_setApplication); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("application"))), + refVal_setApplication); setApplication(refVal_setApplication); } - if (multipart->hasContent(utility::conversions::to_string_t(U("stats")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("stats")))) { std::shared_ptr refVal_setStats; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("stats"))), - refVal_setStats); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("stats"))), refVal_setStats); setStats(refVal_setStats); } - if (multipart->hasContent(utility::conversions::to_string_t(U("acquired")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("acquired")))) { utility::datetime refVal_setAcquired; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("acquired"))), refVal_setAcquired); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("acquired"))), + refVal_setAcquired); setAcquired(refVal_setAcquired); } - if (multipart->hasContent(utility::conversions::to_string_t(U("last_used")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("last_used")))) { utility::datetime refVal_setLastUsed; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("last_used"))), refVal_setLastUsed); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("last_used"))), + refVal_setLastUsed); setLastUsed(refVal_setLastUsed); } return ok; diff --git a/src/model/GroupMember.cpp b/src/model/GroupMember.cpp index 861068e5..1345cf93 100644 --- a/src/model/GroupMember.cpp +++ b/src/model/GroupMember.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -53,47 +53,47 @@ namespace tribufu if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_UuidIsSet) { - val[utility::conversions::to_string_t(U("uuid"))] = ModelBase::toJson(m_Uuid); + val[utility::conversions::to_string_t(_XPLATSTR("uuid"))] = ModelBase::toJson(m_Uuid); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_Display_nameIsSet) { - val[utility::conversions::to_string_t(U("display_name"))] = ModelBase::toJson(m_Display_name); + val[utility::conversions::to_string_t(_XPLATSTR("display_name"))] = ModelBase::toJson(m_Display_name); } if (m_VerifiedIsSet) { - val[utility::conversions::to_string_t(U("verified"))] = ModelBase::toJson(m_Verified); + val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if (m_Photo_urlIsSet) { - val[utility::conversions::to_string_t(U("photo_url"))] = ModelBase::toJson(m_Photo_url); + val[utility::conversions::to_string_t(_XPLATSTR("photo_url"))] = ModelBase::toJson(m_Photo_url); } if (m_Last_onlineIsSet) { - val[utility::conversions::to_string_t(U("last_online"))] = ModelBase::toJson(m_Last_online); + val[utility::conversions::to_string_t(_XPLATSTR("last_online"))] = ModelBase::toJson(m_Last_online); } if (m_RankIsSet) { - val[utility::conversions::to_string_t(U("rank"))] = ModelBase::toJson(m_Rank); + val[utility::conversions::to_string_t(_XPLATSTR("rank"))] = ModelBase::toJson(m_Rank); } if (m_SinceIsSet) { - val[utility::conversions::to_string_t(U("since"))] = ModelBase::toJson(m_Since); + val[utility::conversions::to_string_t(_XPLATSTR("since"))] = ModelBase::toJson(m_Since); } return val; @@ -102,9 +102,9 @@ namespace tribufu bool GroupMember::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -112,9 +112,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("uuid")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("uuid")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("uuid"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("uuid"))); if (!fieldValue.is_null()) { utility::string_t refVal_setUuid; @@ -122,9 +122,9 @@ namespace tribufu setUuid(refVal_setUuid); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -132,9 +132,10 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("display_name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("display_name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("display_name"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("display_name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDisplayName; @@ -142,9 +143,9 @@ namespace tribufu setDisplayName(refVal_setDisplayName); } } - if (val.has_field(utility::conversions::to_string_t(U("verified")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("verified")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("verified"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("verified"))); if (!fieldValue.is_null()) { bool refVal_setVerified; @@ -152,9 +153,9 @@ namespace tribufu setVerified(refVal_setVerified); } } - if (val.has_field(utility::conversions::to_string_t(U("photo_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("photo_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("photo_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("photo_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPhotoUrl; @@ -162,9 +163,10 @@ namespace tribufu setPhotoUrl(refVal_setPhotoUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("last_online")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("last_online")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("last_online"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("last_online"))); if (!fieldValue.is_null()) { utility::datetime refVal_setLastOnline; @@ -172,9 +174,9 @@ namespace tribufu setLastOnline(refVal_setLastOnline); } } - if (val.has_field(utility::conversions::to_string_t(U("rank")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("rank")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("rank"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("rank"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setRank; @@ -182,9 +184,9 @@ namespace tribufu setRank(refVal_setRank); } } - if (val.has_field(utility::conversions::to_string_t(U("since")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("since")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("since"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("since"))); if (!fieldValue.is_null()) { utility::datetime refVal_setSince; @@ -200,53 +202,54 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_UuidIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("uuid")), m_Uuid)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("uuid")), m_Uuid)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_Display_nameIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("display_name")), m_Display_name)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("display_name")), m_Display_name)); } if (m_VerifiedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("verified")), - m_Verified)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } if (m_Photo_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("photo_url")), - m_Photo_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("photo_url")), m_Photo_url)); } if (m_Last_onlineIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("last_online")), m_Last_online)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("last_online")), m_Last_online)); } if (m_RankIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("rank")), m_Rank)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("rank")), m_Rank)); } if (m_SinceIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("since")), m_Since)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("since")), m_Since)); } } @@ -255,72 +258,76 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("uuid")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("uuid")))) { utility::string_t refVal_setUuid; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("uuid"))), - refVal_setUuid); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uuid"))), refVal_setUuid); setUuid(refVal_setUuid); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("display_name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("display_name")))) { utility::string_t refVal_setDisplayName; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("display_name"))), refVal_setDisplayName); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("display_name"))), + refVal_setDisplayName); setDisplayName(refVal_setDisplayName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("verified")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("verified")))) { bool refVal_setVerified; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("verified"))), refVal_setVerified); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("verified"))), + refVal_setVerified); setVerified(refVal_setVerified); } - if (multipart->hasContent(utility::conversions::to_string_t(U("photo_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("photo_url")))) { utility::string_t refVal_setPhotoUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("photo_url"))), refVal_setPhotoUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("photo_url"))), + refVal_setPhotoUrl); setPhotoUrl(refVal_setPhotoUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("last_online")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("last_online")))) { utility::datetime refVal_setLastOnline; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("last_online"))), refVal_setLastOnline); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("last_online"))), + refVal_setLastOnline); setLastOnline(refVal_setLastOnline); } - if (multipart->hasContent(utility::conversions::to_string_t(U("rank")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("rank")))) { std::shared_ptr refVal_setRank; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("rank"))), - refVal_setRank); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("rank"))), refVal_setRank); setRank(refVal_setRank); } - if (multipart->hasContent(utility::conversions::to_string_t(U("since")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("since")))) { utility::datetime refVal_setSince; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("since"))), - refVal_setSince); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("since"))), refVal_setSince); setSince(refVal_setSince); } return ok; diff --git a/src/model/GroupRank.cpp b/src/model/GroupRank.cpp index 3d235bd3..b24693a8 100644 --- a/src/model/GroupRank.cpp +++ b/src/model/GroupRank.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,11 +23,11 @@ namespace tribufu GroupRank::eGroupRank toEnum(const EnumUnderlyingType &val) { - if (val == utility::conversions::to_string_t(U("member"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("member"))) return GroupRank::eGroupRank::GroupRank_MEMBER; - if (val == utility::conversions::to_string_t(U("leader"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("leader"))) return GroupRank::eGroupRank::GroupRank_LEADER; - if (val == utility::conversions::to_string_t(U("owner"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("owner"))) return GroupRank::eGroupRank::GroupRank_OWNER; return {}; } @@ -37,11 +37,11 @@ namespace tribufu switch (e) { case GroupRank::eGroupRank::GroupRank_MEMBER: - return U("member"); + return _XPLATSTR("member"); case GroupRank::eGroupRank::GroupRank_LEADER: - return U("leader"); + return _XPLATSTR("leader"); case GroupRank::eGroupRank::GroupRank_OWNER: - return U("owner"); + return _XPLATSTR("owner"); default: break; } @@ -77,9 +77,9 @@ namespace tribufu void GroupRank::toMultipart(std::shared_ptr multipart, const utility::string_t &prefix) const { utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } auto e = fromEnum(m_value); @@ -90,9 +90,9 @@ namespace tribufu { bool ok = true; utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } { EnumUnderlyingType e; @@ -116,5 +116,10 @@ namespace tribufu m_value = value; } + GroupRank::GroupRank(utility::string_t str) + { + setValue(strToEnumMap[str]); + } + } } diff --git a/src/model/HashViewModel.cpp b/src/model/HashViewModel.cpp index 90074003..503968b7 100644 --- a/src/model/HashViewModel.cpp +++ b/src/model/HashViewModel.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,7 +38,7 @@ namespace tribufu if (m_ValueIsSet) { - val[utility::conversions::to_string_t(U("value"))] = ModelBase::toJson(m_Value); + val[utility::conversions::to_string_t(_XPLATSTR("value"))] = ModelBase::toJson(m_Value); } return val; @@ -47,9 +47,9 @@ namespace tribufu bool HashViewModel::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("value")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("value")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("value"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("value"))); if (!fieldValue.is_null()) { utility::string_t refVal_setValue; @@ -65,14 +65,14 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_ValueIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("value")), m_Value)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("value")), m_Value)); } } @@ -81,16 +81,16 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("value")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("value")))) { utility::string_t refVal_setValue; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("value"))), - refVal_setValue); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("value"))), refVal_setValue); setValue(refVal_setValue); } return ok; diff --git a/src/model/IntrospectRequest.cpp b/src/model/IntrospectRequest.cpp index 3d20fa21..5beab504 100644 --- a/src/model/IntrospectRequest.cpp +++ b/src/model/IntrospectRequest.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,13 @@ namespace tribufu if (m_TokenIsSet) { - val[utility::conversions::to_string_t(U("token"))] = ModelBase::toJson(m_Token); + val[utility::conversions::to_string_t(_XPLATSTR("token"))] = ModelBase::toJson(m_Token); } if (m_Token_type_hintIsSet) { - val[utility::conversions::to_string_t(U("token_type_hint"))] = ModelBase::toJson(m_Token_type_hint); + val[utility::conversions::to_string_t(_XPLATSTR("token_type_hint"))] = + ModelBase::toJson(m_Token_type_hint); } return val; @@ -53,9 +54,9 @@ namespace tribufu bool IntrospectRequest::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("token")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("token")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("token"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("token"))); if (!fieldValue.is_null()) { utility::string_t refVal_setToken; @@ -63,9 +64,10 @@ namespace tribufu setToken(refVal_setToken); } } - if (val.has_field(utility::conversions::to_string_t(U("token_type_hint")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("token_type_hint")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("token_type_hint"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("token_type_hint"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setTokenTypeHint; @@ -81,19 +83,19 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_TokenIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("token")), m_Token)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("token")), m_Token)); } if (m_Token_type_hintIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("token_type_hint")), m_Token_type_hint)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("token_type_hint")), m_Token_type_hint)); } } @@ -103,23 +105,23 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("token")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("token")))) { utility::string_t refVal_setToken; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("token"))), - refVal_setToken); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("token"))), refVal_setToken); setToken(refVal_setToken); } - if (multipart->hasContent(utility::conversions::to_string_t(U("token_type_hint")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("token_type_hint")))) { std::shared_ptr refVal_setTokenTypeHint; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("token_type_hint"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("token_type_hint"))), refVal_setTokenTypeHint); setTokenTypeHint(refVal_setTokenTypeHint); } diff --git a/src/model/IpAddress.cpp b/src/model/IpAddress.cpp index 283f0463..454ecf03 100644 --- a/src/model/IpAddress.cpp +++ b/src/model/IpAddress.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -72,92 +72,92 @@ namespace tribufu if (m_AddressIsSet) { - val[utility::conversions::to_string_t(U("address"))] = ModelBase::toJson(m_Address); + val[utility::conversions::to_string_t(_XPLATSTR("address"))] = ModelBase::toJson(m_Address); } if (m_VersionIsSet) { - val[utility::conversions::to_string_t(U("version"))] = ModelBase::toJson(m_Version); + val[utility::conversions::to_string_t(_XPLATSTR("version"))] = ModelBase::toJson(m_Version); } if (m_NetworkIsSet) { - val[utility::conversions::to_string_t(U("network"))] = ModelBase::toJson(m_Network); + val[utility::conversions::to_string_t(_XPLATSTR("network"))] = ModelBase::toJson(m_Network); } if (m_ReservedIsSet) { - val[utility::conversions::to_string_t(U("reserved"))] = ModelBase::toJson(m_Reserved); + val[utility::conversions::to_string_t(_XPLATSTR("reserved"))] = ModelBase::toJson(m_Reserved); } if (m_AsnIsSet) { - val[utility::conversions::to_string_t(U("asn"))] = ModelBase::toJson(m_Asn); + val[utility::conversions::to_string_t(_XPLATSTR("asn"))] = ModelBase::toJson(m_Asn); } if (m_IspIsSet) { - val[utility::conversions::to_string_t(U("isp"))] = ModelBase::toJson(m_Isp); + val[utility::conversions::to_string_t(_XPLATSTR("isp"))] = ModelBase::toJson(m_Isp); } if (m_ContinentIsSet) { - val[utility::conversions::to_string_t(U("continent"))] = ModelBase::toJson(m_Continent); + val[utility::conversions::to_string_t(_XPLATSTR("continent"))] = ModelBase::toJson(m_Continent); } if (m_CountryIsSet) { - val[utility::conversions::to_string_t(U("country"))] = ModelBase::toJson(m_Country); + val[utility::conversions::to_string_t(_XPLATSTR("country"))] = ModelBase::toJson(m_Country); } if (m_RegionIsSet) { - val[utility::conversions::to_string_t(U("region"))] = ModelBase::toJson(m_Region); + val[utility::conversions::to_string_t(_XPLATSTR("region"))] = ModelBase::toJson(m_Region); } if (m_CityIsSet) { - val[utility::conversions::to_string_t(U("city"))] = ModelBase::toJson(m_City); + val[utility::conversions::to_string_t(_XPLATSTR("city"))] = ModelBase::toJson(m_City); } if (m_Postal_codeIsSet) { - val[utility::conversions::to_string_t(U("postal_code"))] = ModelBase::toJson(m_Postal_code); + val[utility::conversions::to_string_t(_XPLATSTR("postal_code"))] = ModelBase::toJson(m_Postal_code); } if (m_Calling_codeIsSet) { - val[utility::conversions::to_string_t(U("calling_code"))] = ModelBase::toJson(m_Calling_code); + val[utility::conversions::to_string_t(_XPLATSTR("calling_code"))] = ModelBase::toJson(m_Calling_code); } if (m_TldIsSet) { - val[utility::conversions::to_string_t(U("tld"))] = ModelBase::toJson(m_Tld); + val[utility::conversions::to_string_t(_XPLATSTR("tld"))] = ModelBase::toJson(m_Tld); } if (m_LanguageIsSet) { - val[utility::conversions::to_string_t(U("language"))] = ModelBase::toJson(m_Language); + val[utility::conversions::to_string_t(_XPLATSTR("language"))] = ModelBase::toJson(m_Language); } if (m_TimezoneIsSet) { - val[utility::conversions::to_string_t(U("timezone"))] = ModelBase::toJson(m_Timezone); + val[utility::conversions::to_string_t(_XPLATSTR("timezone"))] = ModelBase::toJson(m_Timezone); } if (m_CurrencyIsSet) { - val[utility::conversions::to_string_t(U("currency"))] = ModelBase::toJson(m_Currency); + val[utility::conversions::to_string_t(_XPLATSTR("currency"))] = ModelBase::toJson(m_Currency); } if (m_LatitudeIsSet) { - val[utility::conversions::to_string_t(U("latitude"))] = ModelBase::toJson(m_Latitude); + val[utility::conversions::to_string_t(_XPLATSTR("latitude"))] = ModelBase::toJson(m_Latitude); } if (m_LongitudeIsSet) { - val[utility::conversions::to_string_t(U("longitude"))] = ModelBase::toJson(m_Longitude); + val[utility::conversions::to_string_t(_XPLATSTR("longitude"))] = ModelBase::toJson(m_Longitude); } return val; @@ -166,9 +166,9 @@ namespace tribufu bool IpAddress::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("address")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("address")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("address"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("address"))); if (!fieldValue.is_null()) { utility::string_t refVal_setAddress; @@ -176,9 +176,9 @@ namespace tribufu setAddress(refVal_setAddress); } } - if (val.has_field(utility::conversions::to_string_t(U("version")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("version")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("version"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("version"))); if (!fieldValue.is_null()) { int32_t refVal_setVersion; @@ -186,9 +186,9 @@ namespace tribufu setVersion(refVal_setVersion); } } - if (val.has_field(utility::conversions::to_string_t(U("network")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("network")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("network"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("network"))); if (!fieldValue.is_null()) { utility::string_t refVal_setNetwork; @@ -196,9 +196,9 @@ namespace tribufu setNetwork(refVal_setNetwork); } } - if (val.has_field(utility::conversions::to_string_t(U("reserved")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("reserved")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("reserved"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("reserved"))); if (!fieldValue.is_null()) { bool refVal_setReserved; @@ -206,9 +206,9 @@ namespace tribufu setReserved(refVal_setReserved); } } - if (val.has_field(utility::conversions::to_string_t(U("asn")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("asn")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("asn"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("asn"))); if (!fieldValue.is_null()) { utility::string_t refVal_setAsn; @@ -216,9 +216,9 @@ namespace tribufu setAsn(refVal_setAsn); } } - if (val.has_field(utility::conversions::to_string_t(U("isp")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("isp")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("isp"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("isp"))); if (!fieldValue.is_null()) { utility::string_t refVal_setIsp; @@ -226,9 +226,9 @@ namespace tribufu setIsp(refVal_setIsp); } } - if (val.has_field(utility::conversions::to_string_t(U("continent")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("continent")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("continent"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("continent"))); if (!fieldValue.is_null()) { utility::string_t refVal_setContinent; @@ -236,9 +236,9 @@ namespace tribufu setContinent(refVal_setContinent); } } - if (val.has_field(utility::conversions::to_string_t(U("country")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("country")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("country"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("country"))); if (!fieldValue.is_null()) { utility::string_t refVal_setCountry; @@ -246,9 +246,9 @@ namespace tribufu setCountry(refVal_setCountry); } } - if (val.has_field(utility::conversions::to_string_t(U("region")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("region")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("region"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("region"))); if (!fieldValue.is_null()) { utility::string_t refVal_setRegion; @@ -256,9 +256,9 @@ namespace tribufu setRegion(refVal_setRegion); } } - if (val.has_field(utility::conversions::to_string_t(U("city")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("city")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("city"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("city"))); if (!fieldValue.is_null()) { utility::string_t refVal_setCity; @@ -266,9 +266,10 @@ namespace tribufu setCity(refVal_setCity); } } - if (val.has_field(utility::conversions::to_string_t(U("postal_code")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("postal_code")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("postal_code"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("postal_code"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPostalCode; @@ -276,9 +277,10 @@ namespace tribufu setPostalCode(refVal_setPostalCode); } } - if (val.has_field(utility::conversions::to_string_t(U("calling_code")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("calling_code")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("calling_code"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("calling_code"))); if (!fieldValue.is_null()) { utility::string_t refVal_setCallingCode; @@ -286,9 +288,9 @@ namespace tribufu setCallingCode(refVal_setCallingCode); } } - if (val.has_field(utility::conversions::to_string_t(U("tld")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("tld")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("tld"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tld"))); if (!fieldValue.is_null()) { utility::string_t refVal_setTld; @@ -296,9 +298,9 @@ namespace tribufu setTld(refVal_setTld); } } - if (val.has_field(utility::conversions::to_string_t(U("language")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("language")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("language"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("language"))); if (!fieldValue.is_null()) { utility::string_t refVal_setLanguage; @@ -306,9 +308,9 @@ namespace tribufu setLanguage(refVal_setLanguage); } } - if (val.has_field(utility::conversions::to_string_t(U("timezone")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("timezone")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("timezone"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("timezone"))); if (!fieldValue.is_null()) { utility::string_t refVal_setTimezone; @@ -316,9 +318,9 @@ namespace tribufu setTimezone(refVal_setTimezone); } } - if (val.has_field(utility::conversions::to_string_t(U("currency")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("currency")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("currency"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("currency"))); if (!fieldValue.is_null()) { utility::string_t refVal_setCurrency; @@ -326,9 +328,9 @@ namespace tribufu setCurrency(refVal_setCurrency); } } - if (val.has_field(utility::conversions::to_string_t(U("latitude")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("latitude")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("latitude"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("latitude"))); if (!fieldValue.is_null()) { float refVal_setLatitude; @@ -336,9 +338,9 @@ namespace tribufu setLatitude(refVal_setLatitude); } } - if (val.has_field(utility::conversions::to_string_t(U("longitude")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("longitude")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("longitude"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("longitude"))); if (!fieldValue.is_null()) { float refVal_setLongitude; @@ -353,99 +355,99 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_AddressIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("address")), m_Address)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("address")), m_Address)); } if (m_VersionIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("version")), m_Version)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("version")), m_Version)); } if (m_NetworkIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("network")), m_Network)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("network")), m_Network)); } if (m_ReservedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("reserved")), - m_Reserved)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("reserved")), m_Reserved)); } if (m_AsnIsSet) { multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("asn")), m_Asn)); + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("asn")), m_Asn)); } if (m_IspIsSet) { multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("isp")), m_Isp)); + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("isp")), m_Isp)); } if (m_ContinentIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("continent")), - m_Continent)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("continent")), m_Continent)); } if (m_CountryIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("country")), m_Country)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("country")), m_Country)); } if (m_RegionIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("region")), m_Region)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("region")), m_Region)); } if (m_CityIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("city")), m_City)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("city")), m_City)); } if (m_Postal_codeIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("postal_code")), m_Postal_code)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("postal_code")), m_Postal_code)); } if (m_Calling_codeIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("calling_code")), m_Calling_code)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("calling_code")), m_Calling_code)); } if (m_TldIsSet) { multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("tld")), m_Tld)); + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tld")), m_Tld)); } if (m_LanguageIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("language")), - m_Language)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("language")), m_Language)); } if (m_TimezoneIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("timezone")), - m_Timezone)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("timezone")), m_Timezone)); } if (m_CurrencyIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("currency")), - m_Currency)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("currency")), m_Currency)); } if (m_LatitudeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("latitude")), - m_Latitude)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("latitude")), m_Latitude)); } if (m_LongitudeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("longitude")), - m_Longitude)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("longitude")), m_Longitude)); } } @@ -454,135 +456,144 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("address")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("address")))) { utility::string_t refVal_setAddress; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("address"))), - refVal_setAddress); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("address"))), refVal_setAddress); setAddress(refVal_setAddress); } - if (multipart->hasContent(utility::conversions::to_string_t(U("version")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("version")))) { int32_t refVal_setVersion; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("version"))), - refVal_setVersion); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("version"))), refVal_setVersion); setVersion(refVal_setVersion); } - if (multipart->hasContent(utility::conversions::to_string_t(U("network")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("network")))) { utility::string_t refVal_setNetwork; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("network"))), - refVal_setNetwork); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("network"))), refVal_setNetwork); setNetwork(refVal_setNetwork); } - if (multipart->hasContent(utility::conversions::to_string_t(U("reserved")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("reserved")))) { bool refVal_setReserved; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("reserved"))), refVal_setReserved); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("reserved"))), + refVal_setReserved); setReserved(refVal_setReserved); } - if (multipart->hasContent(utility::conversions::to_string_t(U("asn")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("asn")))) { utility::string_t refVal_setAsn; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("asn"))), - refVal_setAsn); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("asn"))), refVal_setAsn); setAsn(refVal_setAsn); } - if (multipart->hasContent(utility::conversions::to_string_t(U("isp")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("isp")))) { utility::string_t refVal_setIsp; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("isp"))), - refVal_setIsp); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isp"))), refVal_setIsp); setIsp(refVal_setIsp); } - if (multipart->hasContent(utility::conversions::to_string_t(U("continent")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("continent")))) { utility::string_t refVal_setContinent; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("continent"))), refVal_setContinent); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("continent"))), + refVal_setContinent); setContinent(refVal_setContinent); } - if (multipart->hasContent(utility::conversions::to_string_t(U("country")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("country")))) { utility::string_t refVal_setCountry; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("country"))), - refVal_setCountry); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("country"))), refVal_setCountry); setCountry(refVal_setCountry); } - if (multipart->hasContent(utility::conversions::to_string_t(U("region")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("region")))) { utility::string_t refVal_setRegion; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("region"))), - refVal_setRegion); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("region"))), refVal_setRegion); setRegion(refVal_setRegion); } - if (multipart->hasContent(utility::conversions::to_string_t(U("city")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("city")))) { utility::string_t refVal_setCity; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("city"))), - refVal_setCity); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("city"))), refVal_setCity); setCity(refVal_setCity); } - if (multipart->hasContent(utility::conversions::to_string_t(U("postal_code")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("postal_code")))) { utility::string_t refVal_setPostalCode; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("postal_code"))), refVal_setPostalCode); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("postal_code"))), + refVal_setPostalCode); setPostalCode(refVal_setPostalCode); } - if (multipart->hasContent(utility::conversions::to_string_t(U("calling_code")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("calling_code")))) { utility::string_t refVal_setCallingCode; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("calling_code"))), refVal_setCallingCode); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("calling_code"))), + refVal_setCallingCode); setCallingCode(refVal_setCallingCode); } - if (multipart->hasContent(utility::conversions::to_string_t(U("tld")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tld")))) { utility::string_t refVal_setTld; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("tld"))), - refVal_setTld); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tld"))), refVal_setTld); setTld(refVal_setTld); } - if (multipart->hasContent(utility::conversions::to_string_t(U("language")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("language")))) { utility::string_t refVal_setLanguage; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("language"))), refVal_setLanguage); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("language"))), + refVal_setLanguage); setLanguage(refVal_setLanguage); } - if (multipart->hasContent(utility::conversions::to_string_t(U("timezone")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("timezone")))) { utility::string_t refVal_setTimezone; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("timezone"))), refVal_setTimezone); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("timezone"))), + refVal_setTimezone); setTimezone(refVal_setTimezone); } - if (multipart->hasContent(utility::conversions::to_string_t(U("currency")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("currency")))) { utility::string_t refVal_setCurrency; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("currency"))), refVal_setCurrency); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("currency"))), + refVal_setCurrency); setCurrency(refVal_setCurrency); } - if (multipart->hasContent(utility::conversions::to_string_t(U("latitude")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("latitude")))) { float refVal_setLatitude; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("latitude"))), refVal_setLatitude); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("latitude"))), + refVal_setLatitude); setLatitude(refVal_setLatitude); } - if (multipart->hasContent(utility::conversions::to_string_t(U("longitude")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("longitude")))) { float refVal_setLongitude; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("longitude"))), refVal_setLongitude); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("longitude"))), + refVal_setLongitude); setLongitude(refVal_setLongitude); } return ok; diff --git a/src/model/LeaderboardItem.cpp b/src/model/LeaderboardItem.cpp index 7b5f8a79..79741702 100644 --- a/src/model/LeaderboardItem.cpp +++ b/src/model/LeaderboardItem.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -48,32 +48,32 @@ namespace tribufu if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_Display_nameIsSet) { - val[utility::conversions::to_string_t(U("display_name"))] = ModelBase::toJson(m_Display_name); + val[utility::conversions::to_string_t(_XPLATSTR("display_name"))] = ModelBase::toJson(m_Display_name); } if (m_Photo_urlIsSet) { - val[utility::conversions::to_string_t(U("photo_url"))] = ModelBase::toJson(m_Photo_url); + val[utility::conversions::to_string_t(_XPLATSTR("photo_url"))] = ModelBase::toJson(m_Photo_url); } if (m_LevelIsSet) { - val[utility::conversions::to_string_t(U("level"))] = ModelBase::toJson(m_Level); + val[utility::conversions::to_string_t(_XPLATSTR("level"))] = ModelBase::toJson(m_Level); } if (m_ExperienceIsSet) { - val[utility::conversions::to_string_t(U("experience"))] = ModelBase::toJson(m_Experience); + val[utility::conversions::to_string_t(_XPLATSTR("experience"))] = ModelBase::toJson(m_Experience); } if (m_PointsIsSet) { - val[utility::conversions::to_string_t(U("points"))] = ModelBase::toJson(m_Points); + val[utility::conversions::to_string_t(_XPLATSTR("points"))] = ModelBase::toJson(m_Points); } return val; @@ -82,9 +82,9 @@ namespace tribufu bool LeaderboardItem::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -92,9 +92,10 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("display_name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("display_name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("display_name"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("display_name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDisplayName; @@ -102,9 +103,9 @@ namespace tribufu setDisplayName(refVal_setDisplayName); } } - if (val.has_field(utility::conversions::to_string_t(U("photo_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("photo_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("photo_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("photo_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPhotoUrl; @@ -112,9 +113,9 @@ namespace tribufu setPhotoUrl(refVal_setPhotoUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("level")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("level")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("level"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("level"))); if (!fieldValue.is_null()) { int32_t refVal_setLevel; @@ -122,9 +123,9 @@ namespace tribufu setLevel(refVal_setLevel); } } - if (val.has_field(utility::conversions::to_string_t(U("experience")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("experience")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("experience"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("experience"))); if (!fieldValue.is_null()) { double refVal_setExperience; @@ -132,9 +133,9 @@ namespace tribufu setExperience(refVal_setExperience); } } - if (val.has_field(utility::conversions::to_string_t(U("points")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("points")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("points"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("points"))); if (!fieldValue.is_null()) { double refVal_setPoints; @@ -150,39 +151,39 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_Display_nameIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("display_name")), m_Display_name)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("display_name")), m_Display_name)); } if (m_Photo_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("photo_url")), - m_Photo_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("photo_url")), m_Photo_url)); } if (m_LevelIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("level")), m_Level)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("level")), m_Level)); } if (m_ExperienceIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("experience")), - m_Experience)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("experience")), m_Experience)); } if (m_PointsIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("points")), m_Points)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("points")), m_Points)); } } @@ -192,51 +193,54 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("display_name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("display_name")))) { utility::string_t refVal_setDisplayName; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("display_name"))), refVal_setDisplayName); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("display_name"))), + refVal_setDisplayName); setDisplayName(refVal_setDisplayName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("photo_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("photo_url")))) { utility::string_t refVal_setPhotoUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("photo_url"))), refVal_setPhotoUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("photo_url"))), + refVal_setPhotoUrl); setPhotoUrl(refVal_setPhotoUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("level")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("level")))) { int32_t refVal_setLevel; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("level"))), - refVal_setLevel); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("level"))), refVal_setLevel); setLevel(refVal_setLevel); } - if (multipart->hasContent(utility::conversions::to_string_t(U("experience")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("experience")))) { double refVal_setExperience; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("experience"))), refVal_setExperience); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("experience"))), + refVal_setExperience); setExperience(refVal_setExperience); } - if (multipart->hasContent(utility::conversions::to_string_t(U("points")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("points")))) { double refVal_setPoints; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("points"))), - refVal_setPoints); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("points"))), refVal_setPoints); setPoints(refVal_setPoints); } return ok; diff --git a/src/model/LeaderboardOrder.cpp b/src/model/LeaderboardOrder.cpp index 553baab1..371110b9 100644 --- a/src/model/LeaderboardOrder.cpp +++ b/src/model/LeaderboardOrder.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,9 +23,9 @@ namespace tribufu LeaderboardOrder::eLeaderboardOrder toEnum(const EnumUnderlyingType &val) { - if (val == utility::conversions::to_string_t(U("level"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("level"))) return LeaderboardOrder::eLeaderboardOrder::LeaderboardOrder_LEVEL; - if (val == utility::conversions::to_string_t(U("points"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("points"))) return LeaderboardOrder::eLeaderboardOrder::LeaderboardOrder_POINTS; return {}; } @@ -35,9 +35,9 @@ namespace tribufu switch (e) { case LeaderboardOrder::eLeaderboardOrder::LeaderboardOrder_LEVEL: - return U("level"); + return _XPLATSTR("level"); case LeaderboardOrder::eLeaderboardOrder::LeaderboardOrder_POINTS: - return U("points"); + return _XPLATSTR("points"); default: break; } @@ -74,9 +74,9 @@ namespace tribufu const utility::string_t &prefix) const { utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } auto e = fromEnum(m_value); @@ -88,9 +88,9 @@ namespace tribufu { bool ok = true; utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } { EnumUnderlyingType e; @@ -114,5 +114,10 @@ namespace tribufu m_value = value; } + LeaderboardOrder::LeaderboardOrder(utility::string_t str) + { + setValue(strToEnumMap[str]); + } + } } diff --git a/src/model/LoginProvider.cpp b/src/model/LoginProvider.cpp index a8d29a65..296c092b 100644 --- a/src/model/LoginProvider.cpp +++ b/src/model/LoginProvider.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,19 +23,19 @@ namespace tribufu LoginProvider::eLoginProvider toEnum(const EnumUnderlyingType &val) { - if (val == utility::conversions::to_string_t(U("steam"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("steam"))) return LoginProvider::eLoginProvider::LoginProvider_STEAM; - if (val == utility::conversions::to_string_t(U("epic"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("epic"))) return LoginProvider::eLoginProvider::LoginProvider_EPIC; - if (val == utility::conversions::to_string_t(U("discord"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("discord"))) return LoginProvider::eLoginProvider::LoginProvider_DISCORD; - if (val == utility::conversions::to_string_t(U("microsoft"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("microsoft"))) return LoginProvider::eLoginProvider::LoginProvider_MICROSOFT; - if (val == utility::conversions::to_string_t(U("playstation"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("playstation"))) return LoginProvider::eLoginProvider::LoginProvider_PLAYSTATION; - if (val == utility::conversions::to_string_t(U("google"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("google"))) return LoginProvider::eLoginProvider::LoginProvider_GOOGLE; - if (val == utility::conversions::to_string_t(U("apple"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("apple"))) return LoginProvider::eLoginProvider::LoginProvider_APPLE; return {}; } @@ -45,19 +45,19 @@ namespace tribufu switch (e) { case LoginProvider::eLoginProvider::LoginProvider_STEAM: - return U("steam"); + return _XPLATSTR("steam"); case LoginProvider::eLoginProvider::LoginProvider_EPIC: - return U("epic"); + return _XPLATSTR("epic"); case LoginProvider::eLoginProvider::LoginProvider_DISCORD: - return U("discord"); + return _XPLATSTR("discord"); case LoginProvider::eLoginProvider::LoginProvider_MICROSOFT: - return U("microsoft"); + return _XPLATSTR("microsoft"); case LoginProvider::eLoginProvider::LoginProvider_PLAYSTATION: - return U("playstation"); + return _XPLATSTR("playstation"); case LoginProvider::eLoginProvider::LoginProvider_GOOGLE: - return U("google"); + return _XPLATSTR("google"); case LoginProvider::eLoginProvider::LoginProvider_APPLE: - return U("apple"); + return _XPLATSTR("apple"); default: break; } @@ -94,9 +94,9 @@ namespace tribufu const utility::string_t &prefix) const { utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } auto e = fromEnum(m_value); @@ -107,9 +107,9 @@ namespace tribufu { bool ok = true; utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } { EnumUnderlyingType e; @@ -133,5 +133,10 @@ namespace tribufu m_value = value; } + LoginProvider::LoginProvider(utility::string_t str) + { + setValue(strToEnumMap[str]); + } + } } diff --git a/src/model/LoginRequest.cpp b/src/model/LoginRequest.cpp index 1ca06624..c8724b28 100644 --- a/src/model/LoginRequest.cpp +++ b/src/model/LoginRequest.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,12 +40,12 @@ namespace tribufu if (m_LoginIsSet) { - val[utility::conversions::to_string_t(U("login"))] = ModelBase::toJson(m_Login); + val[utility::conversions::to_string_t(_XPLATSTR("login"))] = ModelBase::toJson(m_Login); } if (m_PasswordIsSet) { - val[utility::conversions::to_string_t(U("password"))] = ModelBase::toJson(m_Password); + val[utility::conversions::to_string_t(_XPLATSTR("password"))] = ModelBase::toJson(m_Password); } return val; @@ -54,9 +54,9 @@ namespace tribufu bool LoginRequest::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("login")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("login")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("login"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("login"))); if (!fieldValue.is_null()) { utility::string_t refVal_setLogin; @@ -64,9 +64,9 @@ namespace tribufu setLogin(refVal_setLogin); } } - if (val.has_field(utility::conversions::to_string_t(U("password")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("password")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("password"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("password"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPassword; @@ -82,19 +82,19 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_LoginIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("login")), m_Login)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("login")), m_Login)); } if (m_PasswordIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("password")), - m_Password)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("password")), m_Password)); } } @@ -103,23 +103,24 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("login")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("login")))) { utility::string_t refVal_setLogin; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("login"))), - refVal_setLogin); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("login"))), refVal_setLogin); setLogin(refVal_setLogin); } - if (multipart->hasContent(utility::conversions::to_string_t(U("password")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("password")))) { utility::string_t refVal_setPassword; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("password"))), refVal_setPassword); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("password"))), + refVal_setPassword); setPassword(refVal_setPassword); } return ok; diff --git a/src/model/LoginResponse.cpp b/src/model/LoginResponse.cpp index 69a0017a..451d244d 100644 --- a/src/model/LoginResponse.cpp +++ b/src/model/LoginResponse.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,22 +43,22 @@ namespace tribufu if (m_UserIsSet) { - val[utility::conversions::to_string_t(U("user"))] = ModelBase::toJson(m_User); + val[utility::conversions::to_string_t(_XPLATSTR("user"))] = ModelBase::toJson(m_User); } if (m_Access_tokenIsSet) { - val[utility::conversions::to_string_t(U("access_token"))] = ModelBase::toJson(m_Access_token); + val[utility::conversions::to_string_t(_XPLATSTR("access_token"))] = ModelBase::toJson(m_Access_token); } if (m_Refresh_tokenIsSet) { - val[utility::conversions::to_string_t(U("refresh_token"))] = ModelBase::toJson(m_Refresh_token); + val[utility::conversions::to_string_t(_XPLATSTR("refresh_token"))] = ModelBase::toJson(m_Refresh_token); } if (m_Expires_inIsSet) { - val[utility::conversions::to_string_t(U("expires_in"))] = ModelBase::toJson(m_Expires_in); + val[utility::conversions::to_string_t(_XPLATSTR("expires_in"))] = ModelBase::toJson(m_Expires_in); } return val; @@ -67,9 +67,9 @@ namespace tribufu bool LoginResponse::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("user")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("user")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("user"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("user"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setUser; @@ -77,9 +77,10 @@ namespace tribufu setUser(refVal_setUser); } } - if (val.has_field(utility::conversions::to_string_t(U("access_token")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("access_token")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("access_token"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("access_token"))); if (!fieldValue.is_null()) { utility::string_t refVal_setAccessToken; @@ -87,9 +88,10 @@ namespace tribufu setAccessToken(refVal_setAccessToken); } } - if (val.has_field(utility::conversions::to_string_t(U("refresh_token")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("refresh_token")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("refresh_token"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("refresh_token"))); if (!fieldValue.is_null()) { utility::string_t refVal_setRefreshToken; @@ -97,9 +99,9 @@ namespace tribufu setRefreshToken(refVal_setRefreshToken); } } - if (val.has_field(utility::conversions::to_string_t(U("expires_in")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("expires_in")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("expires_in"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("expires_in"))); if (!fieldValue.is_null()) { int64_t refVal_setExpiresIn; @@ -115,29 +117,29 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_UserIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("user")), m_User)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User)); } if (m_Access_tokenIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("access_token")), m_Access_token)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("access_token")), m_Access_token)); } if (m_Refresh_tokenIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("refresh_token")), m_Refresh_token)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("refresh_token")), m_Refresh_token)); } if (m_Expires_inIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("expires_in")), - m_Expires_in)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("expires_in")), m_Expires_in)); } } @@ -146,38 +148,40 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("user")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("user")))) { std::shared_ptr refVal_setUser; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("user"))), - refVal_setUser); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser); setUser(refVal_setUser); } - if (multipart->hasContent(utility::conversions::to_string_t(U("access_token")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("access_token")))) { utility::string_t refVal_setAccessToken; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("access_token"))), refVal_setAccessToken); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("access_token"))), + refVal_setAccessToken); setAccessToken(refVal_setAccessToken); } - if (multipart->hasContent(utility::conversions::to_string_t(U("refresh_token")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("refresh_token")))) { utility::string_t refVal_setRefreshToken; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("refresh_token"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("refresh_token"))), refVal_setRefreshToken); setRefreshToken(refVal_setRefreshToken); } - if (multipart->hasContent(utility::conversions::to_string_t(U("expires_in")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("expires_in")))) { int64_t refVal_setExpiresIn; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("expires_in"))), refVal_setExpiresIn); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("expires_in"))), + refVal_setExpiresIn); setExpiresIn(refVal_setExpiresIn); } return ok; diff --git a/src/model/Package.cpp b/src/model/Package.cpp index 36bbb527..440f27e0 100644 --- a/src/model/Package.cpp +++ b/src/model/Package.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -60,62 +60,63 @@ namespace tribufu if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_DescriptionIsSet) { - val[utility::conversions::to_string_t(U("description"))] = ModelBase::toJson(m_Description); + val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if (m_Image_urlIsSet) { - val[utility::conversions::to_string_t(U("image_url"))] = ModelBase::toJson(m_Image_url); + val[utility::conversions::to_string_t(_XPLATSTR("image_url"))] = ModelBase::toJson(m_Image_url); } if (m_Author_idIsSet) { - val[utility::conversions::to_string_t(U("author_id"))] = ModelBase::toJson(m_Author_id); + val[utility::conversions::to_string_t(_XPLATSTR("author_id"))] = ModelBase::toJson(m_Author_id); } if (m_VersionIsSet) { - val[utility::conversions::to_string_t(U("version"))] = ModelBase::toJson(m_Version); + val[utility::conversions::to_string_t(_XPLATSTR("version"))] = ModelBase::toJson(m_Version); } if (m_File_urlIsSet) { - val[utility::conversions::to_string_t(U("file_url"))] = ModelBase::toJson(m_File_url); + val[utility::conversions::to_string_t(_XPLATSTR("file_url"))] = ModelBase::toJson(m_File_url); } if (m_Raw_sizeIsSet) { - val[utility::conversions::to_string_t(U("raw_size"))] = ModelBase::toJson(m_Raw_size); + val[utility::conversions::to_string_t(_XPLATSTR("raw_size"))] = ModelBase::toJson(m_Raw_size); } if (m_Download_countIsSet) { - val[utility::conversions::to_string_t(U("download_count"))] = ModelBase::toJson(m_Download_count); + val[utility::conversions::to_string_t(_XPLATSTR("download_count"))] = + ModelBase::toJson(m_Download_count); } if (m_Last_downloadIsSet) { - val[utility::conversions::to_string_t(U("last_download"))] = ModelBase::toJson(m_Last_download); + val[utility::conversions::to_string_t(_XPLATSTR("last_download"))] = ModelBase::toJson(m_Last_download); } if (m_CreatedIsSet) { - val[utility::conversions::to_string_t(U("created"))] = ModelBase::toJson(m_Created); + val[utility::conversions::to_string_t(_XPLATSTR("created"))] = ModelBase::toJson(m_Created); } if (m_UpdatedIsSet) { - val[utility::conversions::to_string_t(U("updated"))] = ModelBase::toJson(m_Updated); + val[utility::conversions::to_string_t(_XPLATSTR("updated"))] = ModelBase::toJson(m_Updated); } return val; @@ -124,9 +125,9 @@ namespace tribufu bool Package::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -134,9 +135,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -144,9 +145,10 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("description")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("description")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("description"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("description"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDescription; @@ -154,9 +156,9 @@ namespace tribufu setDescription(refVal_setDescription); } } - if (val.has_field(utility::conversions::to_string_t(U("image_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("image_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("image_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("image_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setImageUrl; @@ -164,9 +166,9 @@ namespace tribufu setImageUrl(refVal_setImageUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("author_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("author_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("author_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("author_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setAuthorId; @@ -174,9 +176,9 @@ namespace tribufu setAuthorId(refVal_setAuthorId); } } - if (val.has_field(utility::conversions::to_string_t(U("version")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("version")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("version"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("version"))); if (!fieldValue.is_null()) { utility::string_t refVal_setVersion; @@ -184,9 +186,9 @@ namespace tribufu setVersion(refVal_setVersion); } } - if (val.has_field(utility::conversions::to_string_t(U("file_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("file_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("file_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("file_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setFileUrl; @@ -194,9 +196,9 @@ namespace tribufu setFileUrl(refVal_setFileUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("raw_size")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("raw_size")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("raw_size"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("raw_size"))); if (!fieldValue.is_null()) { double refVal_setRawSize; @@ -204,9 +206,10 @@ namespace tribufu setRawSize(refVal_setRawSize); } } - if (val.has_field(utility::conversions::to_string_t(U("download_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("download_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("download_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("download_count"))); if (!fieldValue.is_null()) { int32_t refVal_setDownloadCount; @@ -214,9 +217,10 @@ namespace tribufu setDownloadCount(refVal_setDownloadCount); } } - if (val.has_field(utility::conversions::to_string_t(U("last_download")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("last_download")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("last_download"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("last_download"))); if (!fieldValue.is_null()) { utility::datetime refVal_setLastDownload; @@ -224,9 +228,9 @@ namespace tribufu setLastDownload(refVal_setLastDownload); } } - if (val.has_field(utility::conversions::to_string_t(U("created")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("created")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("created"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("created"))); if (!fieldValue.is_null()) { utility::datetime refVal_setCreated; @@ -234,9 +238,9 @@ namespace tribufu setCreated(refVal_setCreated); } } - if (val.has_field(utility::conversions::to_string_t(U("updated")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("updated")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("updated"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("updated"))); if (!fieldValue.is_null()) { utility::datetime refVal_setUpdated; @@ -251,68 +255,69 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_DescriptionIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("description")), m_Description)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("description")), m_Description)); } if (m_Image_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("image_url")), - m_Image_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("image_url")), m_Image_url)); } if (m_Author_idIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("author_id")), - m_Author_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("author_id")), m_Author_id)); } if (m_VersionIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("version")), m_Version)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("version")), m_Version)); } if (m_File_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("file_url")), - m_File_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("file_url")), m_File_url)); } if (m_Raw_sizeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("raw_size")), - m_Raw_size)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("raw_size")), m_Raw_size)); } if (m_Download_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("download_count")), m_Download_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("download_count")), m_Download_count)); } if (m_Last_downloadIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("last_download")), m_Last_download)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("last_download")), m_Last_download)); } if (m_CreatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created)); } if (m_UpdatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated)); } } @@ -321,95 +326,98 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("description")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("description")))) { utility::string_t refVal_setDescription; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("description"))), refVal_setDescription); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("description"))), + refVal_setDescription); setDescription(refVal_setDescription); } - if (multipart->hasContent(utility::conversions::to_string_t(U("image_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("image_url")))) { utility::string_t refVal_setImageUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("image_url"))), refVal_setImageUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("image_url"))), + refVal_setImageUrl); setImageUrl(refVal_setImageUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("author_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("author_id")))) { utility::string_t refVal_setAuthorId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("author_id"))), refVal_setAuthorId); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("author_id"))), + refVal_setAuthorId); setAuthorId(refVal_setAuthorId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("version")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("version")))) { utility::string_t refVal_setVersion; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("version"))), - refVal_setVersion); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("version"))), refVal_setVersion); setVersion(refVal_setVersion); } - if (multipart->hasContent(utility::conversions::to_string_t(U("file_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("file_url")))) { utility::string_t refVal_setFileUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("file_url"))), refVal_setFileUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("file_url"))), refVal_setFileUrl); setFileUrl(refVal_setFileUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("raw_size")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("raw_size")))) { double refVal_setRawSize; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("raw_size"))), refVal_setRawSize); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("raw_size"))), refVal_setRawSize); setRawSize(refVal_setRawSize); } - if (multipart->hasContent(utility::conversions::to_string_t(U("download_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("download_count")))) { int32_t refVal_setDownloadCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("download_count"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("download_count"))), refVal_setDownloadCount); setDownloadCount(refVal_setDownloadCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("last_download")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("last_download")))) { utility::datetime refVal_setLastDownload; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("last_download"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("last_download"))), refVal_setLastDownload); setLastDownload(refVal_setLastDownload); } - if (multipart->hasContent(utility::conversions::to_string_t(U("created")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("created")))) { utility::datetime refVal_setCreated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))), - refVal_setCreated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated); setCreated(refVal_setCreated); } - if (multipart->hasContent(utility::conversions::to_string_t(U("updated")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("updated")))) { utility::datetime refVal_setUpdated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))), - refVal_setUpdated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated); setUpdated(refVal_setUpdated); } return ok; diff --git a/src/model/Profile.cpp b/src/model/Profile.cpp index aa4f161a..1366a72c 100644 --- a/src/model/Profile.cpp +++ b/src/model/Profile.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -71,92 +71,93 @@ namespace tribufu if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_UuidIsSet) { - val[utility::conversions::to_string_t(U("uuid"))] = ModelBase::toJson(m_Uuid); + val[utility::conversions::to_string_t(_XPLATSTR("uuid"))] = ModelBase::toJson(m_Uuid); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_Display_nameIsSet) { - val[utility::conversions::to_string_t(U("display_name"))] = ModelBase::toJson(m_Display_name); + val[utility::conversions::to_string_t(_XPLATSTR("display_name"))] = ModelBase::toJson(m_Display_name); } if (m_VerifiedIsSet) { - val[utility::conversions::to_string_t(U("verified"))] = ModelBase::toJson(m_Verified); + val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if (m_LevelIsSet) { - val[utility::conversions::to_string_t(U("level"))] = ModelBase::toJson(m_Level); + val[utility::conversions::to_string_t(_XPLATSTR("level"))] = ModelBase::toJson(m_Level); } if (m_ExperienceIsSet) { - val[utility::conversions::to_string_t(U("experience"))] = ModelBase::toJson(m_Experience); + val[utility::conversions::to_string_t(_XPLATSTR("experience"))] = ModelBase::toJson(m_Experience); } if (m_Public_birthdayIsSet) { - val[utility::conversions::to_string_t(U("public_birthday"))] = ModelBase::toJson(m_Public_birthday); + val[utility::conversions::to_string_t(_XPLATSTR("public_birthday"))] = + ModelBase::toJson(m_Public_birthday); } if (m_BirthdayIsSet) { - val[utility::conversions::to_string_t(U("birthday"))] = ModelBase::toJson(m_Birthday); + val[utility::conversions::to_string_t(_XPLATSTR("birthday"))] = ModelBase::toJson(m_Birthday); } if (m_PointsIsSet) { - val[utility::conversions::to_string_t(U("points"))] = ModelBase::toJson(m_Points); + val[utility::conversions::to_string_t(_XPLATSTR("points"))] = ModelBase::toJson(m_Points); } if (m_LocationIsSet) { - val[utility::conversions::to_string_t(U("location"))] = ModelBase::toJson(m_Location); + val[utility::conversions::to_string_t(_XPLATSTR("location"))] = ModelBase::toJson(m_Location); } if (m_Photo_urlIsSet) { - val[utility::conversions::to_string_t(U("photo_url"))] = ModelBase::toJson(m_Photo_url); + val[utility::conversions::to_string_t(_XPLATSTR("photo_url"))] = ModelBase::toJson(m_Photo_url); } if (m_Banner_urlIsSet) { - val[utility::conversions::to_string_t(U("banner_url"))] = ModelBase::toJson(m_Banner_url); + val[utility::conversions::to_string_t(_XPLATSTR("banner_url"))] = ModelBase::toJson(m_Banner_url); } if (m_Last_onlineIsSet) { - val[utility::conversions::to_string_t(U("last_online"))] = ModelBase::toJson(m_Last_online); + val[utility::conversions::to_string_t(_XPLATSTR("last_online"))] = ModelBase::toJson(m_Last_online); } if (m_BiographyIsSet) { - val[utility::conversions::to_string_t(U("biography"))] = ModelBase::toJson(m_Biography); + val[utility::conversions::to_string_t(_XPLATSTR("biography"))] = ModelBase::toJson(m_Biography); } if (m_View_countIsSet) { - val[utility::conversions::to_string_t(U("view_count"))] = ModelBase::toJson(m_View_count); + val[utility::conversions::to_string_t(_XPLATSTR("view_count"))] = ModelBase::toJson(m_View_count); } if (m_CreatedIsSet) { - val[utility::conversions::to_string_t(U("created"))] = ModelBase::toJson(m_Created); + val[utility::conversions::to_string_t(_XPLATSTR("created"))] = ModelBase::toJson(m_Created); } if (m_UpdatedIsSet) { - val[utility::conversions::to_string_t(U("updated"))] = ModelBase::toJson(m_Updated); + val[utility::conversions::to_string_t(_XPLATSTR("updated"))] = ModelBase::toJson(m_Updated); } return val; @@ -165,9 +166,9 @@ namespace tribufu bool Profile::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -175,9 +176,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("uuid")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("uuid")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("uuid"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("uuid"))); if (!fieldValue.is_null()) { utility::string_t refVal_setUuid; @@ -185,9 +186,9 @@ namespace tribufu setUuid(refVal_setUuid); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -195,9 +196,10 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("display_name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("display_name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("display_name"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("display_name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDisplayName; @@ -205,9 +207,9 @@ namespace tribufu setDisplayName(refVal_setDisplayName); } } - if (val.has_field(utility::conversions::to_string_t(U("verified")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("verified")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("verified"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("verified"))); if (!fieldValue.is_null()) { bool refVal_setVerified; @@ -215,9 +217,9 @@ namespace tribufu setVerified(refVal_setVerified); } } - if (val.has_field(utility::conversions::to_string_t(U("level")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("level")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("level"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("level"))); if (!fieldValue.is_null()) { int32_t refVal_setLevel; @@ -225,9 +227,9 @@ namespace tribufu setLevel(refVal_setLevel); } } - if (val.has_field(utility::conversions::to_string_t(U("experience")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("experience")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("experience"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("experience"))); if (!fieldValue.is_null()) { double refVal_setExperience; @@ -235,9 +237,10 @@ namespace tribufu setExperience(refVal_setExperience); } } - if (val.has_field(utility::conversions::to_string_t(U("public_birthday")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("public_birthday")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("public_birthday"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("public_birthday"))); if (!fieldValue.is_null()) { bool refVal_setPublicBirthday; @@ -245,9 +248,9 @@ namespace tribufu setPublicBirthday(refVal_setPublicBirthday); } } - if (val.has_field(utility::conversions::to_string_t(U("birthday")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("birthday")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("birthday"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("birthday"))); if (!fieldValue.is_null()) { utility::datetime refVal_setBirthday; @@ -255,9 +258,9 @@ namespace tribufu setBirthday(refVal_setBirthday); } } - if (val.has_field(utility::conversions::to_string_t(U("points")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("points")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("points"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("points"))); if (!fieldValue.is_null()) { double refVal_setPoints; @@ -265,9 +268,9 @@ namespace tribufu setPoints(refVal_setPoints); } } - if (val.has_field(utility::conversions::to_string_t(U("location")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("location")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("location"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("location"))); if (!fieldValue.is_null()) { utility::string_t refVal_setLocation; @@ -275,9 +278,9 @@ namespace tribufu setLocation(refVal_setLocation); } } - if (val.has_field(utility::conversions::to_string_t(U("photo_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("photo_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("photo_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("photo_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPhotoUrl; @@ -285,9 +288,9 @@ namespace tribufu setPhotoUrl(refVal_setPhotoUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("banner_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("banner_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banner_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setBannerUrl; @@ -295,9 +298,10 @@ namespace tribufu setBannerUrl(refVal_setBannerUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("last_online")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("last_online")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("last_online"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("last_online"))); if (!fieldValue.is_null()) { utility::datetime refVal_setLastOnline; @@ -305,9 +309,9 @@ namespace tribufu setLastOnline(refVal_setLastOnline); } } - if (val.has_field(utility::conversions::to_string_t(U("biography")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("biography")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("biography"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("biography"))); if (!fieldValue.is_null()) { utility::string_t refVal_setBiography; @@ -315,9 +319,9 @@ namespace tribufu setBiography(refVal_setBiography); } } - if (val.has_field(utility::conversions::to_string_t(U("view_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("view_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("view_count"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("view_count"))); if (!fieldValue.is_null()) { int32_t refVal_setViewCount; @@ -325,9 +329,9 @@ namespace tribufu setViewCount(refVal_setViewCount); } } - if (val.has_field(utility::conversions::to_string_t(U("created")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("created")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("created"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("created"))); if (!fieldValue.is_null()) { utility::datetime refVal_setCreated; @@ -335,9 +339,9 @@ namespace tribufu setCreated(refVal_setCreated); } } - if (val.has_field(utility::conversions::to_string_t(U("updated")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("updated")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("updated"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("updated"))); if (!fieldValue.is_null()) { utility::datetime refVal_setUpdated; @@ -352,98 +356,99 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_UuidIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("uuid")), m_Uuid)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("uuid")), m_Uuid)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_Display_nameIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("display_name")), m_Display_name)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("display_name")), m_Display_name)); } if (m_VerifiedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("verified")), - m_Verified)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } if (m_LevelIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("level")), m_Level)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("level")), m_Level)); } if (m_ExperienceIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("experience")), - m_Experience)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("experience")), m_Experience)); } if (m_Public_birthdayIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("public_birthday")), m_Public_birthday)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("public_birthday")), m_Public_birthday)); } if (m_BirthdayIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("birthday")), - m_Birthday)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("birthday")), m_Birthday)); } if (m_PointsIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("points")), m_Points)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("points")), m_Points)); } if (m_LocationIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("location")), - m_Location)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("location")), m_Location)); } if (m_Photo_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("photo_url")), - m_Photo_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("photo_url")), m_Photo_url)); } if (m_Banner_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("banner_url")), - m_Banner_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("banner_url")), m_Banner_url)); } if (m_Last_onlineIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("last_online")), m_Last_online)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("last_online")), m_Last_online)); } if (m_BiographyIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("biography")), - m_Biography)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("biography")), m_Biography)); } if (m_View_countIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("view_count")), - m_View_count)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("view_count")), m_View_count)); } if (m_CreatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created)); } if (m_UpdatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated)); } } @@ -452,136 +457,146 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("uuid")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("uuid")))) { utility::string_t refVal_setUuid; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("uuid"))), - refVal_setUuid); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uuid"))), refVal_setUuid); setUuid(refVal_setUuid); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("display_name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("display_name")))) { utility::string_t refVal_setDisplayName; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("display_name"))), refVal_setDisplayName); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("display_name"))), + refVal_setDisplayName); setDisplayName(refVal_setDisplayName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("verified")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("verified")))) { bool refVal_setVerified; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("verified"))), refVal_setVerified); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("verified"))), + refVal_setVerified); setVerified(refVal_setVerified); } - if (multipart->hasContent(utility::conversions::to_string_t(U("level")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("level")))) { int32_t refVal_setLevel; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("level"))), - refVal_setLevel); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("level"))), refVal_setLevel); setLevel(refVal_setLevel); } - if (multipart->hasContent(utility::conversions::to_string_t(U("experience")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("experience")))) { double refVal_setExperience; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("experience"))), refVal_setExperience); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("experience"))), + refVal_setExperience); setExperience(refVal_setExperience); } - if (multipart->hasContent(utility::conversions::to_string_t(U("public_birthday")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("public_birthday")))) { bool refVal_setPublicBirthday; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("public_birthday"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("public_birthday"))), refVal_setPublicBirthday); setPublicBirthday(refVal_setPublicBirthday); } - if (multipart->hasContent(utility::conversions::to_string_t(U("birthday")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("birthday")))) { utility::datetime refVal_setBirthday; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("birthday"))), refVal_setBirthday); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("birthday"))), + refVal_setBirthday); setBirthday(refVal_setBirthday); } - if (multipart->hasContent(utility::conversions::to_string_t(U("points")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("points")))) { double refVal_setPoints; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("points"))), - refVal_setPoints); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("points"))), refVal_setPoints); setPoints(refVal_setPoints); } - if (multipart->hasContent(utility::conversions::to_string_t(U("location")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("location")))) { utility::string_t refVal_setLocation; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("location"))), refVal_setLocation); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("location"))), + refVal_setLocation); setLocation(refVal_setLocation); } - if (multipart->hasContent(utility::conversions::to_string_t(U("photo_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("photo_url")))) { utility::string_t refVal_setPhotoUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("photo_url"))), refVal_setPhotoUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("photo_url"))), + refVal_setPhotoUrl); setPhotoUrl(refVal_setPhotoUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("banner_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { utility::string_t refVal_setBannerUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("banner_url"))), refVal_setBannerUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banner_url"))), + refVal_setBannerUrl); setBannerUrl(refVal_setBannerUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("last_online")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("last_online")))) { utility::datetime refVal_setLastOnline; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("last_online"))), refVal_setLastOnline); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("last_online"))), + refVal_setLastOnline); setLastOnline(refVal_setLastOnline); } - if (multipart->hasContent(utility::conversions::to_string_t(U("biography")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("biography")))) { utility::string_t refVal_setBiography; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("biography"))), refVal_setBiography); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("biography"))), + refVal_setBiography); setBiography(refVal_setBiography); } - if (multipart->hasContent(utility::conversions::to_string_t(U("view_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("view_count")))) { int32_t refVal_setViewCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("view_count"))), refVal_setViewCount); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("view_count"))), + refVal_setViewCount); setViewCount(refVal_setViewCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("created")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("created")))) { utility::datetime refVal_setCreated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))), - refVal_setCreated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated); setCreated(refVal_setCreated); } - if (multipart->hasContent(utility::conversions::to_string_t(U("updated")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("updated")))) { utility::datetime refVal_setUpdated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))), - refVal_setUpdated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated); setUpdated(refVal_setUpdated); } return ok; diff --git a/src/model/ProfileGame.cpp b/src/model/ProfileGame.cpp index cc4087f9..cb9b93b7 100644 --- a/src/model/ProfileGame.cpp +++ b/src/model/ProfileGame.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -57,59 +57,61 @@ namespace tribufu if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_Capsule_image_urlIsSet) { - val[utility::conversions::to_string_t(U("capsule_image_url"))] = ModelBase::toJson(m_Capsule_image_url); + val[utility::conversions::to_string_t(_XPLATSTR("capsule_image_url"))] = + ModelBase::toJson(m_Capsule_image_url); } if (m_Library_image_urlIsSet) { - val[utility::conversions::to_string_t(U("library_image_url"))] = ModelBase::toJson(m_Library_image_url); + val[utility::conversions::to_string_t(_XPLATSTR("library_image_url"))] = + ModelBase::toJson(m_Library_image_url); } if (m_SlugIsSet) { - val[utility::conversions::to_string_t(U("slug"))] = ModelBase::toJson(m_Slug); + val[utility::conversions::to_string_t(_XPLATSTR("slug"))] = ModelBase::toJson(m_Slug); } if (m_Time_usedIsSet) { - val[utility::conversions::to_string_t(U("time_used"))] = ModelBase::toJson(m_Time_used); + val[utility::conversions::to_string_t(_XPLATSTR("time_used"))] = ModelBase::toJson(m_Time_used); } if (m_Unlocked_achievementsIsSet) { - val[utility::conversions::to_string_t(U("unlocked_achievements"))] = + val[utility::conversions::to_string_t(_XPLATSTR("unlocked_achievements"))] = ModelBase::toJson(m_Unlocked_achievements); } if (m_Total_achievementsIsSet) { - val[utility::conversions::to_string_t(U("total_achievements"))] = + val[utility::conversions::to_string_t(_XPLATSTR("total_achievements"))] = ModelBase::toJson(m_Total_achievements); } if (m_StatsIsSet) { - val[utility::conversions::to_string_t(U("stats"))] = ModelBase::toJson(m_Stats); + val[utility::conversions::to_string_t(_XPLATSTR("stats"))] = ModelBase::toJson(m_Stats); } if (m_AcquiredIsSet) { - val[utility::conversions::to_string_t(U("acquired"))] = ModelBase::toJson(m_Acquired); + val[utility::conversions::to_string_t(_XPLATSTR("acquired"))] = ModelBase::toJson(m_Acquired); } if (m_Last_usedIsSet) { - val[utility::conversions::to_string_t(U("last_used"))] = ModelBase::toJson(m_Last_used); + val[utility::conversions::to_string_t(_XPLATSTR("last_used"))] = ModelBase::toJson(m_Last_used); } return val; @@ -118,9 +120,9 @@ namespace tribufu bool ProfileGame::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -128,9 +130,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -138,9 +140,10 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("capsule_image_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("capsule_image_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("capsule_image_url"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("capsule_image_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setCapsuleImageUrl; @@ -148,9 +151,10 @@ namespace tribufu setCapsuleImageUrl(refVal_setCapsuleImageUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("library_image_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("library_image_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("library_image_url"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("library_image_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setLibraryImageUrl; @@ -158,9 +162,9 @@ namespace tribufu setLibraryImageUrl(refVal_setLibraryImageUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("slug")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("slug")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("slug"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("slug"))); if (!fieldValue.is_null()) { utility::string_t refVal_setSlug; @@ -168,9 +172,9 @@ namespace tribufu setSlug(refVal_setSlug); } } - if (val.has_field(utility::conversions::to_string_t(U("time_used")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("time_used")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("time_used"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("time_used"))); if (!fieldValue.is_null()) { double refVal_setTimeUsed; @@ -178,10 +182,10 @@ namespace tribufu setTimeUsed(refVal_setTimeUsed); } } - if (val.has_field(utility::conversions::to_string_t(U("unlocked_achievements")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("unlocked_achievements")))) { const web::json::value &fieldValue = - val.at(utility::conversions::to_string_t(U("unlocked_achievements"))); + val.at(utility::conversions::to_string_t(_XPLATSTR("unlocked_achievements"))); if (!fieldValue.is_null()) { int32_t refVal_setUnlockedAchievements; @@ -189,9 +193,10 @@ namespace tribufu setUnlockedAchievements(refVal_setUnlockedAchievements); } } - if (val.has_field(utility::conversions::to_string_t(U("total_achievements")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("total_achievements")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("total_achievements"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("total_achievements"))); if (!fieldValue.is_null()) { int32_t refVal_setTotalAchievements; @@ -199,9 +204,9 @@ namespace tribufu setTotalAchievements(refVal_setTotalAchievements); } } - if (val.has_field(utility::conversions::to_string_t(U("stats")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("stats")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("stats"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("stats"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setStats; @@ -209,9 +214,9 @@ namespace tribufu setStats(refVal_setStats); } } - if (val.has_field(utility::conversions::to_string_t(U("acquired")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("acquired")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("acquired"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("acquired"))); if (!fieldValue.is_null()) { utility::datetime refVal_setAcquired; @@ -219,9 +224,9 @@ namespace tribufu setAcquired(refVal_setAcquired); } } - if (val.has_field(utility::conversions::to_string_t(U("last_used")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("last_used")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("last_used"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("last_used"))); if (!fieldValue.is_null()) { utility::datetime refVal_setLastUsed; @@ -237,64 +242,68 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_Capsule_image_urlIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("capsule_image_url")), m_Capsule_image_url)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("capsule_image_url")), + m_Capsule_image_url)); } if (m_Library_image_urlIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("library_image_url")), m_Library_image_url)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("library_image_url")), + m_Library_image_url)); } if (m_SlugIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("slug")), m_Slug)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("slug")), m_Slug)); } if (m_Time_usedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("time_used")), - m_Time_used)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("time_used")), m_Time_used)); } if (m_Unlocked_achievementsIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("unlocked_achievements")), - m_Unlocked_achievements)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("unlocked_achievements")), + m_Unlocked_achievements)); } if (m_Total_achievementsIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("total_achievements")), m_Total_achievements)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("total_achievements")), + m_Total_achievements)); } if (m_StatsIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("stats")), m_Stats)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("stats")), m_Stats)); } if (m_AcquiredIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("acquired")), - m_Acquired)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("acquired")), m_Acquired)); } if (m_Last_usedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("last_used")), - m_Last_used)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("last_used")), m_Last_used)); } } @@ -303,90 +312,93 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("capsule_image_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("capsule_image_url")))) { utility::string_t refVal_setCapsuleImageUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("capsule_image_url"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("capsule_image_url"))), refVal_setCapsuleImageUrl); setCapsuleImageUrl(refVal_setCapsuleImageUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("library_image_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("library_image_url")))) { utility::string_t refVal_setLibraryImageUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("library_image_url"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("library_image_url"))), refVal_setLibraryImageUrl); setLibraryImageUrl(refVal_setLibraryImageUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("slug")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("slug")))) { utility::string_t refVal_setSlug; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("slug"))), - refVal_setSlug); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("slug"))), refVal_setSlug); setSlug(refVal_setSlug); } - if (multipart->hasContent(utility::conversions::to_string_t(U("time_used")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("time_used")))) { double refVal_setTimeUsed; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("time_used"))), refVal_setTimeUsed); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("time_used"))), + refVal_setTimeUsed); setTimeUsed(refVal_setTimeUsed); } - if (multipart->hasContent(utility::conversions::to_string_t(U("unlocked_achievements")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("unlocked_achievements")))) { int32_t refVal_setUnlockedAchievements; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("unlocked_achievements"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("unlocked_achievements"))), refVal_setUnlockedAchievements); setUnlockedAchievements(refVal_setUnlockedAchievements); } - if (multipart->hasContent(utility::conversions::to_string_t(U("total_achievements")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("total_achievements")))) { int32_t refVal_setTotalAchievements; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("total_achievements"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("total_achievements"))), refVal_setTotalAchievements); setTotalAchievements(refVal_setTotalAchievements); } - if (multipart->hasContent(utility::conversions::to_string_t(U("stats")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("stats")))) { std::shared_ptr refVal_setStats; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("stats"))), - refVal_setStats); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("stats"))), refVal_setStats); setStats(refVal_setStats); } - if (multipart->hasContent(utility::conversions::to_string_t(U("acquired")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("acquired")))) { utility::datetime refVal_setAcquired; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("acquired"))), refVal_setAcquired); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("acquired"))), + refVal_setAcquired); setAcquired(refVal_setAcquired); } - if (multipart->hasContent(utility::conversions::to_string_t(U("last_used")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("last_used")))) { utility::datetime refVal_setLastUsed; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("last_used"))), refVal_setLastUsed); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("last_used"))), + refVal_setLastUsed); setLastUsed(refVal_setLastUsed); } return ok; diff --git a/src/model/ProfileGroup.cpp b/src/model/ProfileGroup.cpp index f34ec261..7b2c74fd 100644 --- a/src/model/ProfileGroup.cpp +++ b/src/model/ProfileGroup.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -55,52 +55,52 @@ namespace tribufu if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_UuidIsSet) { - val[utility::conversions::to_string_t(U("uuid"))] = ModelBase::toJson(m_Uuid); + val[utility::conversions::to_string_t(_XPLATSTR("uuid"))] = ModelBase::toJson(m_Uuid); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_TagIsSet) { - val[utility::conversions::to_string_t(U("tag"))] = ModelBase::toJson(m_Tag); + val[utility::conversions::to_string_t(_XPLATSTR("tag"))] = ModelBase::toJson(m_Tag); } if (m_PrivacyIsSet) { - val[utility::conversions::to_string_t(U("privacy"))] = ModelBase::toJson(m_Privacy); + val[utility::conversions::to_string_t(_XPLATSTR("privacy"))] = ModelBase::toJson(m_Privacy); } if (m_VerifiedIsSet) { - val[utility::conversions::to_string_t(U("verified"))] = ModelBase::toJson(m_Verified); + val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if (m_Photo_urlIsSet) { - val[utility::conversions::to_string_t(U("photo_url"))] = ModelBase::toJson(m_Photo_url); + val[utility::conversions::to_string_t(_XPLATSTR("photo_url"))] = ModelBase::toJson(m_Photo_url); } if (m_Member_countIsSet) { - val[utility::conversions::to_string_t(U("member_count"))] = ModelBase::toJson(m_Member_count); + val[utility::conversions::to_string_t(_XPLATSTR("member_count"))] = ModelBase::toJson(m_Member_count); } if (m_RankIsSet) { - val[utility::conversions::to_string_t(U("rank"))] = ModelBase::toJson(m_Rank); + val[utility::conversions::to_string_t(_XPLATSTR("rank"))] = ModelBase::toJson(m_Rank); } if (m_SinceIsSet) { - val[utility::conversions::to_string_t(U("since"))] = ModelBase::toJson(m_Since); + val[utility::conversions::to_string_t(_XPLATSTR("since"))] = ModelBase::toJson(m_Since); } return val; @@ -109,9 +109,9 @@ namespace tribufu bool ProfileGroup::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -119,9 +119,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("uuid")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("uuid")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("uuid"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("uuid"))); if (!fieldValue.is_null()) { utility::string_t refVal_setUuid; @@ -129,9 +129,9 @@ namespace tribufu setUuid(refVal_setUuid); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -139,9 +139,9 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("tag")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("tag")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("tag"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("tag"))); if (!fieldValue.is_null()) { utility::string_t refVal_setTag; @@ -149,9 +149,9 @@ namespace tribufu setTag(refVal_setTag); } } - if (val.has_field(utility::conversions::to_string_t(U("privacy")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("privacy")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("privacy"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("privacy"))); if (!fieldValue.is_null()) { int32_t refVal_setPrivacy; @@ -159,9 +159,9 @@ namespace tribufu setPrivacy(refVal_setPrivacy); } } - if (val.has_field(utility::conversions::to_string_t(U("verified")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("verified")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("verified"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("verified"))); if (!fieldValue.is_null()) { bool refVal_setVerified; @@ -169,9 +169,9 @@ namespace tribufu setVerified(refVal_setVerified); } } - if (val.has_field(utility::conversions::to_string_t(U("photo_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("photo_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("photo_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("photo_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPhotoUrl; @@ -179,9 +179,10 @@ namespace tribufu setPhotoUrl(refVal_setPhotoUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("member_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("member_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("member_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("member_count"))); if (!fieldValue.is_null()) { int32_t refVal_setMemberCount; @@ -189,9 +190,9 @@ namespace tribufu setMemberCount(refVal_setMemberCount); } } - if (val.has_field(utility::conversions::to_string_t(U("rank")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("rank")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("rank"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("rank"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setRank; @@ -199,9 +200,9 @@ namespace tribufu setRank(refVal_setRank); } } - if (val.has_field(utility::conversions::to_string_t(U("since")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("since")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("since"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("since"))); if (!fieldValue.is_null()) { utility::datetime refVal_setSince; @@ -217,58 +218,59 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_UuidIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("uuid")), m_Uuid)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("uuid")), m_Uuid)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_TagIsSet) { multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("tag")), m_Tag)); + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("tag")), m_Tag)); } if (m_PrivacyIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("privacy")), m_Privacy)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("privacy")), m_Privacy)); } if (m_VerifiedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("verified")), - m_Verified)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } if (m_Photo_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("photo_url")), - m_Photo_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("photo_url")), m_Photo_url)); } if (m_Member_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("member_count")), m_Member_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("member_count")), m_Member_count)); } if (m_RankIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("rank")), m_Rank)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("rank")), m_Rank)); } if (m_SinceIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("since")), m_Since)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("since")), m_Since)); } } @@ -277,79 +279,82 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("uuid")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("uuid")))) { utility::string_t refVal_setUuid; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("uuid"))), - refVal_setUuid); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uuid"))), refVal_setUuid); setUuid(refVal_setUuid); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("tag")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("tag")))) { utility::string_t refVal_setTag; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("tag"))), - refVal_setTag); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tag"))), refVal_setTag); setTag(refVal_setTag); } - if (multipart->hasContent(utility::conversions::to_string_t(U("privacy")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("privacy")))) { int32_t refVal_setPrivacy; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("privacy"))), - refVal_setPrivacy); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("privacy"))), refVal_setPrivacy); setPrivacy(refVal_setPrivacy); } - if (multipart->hasContent(utility::conversions::to_string_t(U("verified")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("verified")))) { bool refVal_setVerified; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("verified"))), refVal_setVerified); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("verified"))), + refVal_setVerified); setVerified(refVal_setVerified); } - if (multipart->hasContent(utility::conversions::to_string_t(U("photo_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("photo_url")))) { utility::string_t refVal_setPhotoUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("photo_url"))), refVal_setPhotoUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("photo_url"))), + refVal_setPhotoUrl); setPhotoUrl(refVal_setPhotoUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("member_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("member_count")))) { int32_t refVal_setMemberCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("member_count"))), refVal_setMemberCount); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("member_count"))), + refVal_setMemberCount); setMemberCount(refVal_setMemberCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("rank")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("rank")))) { std::shared_ptr refVal_setRank; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("rank"))), - refVal_setRank); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("rank"))), refVal_setRank); setRank(refVal_setRank); } - if (multipart->hasContent(utility::conversions::to_string_t(U("since")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("since")))) { utility::datetime refVal_setSince; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("since"))), - refVal_setSince); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("since"))), refVal_setSince); setSince(refVal_setSince); } return ok; diff --git a/src/model/RefreshRequest.cpp b/src/model/RefreshRequest.cpp index c264d9a2..250d88f0 100644 --- a/src/model/RefreshRequest.cpp +++ b/src/model/RefreshRequest.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -38,7 +38,7 @@ namespace tribufu if (m_Refresh_tokenIsSet) { - val[utility::conversions::to_string_t(U("refresh_token"))] = ModelBase::toJson(m_Refresh_token); + val[utility::conversions::to_string_t(_XPLATSTR("refresh_token"))] = ModelBase::toJson(m_Refresh_token); } return val; @@ -47,9 +47,10 @@ namespace tribufu bool RefreshRequest::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("refresh_token")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("refresh_token")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("refresh_token"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("refresh_token"))); if (!fieldValue.is_null()) { utility::string_t refVal_setRefreshToken; @@ -65,14 +66,14 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_Refresh_tokenIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("refresh_token")), m_Refresh_token)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("refresh_token")), m_Refresh_token)); } } @@ -82,16 +83,16 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("refresh_token")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("refresh_token")))) { utility::string_t refVal_setRefreshToken; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("refresh_token"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("refresh_token"))), refVal_setRefreshToken); setRefreshToken(refVal_setRefreshToken); } diff --git a/src/model/RegisterRequest.cpp b/src/model/RegisterRequest.cpp index baf9e8e7..a537f5ee 100644 --- a/src/model/RegisterRequest.cpp +++ b/src/model/RegisterRequest.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,22 +44,22 @@ namespace tribufu if (m_UuidIsSet) { - val[utility::conversions::to_string_t(U("uuid"))] = ModelBase::toJson(m_Uuid); + val[utility::conversions::to_string_t(_XPLATSTR("uuid"))] = ModelBase::toJson(m_Uuid); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_EmailIsSet) { - val[utility::conversions::to_string_t(U("email"))] = ModelBase::toJson(m_Email); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if (m_PasswordIsSet) { - val[utility::conversions::to_string_t(U("password"))] = ModelBase::toJson(m_Password); + val[utility::conversions::to_string_t(_XPLATSTR("password"))] = ModelBase::toJson(m_Password); } return val; @@ -68,9 +68,9 @@ namespace tribufu bool RegisterRequest::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("uuid")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("uuid")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("uuid"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("uuid"))); if (!fieldValue.is_null()) { utility::string_t refVal_setUuid; @@ -78,9 +78,9 @@ namespace tribufu setUuid(refVal_setUuid); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -88,9 +88,9 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("email")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("email")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("email"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("email"))); if (!fieldValue.is_null()) { utility::string_t refVal_setEmail; @@ -98,9 +98,9 @@ namespace tribufu setEmail(refVal_setEmail); } } - if (val.has_field(utility::conversions::to_string_t(U("password")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("password")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("password"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("password"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPassword; @@ -116,29 +116,29 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_UuidIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("uuid")), m_Uuid)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("uuid")), m_Uuid)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_EmailIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("email")), m_Email)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); } if (m_PasswordIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("password")), - m_Password)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("password")), m_Password)); } } @@ -148,37 +148,38 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("uuid")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("uuid")))) { utility::string_t refVal_setUuid; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("uuid"))), - refVal_setUuid); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uuid"))), refVal_setUuid); setUuid(refVal_setUuid); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("email")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("email")))) { utility::string_t refVal_setEmail; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("email"))), - refVal_setEmail); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("email"))), refVal_setEmail); setEmail(refVal_setEmail); } - if (multipart->hasContent(utility::conversions::to_string_t(U("password")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("password")))) { utility::string_t refVal_setPassword; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("password"))), refVal_setPassword); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("password"))), + refVal_setPassword); setPassword(refVal_setPassword); } return ok; diff --git a/src/model/ResponseType.cpp b/src/model/ResponseType.cpp index ef47b6a9..35305cc1 100644 --- a/src/model/ResponseType.cpp +++ b/src/model/ResponseType.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,9 +23,9 @@ namespace tribufu ResponseType::eResponseType toEnum(const EnumUnderlyingType &val) { - if (val == utility::conversions::to_string_t(U("code"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("code"))) return ResponseType::eResponseType::ResponseType_CODE; - if (val == utility::conversions::to_string_t(U("token"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("token"))) return ResponseType::eResponseType::ResponseType_TOKEN; return {}; } @@ -35,9 +35,9 @@ namespace tribufu switch (e) { case ResponseType::eResponseType::ResponseType_CODE: - return U("code"); + return _XPLATSTR("code"); case ResponseType::eResponseType::ResponseType_TOKEN: - return U("token"); + return _XPLATSTR("token"); default: break; } @@ -74,9 +74,9 @@ namespace tribufu const utility::string_t &prefix) const { utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } auto e = fromEnum(m_value); @@ -87,9 +87,9 @@ namespace tribufu { bool ok = true; utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } { EnumUnderlyingType e; @@ -113,5 +113,10 @@ namespace tribufu m_value = value; } + ResponseType::ResponseType(utility::string_t str) + { + setValue(strToEnumMap[str]); + } + } } diff --git a/src/model/RevokeRequest.cpp b/src/model/RevokeRequest.cpp index 89a8c5b9..5161792c 100644 --- a/src/model/RevokeRequest.cpp +++ b/src/model/RevokeRequest.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -39,12 +39,13 @@ namespace tribufu if (m_TokenIsSet) { - val[utility::conversions::to_string_t(U("token"))] = ModelBase::toJson(m_Token); + val[utility::conversions::to_string_t(_XPLATSTR("token"))] = ModelBase::toJson(m_Token); } if (m_Token_type_hintIsSet) { - val[utility::conversions::to_string_t(U("token_type_hint"))] = ModelBase::toJson(m_Token_type_hint); + val[utility::conversions::to_string_t(_XPLATSTR("token_type_hint"))] = + ModelBase::toJson(m_Token_type_hint); } return val; @@ -53,9 +54,9 @@ namespace tribufu bool RevokeRequest::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("token")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("token")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("token"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("token"))); if (!fieldValue.is_null()) { utility::string_t refVal_setToken; @@ -63,9 +64,10 @@ namespace tribufu setToken(refVal_setToken); } } - if (val.has_field(utility::conversions::to_string_t(U("token_type_hint")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("token_type_hint")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("token_type_hint"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("token_type_hint"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setTokenTypeHint; @@ -81,19 +83,19 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_TokenIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("token")), m_Token)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("token")), m_Token)); } if (m_Token_type_hintIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("token_type_hint")), m_Token_type_hint)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("token_type_hint")), m_Token_type_hint)); } } @@ -102,23 +104,23 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("token")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("token")))) { utility::string_t refVal_setToken; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("token"))), - refVal_setToken); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("token"))), refVal_setToken); setToken(refVal_setToken); } - if (multipart->hasContent(utility::conversions::to_string_t(U("token_type_hint")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("token_type_hint")))) { std::shared_ptr refVal_setTokenTypeHint; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("token_type_hint"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("token_type_hint"))), refVal_setTokenTypeHint); setTokenTypeHint(refVal_setTokenTypeHint); } diff --git a/src/model/SearchRequest.cpp b/src/model/SearchRequest.cpp index 00df8deb..a32bc6d3 100644 --- a/src/model/SearchRequest.cpp +++ b/src/model/SearchRequest.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -43,22 +43,22 @@ namespace tribufu if (m_TypeIsSet) { - val[utility::conversions::to_string_t(U("type"))] = ModelBase::toJson(m_Type); + val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if (m_QueryIsSet) { - val[utility::conversions::to_string_t(U("query"))] = ModelBase::toJson(m_Query); + val[utility::conversions::to_string_t(_XPLATSTR("query"))] = ModelBase::toJson(m_Query); } if (m_PageIsSet) { - val[utility::conversions::to_string_t(U("page"))] = ModelBase::toJson(m_Page); + val[utility::conversions::to_string_t(_XPLATSTR("page"))] = ModelBase::toJson(m_Page); } if (m_Game_idIsSet) { - val[utility::conversions::to_string_t(U("game_id"))] = ModelBase::toJson(m_Game_id); + val[utility::conversions::to_string_t(_XPLATSTR("game_id"))] = ModelBase::toJson(m_Game_id); } return val; @@ -67,9 +67,9 @@ namespace tribufu bool SearchRequest::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("type")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("type")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("type"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("type"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setType; @@ -77,9 +77,9 @@ namespace tribufu setType(refVal_setType); } } - if (val.has_field(utility::conversions::to_string_t(U("query")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("query")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("query"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("query"))); if (!fieldValue.is_null()) { utility::string_t refVal_setQuery; @@ -87,9 +87,9 @@ namespace tribufu setQuery(refVal_setQuery); } } - if (val.has_field(utility::conversions::to_string_t(U("page")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("page")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("page"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("page"))); if (!fieldValue.is_null()) { int32_t refVal_setPage; @@ -97,9 +97,9 @@ namespace tribufu setPage(refVal_setPage); } } - if (val.has_field(utility::conversions::to_string_t(U("game_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("game_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("game_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("game_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setGameId; @@ -115,29 +115,29 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_TypeIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("type")), m_Type)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type)); } if (m_QueryIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("query")), m_Query)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("query")), m_Query)); } if (m_PageIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("page")), m_Page)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("page")), m_Page)); } if (m_Game_idIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("game_id")), m_Game_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("game_id")), m_Game_id)); } } @@ -146,37 +146,37 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("type")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("type")))) { std::shared_ptr refVal_setType; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("type"))), - refVal_setType); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("type"))), refVal_setType); setType(refVal_setType); } - if (multipart->hasContent(utility::conversions::to_string_t(U("query")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("query")))) { utility::string_t refVal_setQuery; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("query"))), - refVal_setQuery); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("query"))), refVal_setQuery); setQuery(refVal_setQuery); } - if (multipart->hasContent(utility::conversions::to_string_t(U("page")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("page")))) { int32_t refVal_setPage; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("page"))), - refVal_setPage); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("page"))), refVal_setPage); setPage(refVal_setPage); } - if (multipart->hasContent(utility::conversions::to_string_t(U("game_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("game_id")))) { utility::string_t refVal_setGameId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("game_id"))), - refVal_setGameId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("game_id"))), refVal_setGameId); setGameId(refVal_setGameId); } return ok; diff --git a/src/model/SearchType.cpp b/src/model/SearchType.cpp index c33b27ff..dfd45893 100644 --- a/src/model/SearchType.cpp +++ b/src/model/SearchType.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,13 +23,13 @@ namespace tribufu SearchType::eSearchType toEnum(const EnumUnderlyingType &val) { - if (val == utility::conversions::to_string_t(U("user"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("user"))) return SearchType::eSearchType::SearchType_USER; - if (val == utility::conversions::to_string_t(U("group"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("group"))) return SearchType::eSearchType::SearchType_GROUP; - if (val == utility::conversions::to_string_t(U("server"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("server"))) return SearchType::eSearchType::SearchType_SERVER; - if (val == utility::conversions::to_string_t(U("cluster"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("cluster"))) return SearchType::eSearchType::SearchType_CLUSTER; return {}; } @@ -39,13 +39,13 @@ namespace tribufu switch (e) { case SearchType::eSearchType::SearchType_USER: - return U("user"); + return _XPLATSTR("user"); case SearchType::eSearchType::SearchType_GROUP: - return U("group"); + return _XPLATSTR("group"); case SearchType::eSearchType::SearchType_SERVER: - return U("server"); + return _XPLATSTR("server"); case SearchType::eSearchType::SearchType_CLUSTER: - return U("cluster"); + return _XPLATSTR("cluster"); default: break; } @@ -82,9 +82,9 @@ namespace tribufu const utility::string_t &prefix) const { utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } auto e = fromEnum(m_value); @@ -95,9 +95,9 @@ namespace tribufu { bool ok = true; utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } { EnumUnderlyingType e; @@ -121,5 +121,10 @@ namespace tribufu m_value = value; } + SearchType::SearchType(utility::string_t str) + { + setValue(strToEnumMap[str]); + } + } } diff --git a/src/model/ServerMetrics.cpp b/src/model/ServerMetrics.cpp index a7d45cfe..72ac9747 100644 --- a/src/model/ServerMetrics.cpp +++ b/src/model/ServerMetrics.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -42,17 +42,17 @@ namespace tribufu if (m_Server_countIsSet) { - val[utility::conversions::to_string_t(U("server_count"))] = ModelBase::toJson(m_Server_count); + val[utility::conversions::to_string_t(_XPLATSTR("server_count"))] = ModelBase::toJson(m_Server_count); } if (m_Package_countIsSet) { - val[utility::conversions::to_string_t(U("package_count"))] = ModelBase::toJson(m_Package_count); + val[utility::conversions::to_string_t(_XPLATSTR("package_count"))] = ModelBase::toJson(m_Package_count); } if (m_Country_countIsSet) { - val[utility::conversions::to_string_t(U("country_count"))] = ModelBase::toJson(m_Country_count); + val[utility::conversions::to_string_t(_XPLATSTR("country_count"))] = ModelBase::toJson(m_Country_count); } return val; @@ -61,9 +61,10 @@ namespace tribufu bool ServerMetrics::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("server_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("server_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("server_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("server_count"))); if (!fieldValue.is_null()) { int32_t refVal_setServerCount; @@ -71,9 +72,10 @@ namespace tribufu setServerCount(refVal_setServerCount); } } - if (val.has_field(utility::conversions::to_string_t(U("package_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("package_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("package_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("package_count"))); if (!fieldValue.is_null()) { int32_t refVal_setPackageCount; @@ -81,9 +83,10 @@ namespace tribufu setPackageCount(refVal_setPackageCount); } } - if (val.has_field(utility::conversions::to_string_t(U("country_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("country_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("country_count"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("country_count"))); if (!fieldValue.is_null()) { int32_t refVal_setCountryCount; @@ -99,24 +102,24 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_Server_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("server_count")), m_Server_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("server_count")), m_Server_count)); } if (m_Package_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("package_count")), m_Package_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("package_count")), m_Package_count)); } if (m_Country_countIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("country_count")), m_Country_count)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("country_count")), m_Country_count)); } } @@ -125,31 +128,32 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("server_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("server_count")))) { int32_t refVal_setServerCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("server_count"))), refVal_setServerCount); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("server_count"))), + refVal_setServerCount); setServerCount(refVal_setServerCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("package_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("package_count")))) { int32_t refVal_setPackageCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("package_count"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("package_count"))), refVal_setPackageCount); setPackageCount(refVal_setPackageCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("country_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("country_count")))) { int32_t refVal_setCountryCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("country_count"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("country_count"))), refVal_setCountryCount); setCountryCount(refVal_setCountryCount); } diff --git a/src/model/ServerStatus.cpp b/src/model/ServerStatus.cpp index d19ad29d..f74f3694 100644 --- a/src/model/ServerStatus.cpp +++ b/src/model/ServerStatus.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,11 +23,11 @@ namespace tribufu ServerStatus::eServerStatus toEnum(const EnumUnderlyingType &val) { - if (val == utility::conversions::to_string_t(U("unknown"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("unknown"))) return ServerStatus::eServerStatus::ServerStatus_UNKNOWN; - if (val == utility::conversions::to_string_t(U("offline"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("offline"))) return ServerStatus::eServerStatus::ServerStatus_OFFLINE; - if (val == utility::conversions::to_string_t(U("online"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("online"))) return ServerStatus::eServerStatus::ServerStatus_ONLINE; return {}; } @@ -37,11 +37,11 @@ namespace tribufu switch (e) { case ServerStatus::eServerStatus::ServerStatus_UNKNOWN: - return U("unknown"); + return _XPLATSTR("unknown"); case ServerStatus::eServerStatus::ServerStatus_OFFLINE: - return U("offline"); + return _XPLATSTR("offline"); case ServerStatus::eServerStatus::ServerStatus_ONLINE: - return U("online"); + return _XPLATSTR("online"); default: break; } @@ -78,9 +78,9 @@ namespace tribufu const utility::string_t &prefix) const { utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } auto e = fromEnum(m_value); @@ -91,9 +91,9 @@ namespace tribufu { bool ok = true; utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } { EnumUnderlyingType e; @@ -117,5 +117,10 @@ namespace tribufu m_value = value; } + ServerStatus::ServerStatus(utility::string_t str) + { + setValue(strToEnumMap[str]); + } + } } diff --git a/src/model/Subscription.cpp b/src/model/Subscription.cpp index 03cd5541..0ec6138e 100644 --- a/src/model/Subscription.cpp +++ b/src/model/Subscription.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -49,37 +49,37 @@ namespace tribufu if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_DescriptionIsSet) { - val[utility::conversions::to_string_t(U("description"))] = ModelBase::toJson(m_Description); + val[utility::conversions::to_string_t(_XPLATSTR("description"))] = ModelBase::toJson(m_Description); } if (m_Image_urlIsSet) { - val[utility::conversions::to_string_t(U("image_url"))] = ModelBase::toJson(m_Image_url); + val[utility::conversions::to_string_t(_XPLATSTR("image_url"))] = ModelBase::toJson(m_Image_url); } if (m_PricesIsSet) { - val[utility::conversions::to_string_t(U("prices"))] = ModelBase::toJson(m_Prices); + val[utility::conversions::to_string_t(_XPLATSTR("prices"))] = ModelBase::toJson(m_Prices); } if (m_CreatedIsSet) { - val[utility::conversions::to_string_t(U("created"))] = ModelBase::toJson(m_Created); + val[utility::conversions::to_string_t(_XPLATSTR("created"))] = ModelBase::toJson(m_Created); } if (m_UpdatedIsSet) { - val[utility::conversions::to_string_t(U("updated"))] = ModelBase::toJson(m_Updated); + val[utility::conversions::to_string_t(_XPLATSTR("updated"))] = ModelBase::toJson(m_Updated); } return val; @@ -88,9 +88,9 @@ namespace tribufu bool Subscription::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -98,9 +98,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -108,9 +108,10 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("description")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("description")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("description"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("description"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDescription; @@ -118,9 +119,9 @@ namespace tribufu setDescription(refVal_setDescription); } } - if (val.has_field(utility::conversions::to_string_t(U("image_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("image_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("image_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("image_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setImageUrl; @@ -128,9 +129,9 @@ namespace tribufu setImageUrl(refVal_setImageUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("prices")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("prices")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("prices"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("prices"))); if (!fieldValue.is_null()) { std::map refVal_setPrices; @@ -138,9 +139,9 @@ namespace tribufu setPrices(refVal_setPrices); } } - if (val.has_field(utility::conversions::to_string_t(U("created")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("created")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("created"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("created"))); if (!fieldValue.is_null()) { utility::datetime refVal_setCreated; @@ -148,9 +149,9 @@ namespace tribufu setCreated(refVal_setCreated); } } - if (val.has_field(utility::conversions::to_string_t(U("updated")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("updated")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("updated"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("updated"))); if (!fieldValue.is_null()) { utility::datetime refVal_setUpdated; @@ -166,43 +167,44 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_DescriptionIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("description")), m_Description)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("description")), m_Description)); } if (m_Image_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("image_url")), - m_Image_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("image_url")), m_Image_url)); } if (m_PricesIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("prices")), m_Prices)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("prices")), m_Prices)); } if (m_CreatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created)); } if (m_UpdatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated)); } } @@ -211,58 +213,60 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("description")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("description")))) { utility::string_t refVal_setDescription; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("description"))), refVal_setDescription); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("description"))), + refVal_setDescription); setDescription(refVal_setDescription); } - if (multipart->hasContent(utility::conversions::to_string_t(U("image_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("image_url")))) { utility::string_t refVal_setImageUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("image_url"))), refVal_setImageUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("image_url"))), + refVal_setImageUrl); setImageUrl(refVal_setImageUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("prices")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("prices")))) { std::map refVal_setPrices; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("prices"))), - refVal_setPrices); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("prices"))), refVal_setPrices); setPrices(refVal_setPrices); } - if (multipart->hasContent(utility::conversions::to_string_t(U("created")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("created")))) { utility::datetime refVal_setCreated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))), - refVal_setCreated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated); setCreated(refVal_setCreated); } - if (multipart->hasContent(utility::conversions::to_string_t(U("updated")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("updated")))) { utility::datetime refVal_setUpdated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))), - refVal_setUpdated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated); setUpdated(refVal_setUpdated); } return ok; diff --git a/src/model/TokenHintType.cpp b/src/model/TokenHintType.cpp index 34bdd13c..1320b13b 100644 --- a/src/model/TokenHintType.cpp +++ b/src/model/TokenHintType.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,9 +23,9 @@ namespace tribufu TokenHintType::eTokenHintType toEnum(const EnumUnderlyingType &val) { - if (val == utility::conversions::to_string_t(U("access_token"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("access_token"))) return TokenHintType::eTokenHintType::TokenHintType_ACCESS_TOKEN; - if (val == utility::conversions::to_string_t(U("refresh_token"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("refresh_token"))) return TokenHintType::eTokenHintType::TokenHintType_REFRESH_TOKEN; return {}; } @@ -35,9 +35,9 @@ namespace tribufu switch (e) { case TokenHintType::eTokenHintType::TokenHintType_ACCESS_TOKEN: - return U("access_token"); + return _XPLATSTR("access_token"); case TokenHintType::eTokenHintType::TokenHintType_REFRESH_TOKEN: - return U("refresh_token"); + return _XPLATSTR("refresh_token"); default: break; } @@ -74,9 +74,9 @@ namespace tribufu const utility::string_t &prefix) const { utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } auto e = fromEnum(m_value); @@ -87,9 +87,9 @@ namespace tribufu { bool ok = true; utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } { EnumUnderlyingType e; @@ -113,5 +113,10 @@ namespace tribufu m_value = value; } + TokenHintType::TokenHintType(utility::string_t str) + { + setValue(strToEnumMap[str]); + } + } } diff --git a/src/model/TokenRequest.cpp b/src/model/TokenRequest.cpp index e743f29d..e937ff3d 100644 --- a/src/model/TokenRequest.cpp +++ b/src/model/TokenRequest.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -51,42 +51,42 @@ namespace tribufu if (m_Grant_typeIsSet) { - val[utility::conversions::to_string_t(U("grant_type"))] = ModelBase::toJson(m_Grant_type); + val[utility::conversions::to_string_t(_XPLATSTR("grant_type"))] = ModelBase::toJson(m_Grant_type); } if (m_CodeIsSet) { - val[utility::conversions::to_string_t(U("code"))] = ModelBase::toJson(m_Code); + val[utility::conversions::to_string_t(_XPLATSTR("code"))] = ModelBase::toJson(m_Code); } if (m_UsernameIsSet) { - val[utility::conversions::to_string_t(U("username"))] = ModelBase::toJson(m_Username); + val[utility::conversions::to_string_t(_XPLATSTR("username"))] = ModelBase::toJson(m_Username); } if (m_PasswordIsSet) { - val[utility::conversions::to_string_t(U("password"))] = ModelBase::toJson(m_Password); + val[utility::conversions::to_string_t(_XPLATSTR("password"))] = ModelBase::toJson(m_Password); } if (m_Refresh_tokenIsSet) { - val[utility::conversions::to_string_t(U("refresh_token"))] = ModelBase::toJson(m_Refresh_token); + val[utility::conversions::to_string_t(_XPLATSTR("refresh_token"))] = ModelBase::toJson(m_Refresh_token); } if (m_Client_idIsSet) { - val[utility::conversions::to_string_t(U("client_id"))] = ModelBase::toJson(m_Client_id); + val[utility::conversions::to_string_t(_XPLATSTR("client_id"))] = ModelBase::toJson(m_Client_id); } if (m_Redirect_uriIsSet) { - val[utility::conversions::to_string_t(U("redirect_uri"))] = ModelBase::toJson(m_Redirect_uri); + val[utility::conversions::to_string_t(_XPLATSTR("redirect_uri"))] = ModelBase::toJson(m_Redirect_uri); } if (m_Code_verifierIsSet) { - val[utility::conversions::to_string_t(U("code_verifier"))] = ModelBase::toJson(m_Code_verifier); + val[utility::conversions::to_string_t(_XPLATSTR("code_verifier"))] = ModelBase::toJson(m_Code_verifier); } return val; @@ -95,9 +95,9 @@ namespace tribufu bool TokenRequest::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("grant_type")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("grant_type")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("grant_type"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("grant_type"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setGrantType; @@ -105,9 +105,9 @@ namespace tribufu setGrantType(refVal_setGrantType); } } - if (val.has_field(utility::conversions::to_string_t(U("code")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("code")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("code"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("code"))); if (!fieldValue.is_null()) { utility::string_t refVal_setCode; @@ -115,9 +115,9 @@ namespace tribufu setCode(refVal_setCode); } } - if (val.has_field(utility::conversions::to_string_t(U("username")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("username")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("username"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("username"))); if (!fieldValue.is_null()) { utility::string_t refVal_setUsername; @@ -125,9 +125,9 @@ namespace tribufu setUsername(refVal_setUsername); } } - if (val.has_field(utility::conversions::to_string_t(U("password")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("password")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("password"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("password"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPassword; @@ -135,9 +135,10 @@ namespace tribufu setPassword(refVal_setPassword); } } - if (val.has_field(utility::conversions::to_string_t(U("refresh_token")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("refresh_token")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("refresh_token"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("refresh_token"))); if (!fieldValue.is_null()) { utility::string_t refVal_setRefreshToken; @@ -145,9 +146,9 @@ namespace tribufu setRefreshToken(refVal_setRefreshToken); } } - if (val.has_field(utility::conversions::to_string_t(U("client_id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("client_id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("client_id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("client_id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setClientId; @@ -155,9 +156,10 @@ namespace tribufu setClientId(refVal_setClientId); } } - if (val.has_field(utility::conversions::to_string_t(U("redirect_uri")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("redirect_uri")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("redirect_uri"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("redirect_uri"))); if (!fieldValue.is_null()) { utility::string_t refVal_setRedirectUri; @@ -165,9 +167,10 @@ namespace tribufu setRedirectUri(refVal_setRedirectUri); } } - if (val.has_field(utility::conversions::to_string_t(U("code_verifier")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("code_verifier")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("code_verifier"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("code_verifier"))); if (!fieldValue.is_null()) { utility::string_t refVal_setCodeVerifier; @@ -183,49 +186,49 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_Grant_typeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("grant_type")), - m_Grant_type)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("grant_type")), m_Grant_type)); } if (m_CodeIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("code")), m_Code)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("code")), m_Code)); } if (m_UsernameIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("username")), - m_Username)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("username")), m_Username)); } if (m_PasswordIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("password")), - m_Password)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("password")), m_Password)); } if (m_Refresh_tokenIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("refresh_token")), m_Refresh_token)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("refresh_token")), m_Refresh_token)); } if (m_Client_idIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("client_id")), - m_Client_id)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("client_id")), m_Client_id)); } if (m_Redirect_uriIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("redirect_uri")), m_Redirect_uri)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("redirect_uri")), m_Redirect_uri)); } if (m_Code_verifierIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("code_verifier")), m_Code_verifier)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("code_verifier")), m_Code_verifier)); } } @@ -234,66 +237,71 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("grant_type")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("grant_type")))) { std::shared_ptr refVal_setGrantType; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("grant_type"))), refVal_setGrantType); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("grant_type"))), + refVal_setGrantType); setGrantType(refVal_setGrantType); } - if (multipart->hasContent(utility::conversions::to_string_t(U("code")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code")))) { utility::string_t refVal_setCode; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("code"))), - refVal_setCode); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code"))), refVal_setCode); setCode(refVal_setCode); } - if (multipart->hasContent(utility::conversions::to_string_t(U("username")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("username")))) { utility::string_t refVal_setUsername; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("username"))), refVal_setUsername); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("username"))), + refVal_setUsername); setUsername(refVal_setUsername); } - if (multipart->hasContent(utility::conversions::to_string_t(U("password")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("password")))) { utility::string_t refVal_setPassword; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("password"))), refVal_setPassword); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("password"))), + refVal_setPassword); setPassword(refVal_setPassword); } - if (multipart->hasContent(utility::conversions::to_string_t(U("refresh_token")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("refresh_token")))) { utility::string_t refVal_setRefreshToken; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("refresh_token"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("refresh_token"))), refVal_setRefreshToken); setRefreshToken(refVal_setRefreshToken); } - if (multipart->hasContent(utility::conversions::to_string_t(U("client_id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("client_id")))) { utility::string_t refVal_setClientId; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("client_id"))), refVal_setClientId); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("client_id"))), + refVal_setClientId); setClientId(refVal_setClientId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("redirect_uri")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("redirect_uri")))) { utility::string_t refVal_setRedirectUri; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("redirect_uri"))), refVal_setRedirectUri); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("redirect_uri"))), + refVal_setRedirectUri); setRedirectUri(refVal_setRedirectUri); } - if (multipart->hasContent(utility::conversions::to_string_t(U("code_verifier")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("code_verifier")))) { utility::string_t refVal_setCodeVerifier; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("code_verifier"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("code_verifier"))), refVal_setCodeVerifier); setCodeVerifier(refVal_setCodeVerifier); } diff --git a/src/model/TokenResponse.cpp b/src/model/TokenResponse.cpp index c5bc1808..51b6c6c9 100644 --- a/src/model/TokenResponse.cpp +++ b/src/model/TokenResponse.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -47,32 +47,32 @@ namespace tribufu if (m_Token_typeIsSet) { - val[utility::conversions::to_string_t(U("token_type"))] = ModelBase::toJson(m_Token_type); + val[utility::conversions::to_string_t(_XPLATSTR("token_type"))] = ModelBase::toJson(m_Token_type); } if (m_Access_tokenIsSet) { - val[utility::conversions::to_string_t(U("access_token"))] = ModelBase::toJson(m_Access_token); + val[utility::conversions::to_string_t(_XPLATSTR("access_token"))] = ModelBase::toJson(m_Access_token); } if (m_Refresh_tokenIsSet) { - val[utility::conversions::to_string_t(U("refresh_token"))] = ModelBase::toJson(m_Refresh_token); + val[utility::conversions::to_string_t(_XPLATSTR("refresh_token"))] = ModelBase::toJson(m_Refresh_token); } if (m_ScopeIsSet) { - val[utility::conversions::to_string_t(U("scope"))] = ModelBase::toJson(m_Scope); + val[utility::conversions::to_string_t(_XPLATSTR("scope"))] = ModelBase::toJson(m_Scope); } if (m_StateIsSet) { - val[utility::conversions::to_string_t(U("state"))] = ModelBase::toJson(m_State); + val[utility::conversions::to_string_t(_XPLATSTR("state"))] = ModelBase::toJson(m_State); } if (m_Expires_inIsSet) { - val[utility::conversions::to_string_t(U("expires_in"))] = ModelBase::toJson(m_Expires_in); + val[utility::conversions::to_string_t(_XPLATSTR("expires_in"))] = ModelBase::toJson(m_Expires_in); } return val; @@ -81,9 +81,9 @@ namespace tribufu bool TokenResponse::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("token_type")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("token_type")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("token_type"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("token_type"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setTokenType; @@ -91,9 +91,10 @@ namespace tribufu setTokenType(refVal_setTokenType); } } - if (val.has_field(utility::conversions::to_string_t(U("access_token")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("access_token")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("access_token"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("access_token"))); if (!fieldValue.is_null()) { utility::string_t refVal_setAccessToken; @@ -101,9 +102,10 @@ namespace tribufu setAccessToken(refVal_setAccessToken); } } - if (val.has_field(utility::conversions::to_string_t(U("refresh_token")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("refresh_token")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("refresh_token"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("refresh_token"))); if (!fieldValue.is_null()) { utility::string_t refVal_setRefreshToken; @@ -111,9 +113,9 @@ namespace tribufu setRefreshToken(refVal_setRefreshToken); } } - if (val.has_field(utility::conversions::to_string_t(U("scope")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("scope")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("scope"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("scope"))); if (!fieldValue.is_null()) { utility::string_t refVal_setScope; @@ -121,9 +123,9 @@ namespace tribufu setScope(refVal_setScope); } } - if (val.has_field(utility::conversions::to_string_t(U("state")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("state")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("state"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("state"))); if (!fieldValue.is_null()) { utility::string_t refVal_setState; @@ -131,9 +133,9 @@ namespace tribufu setState(refVal_setState); } } - if (val.has_field(utility::conversions::to_string_t(U("expires_in")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("expires_in")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("expires_in"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("expires_in"))); if (!fieldValue.is_null()) { int64_t refVal_setExpiresIn; @@ -149,39 +151,39 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_Token_typeIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("token_type")), - m_Token_type)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("token_type")), m_Token_type)); } if (m_Access_tokenIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("access_token")), m_Access_token)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("access_token")), m_Access_token)); } if (m_Refresh_tokenIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("refresh_token")), m_Refresh_token)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("refresh_token")), m_Refresh_token)); } if (m_ScopeIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("scope")), m_Scope)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("scope")), m_Scope)); } if (m_StateIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("state")), m_State)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("state")), m_State)); } if (m_Expires_inIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("expires_in")), - m_Expires_in)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("expires_in")), m_Expires_in)); } } @@ -190,52 +192,55 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("token_type")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("token_type")))) { std::shared_ptr refVal_setTokenType; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("token_type"))), refVal_setTokenType); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("token_type"))), + refVal_setTokenType); setTokenType(refVal_setTokenType); } - if (multipart->hasContent(utility::conversions::to_string_t(U("access_token")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("access_token")))) { utility::string_t refVal_setAccessToken; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("access_token"))), refVal_setAccessToken); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("access_token"))), + refVal_setAccessToken); setAccessToken(refVal_setAccessToken); } - if (multipart->hasContent(utility::conversions::to_string_t(U("refresh_token")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("refresh_token")))) { utility::string_t refVal_setRefreshToken; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("refresh_token"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("refresh_token"))), refVal_setRefreshToken); setRefreshToken(refVal_setRefreshToken); } - if (multipart->hasContent(utility::conversions::to_string_t(U("scope")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("scope")))) { utility::string_t refVal_setScope; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("scope"))), - refVal_setScope); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("scope"))), refVal_setScope); setScope(refVal_setScope); } - if (multipart->hasContent(utility::conversions::to_string_t(U("state")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("state")))) { utility::string_t refVal_setState; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("state"))), - refVal_setState); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("state"))), refVal_setState); setState(refVal_setState); } - if (multipart->hasContent(utility::conversions::to_string_t(U("expires_in")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("expires_in")))) { int64_t refVal_setExpiresIn; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("expires_in"))), refVal_setExpiresIn); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("expires_in"))), + refVal_setExpiresIn); setExpiresIn(refVal_setExpiresIn); } return ok; diff --git a/src/model/TokenType.cpp b/src/model/TokenType.cpp index 25006c34..3e847d0e 100644 --- a/src/model/TokenType.cpp +++ b/src/model/TokenType.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,7 +23,7 @@ namespace tribufu TokenType::eTokenType toEnum(const EnumUnderlyingType &val) { - if (val == utility::conversions::to_string_t(U("bearer"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("bearer"))) return TokenType::eTokenType::TokenType_BEARER; return {}; } @@ -33,7 +33,7 @@ namespace tribufu switch (e) { case TokenType::eTokenType::TokenType_BEARER: - return U("bearer"); + return _XPLATSTR("bearer"); default: break; } @@ -69,9 +69,9 @@ namespace tribufu void TokenType::toMultipart(std::shared_ptr multipart, const utility::string_t &prefix) const { utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } auto e = fromEnum(m_value); @@ -82,9 +82,9 @@ namespace tribufu { bool ok = true; utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } { EnumUnderlyingType e; @@ -108,5 +108,10 @@ namespace tribufu m_value = value; } + TokenType::TokenType(utility::string_t str) + { + setValue(strToEnumMap[str]); + } + } } diff --git a/src/model/UpdateProfile.cpp b/src/model/UpdateProfile.cpp index 9adf890c..b6615d5e 100644 --- a/src/model/UpdateProfile.cpp +++ b/src/model/UpdateProfile.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,12 +40,12 @@ namespace tribufu if (m_Display_nameIsSet) { - val[utility::conversions::to_string_t(U("display_name"))] = ModelBase::toJson(m_Display_name); + val[utility::conversions::to_string_t(_XPLATSTR("display_name"))] = ModelBase::toJson(m_Display_name); } if (m_BiographyIsSet) { - val[utility::conversions::to_string_t(U("biography"))] = ModelBase::toJson(m_Biography); + val[utility::conversions::to_string_t(_XPLATSTR("biography"))] = ModelBase::toJson(m_Biography); } return val; @@ -54,9 +54,10 @@ namespace tribufu bool UpdateProfile::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("display_name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("display_name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("display_name"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("display_name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDisplayName; @@ -64,9 +65,9 @@ namespace tribufu setDisplayName(refVal_setDisplayName); } } - if (val.has_field(utility::conversions::to_string_t(U("biography")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("biography")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("biography"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("biography"))); if (!fieldValue.is_null()) { utility::string_t refVal_setBiography; @@ -82,19 +83,19 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_Display_nameIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("display_name")), m_Display_name)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("display_name")), m_Display_name)); } if (m_BiographyIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("biography")), - m_Biography)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("biography")), m_Biography)); } } @@ -103,23 +104,25 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("display_name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("display_name")))) { utility::string_t refVal_setDisplayName; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("display_name"))), refVal_setDisplayName); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("display_name"))), + refVal_setDisplayName); setDisplayName(refVal_setDisplayName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("biography")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("biography")))) { utility::string_t refVal_setBiography; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("biography"))), refVal_setBiography); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("biography"))), + refVal_setBiography); setBiography(refVal_setBiography); } return ok; diff --git a/src/model/UserInfo.cpp b/src/model/UserInfo.cpp index 3cb16305..9a44e9f3 100644 --- a/src/model/UserInfo.cpp +++ b/src/model/UserInfo.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -84,127 +84,128 @@ namespace tribufu if (m_IdIsSet) { - val[utility::conversions::to_string_t(U("id"))] = ModelBase::toJson(m_Id); + val[utility::conversions::to_string_t(_XPLATSTR("id"))] = ModelBase::toJson(m_Id); } if (m_UuidIsSet) { - val[utility::conversions::to_string_t(U("uuid"))] = ModelBase::toJson(m_Uuid); + val[utility::conversions::to_string_t(_XPLATSTR("uuid"))] = ModelBase::toJson(m_Uuid); } if (m_NameIsSet) { - val[utility::conversions::to_string_t(U("name"))] = ModelBase::toJson(m_Name); + val[utility::conversions::to_string_t(_XPLATSTR("name"))] = ModelBase::toJson(m_Name); } if (m_Display_nameIsSet) { - val[utility::conversions::to_string_t(U("display_name"))] = ModelBase::toJson(m_Display_name); + val[utility::conversions::to_string_t(_XPLATSTR("display_name"))] = ModelBase::toJson(m_Display_name); } if (m_EmailIsSet) { - val[utility::conversions::to_string_t(U("email"))] = ModelBase::toJson(m_Email); + val[utility::conversions::to_string_t(_XPLATSTR("email"))] = ModelBase::toJson(m_Email); } if (m_TypeIsSet) { - val[utility::conversions::to_string_t(U("type"))] = ModelBase::toJson(m_Type); + val[utility::conversions::to_string_t(_XPLATSTR("type"))] = ModelBase::toJson(m_Type); } if (m_FlagsIsSet) { - val[utility::conversions::to_string_t(U("flags"))] = ModelBase::toJson(m_Flags); + val[utility::conversions::to_string_t(_XPLATSTR("flags"))] = ModelBase::toJson(m_Flags); } if (m_PermissionsIsSet) { - val[utility::conversions::to_string_t(U("permissions"))] = ModelBase::toJson(m_Permissions); + val[utility::conversions::to_string_t(_XPLATSTR("permissions"))] = ModelBase::toJson(m_Permissions); } if (m_VerifiedIsSet) { - val[utility::conversions::to_string_t(U("verified"))] = ModelBase::toJson(m_Verified); + val[utility::conversions::to_string_t(_XPLATSTR("verified"))] = ModelBase::toJson(m_Verified); } if (m_LevelIsSet) { - val[utility::conversions::to_string_t(U("level"))] = ModelBase::toJson(m_Level); + val[utility::conversions::to_string_t(_XPLATSTR("level"))] = ModelBase::toJson(m_Level); } if (m_ExperienceIsSet) { - val[utility::conversions::to_string_t(U("experience"))] = ModelBase::toJson(m_Experience); + val[utility::conversions::to_string_t(_XPLATSTR("experience"))] = ModelBase::toJson(m_Experience); } if (m_Public_birthdayIsSet) { - val[utility::conversions::to_string_t(U("public_birthday"))] = ModelBase::toJson(m_Public_birthday); + val[utility::conversions::to_string_t(_XPLATSTR("public_birthday"))] = + ModelBase::toJson(m_Public_birthday); } if (m_BirthdayIsSet) { - val[utility::conversions::to_string_t(U("birthday"))] = ModelBase::toJson(m_Birthday); + val[utility::conversions::to_string_t(_XPLATSTR("birthday"))] = ModelBase::toJson(m_Birthday); } if (m_PointsIsSet) { - val[utility::conversions::to_string_t(U("points"))] = ModelBase::toJson(m_Points); + val[utility::conversions::to_string_t(_XPLATSTR("points"))] = ModelBase::toJson(m_Points); } if (m_LocationIsSet) { - val[utility::conversions::to_string_t(U("location"))] = ModelBase::toJson(m_Location); + val[utility::conversions::to_string_t(_XPLATSTR("location"))] = ModelBase::toJson(m_Location); } if (m_LanguageIsSet) { - val[utility::conversions::to_string_t(U("language"))] = ModelBase::toJson(m_Language); + val[utility::conversions::to_string_t(_XPLATSTR("language"))] = ModelBase::toJson(m_Language); } if (m_TimezoneIsSet) { - val[utility::conversions::to_string_t(U("timezone"))] = ModelBase::toJson(m_Timezone); + val[utility::conversions::to_string_t(_XPLATSTR("timezone"))] = ModelBase::toJson(m_Timezone); } if (m_CurrencyIsSet) { - val[utility::conversions::to_string_t(U("currency"))] = ModelBase::toJson(m_Currency); + val[utility::conversions::to_string_t(_XPLATSTR("currency"))] = ModelBase::toJson(m_Currency); } if (m_Photo_urlIsSet) { - val[utility::conversions::to_string_t(U("photo_url"))] = ModelBase::toJson(m_Photo_url); + val[utility::conversions::to_string_t(_XPLATSTR("photo_url"))] = ModelBase::toJson(m_Photo_url); } if (m_Banner_urlIsSet) { - val[utility::conversions::to_string_t(U("banner_url"))] = ModelBase::toJson(m_Banner_url); + val[utility::conversions::to_string_t(_XPLATSTR("banner_url"))] = ModelBase::toJson(m_Banner_url); } if (m_Last_onlineIsSet) { - val[utility::conversions::to_string_t(U("last_online"))] = ModelBase::toJson(m_Last_online); + val[utility::conversions::to_string_t(_XPLATSTR("last_online"))] = ModelBase::toJson(m_Last_online); } if (m_BiographyIsSet) { - val[utility::conversions::to_string_t(U("biography"))] = ModelBase::toJson(m_Biography); + val[utility::conversions::to_string_t(_XPLATSTR("biography"))] = ModelBase::toJson(m_Biography); } if (m_View_countIsSet) { - val[utility::conversions::to_string_t(U("view_count"))] = ModelBase::toJson(m_View_count); + val[utility::conversions::to_string_t(_XPLATSTR("view_count"))] = ModelBase::toJson(m_View_count); } if (m_CreatedIsSet) { - val[utility::conversions::to_string_t(U("created"))] = ModelBase::toJson(m_Created); + val[utility::conversions::to_string_t(_XPLATSTR("created"))] = ModelBase::toJson(m_Created); } if (m_UpdatedIsSet) { - val[utility::conversions::to_string_t(U("updated"))] = ModelBase::toJson(m_Updated); + val[utility::conversions::to_string_t(_XPLATSTR("updated"))] = ModelBase::toJson(m_Updated); } return val; @@ -213,9 +214,9 @@ namespace tribufu bool UserInfo::fromJson(const web::json::value &val) { bool ok = true; - if (val.has_field(utility::conversions::to_string_t(U("id")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("id")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("id"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("id"))); if (!fieldValue.is_null()) { utility::string_t refVal_setId; @@ -223,9 +224,9 @@ namespace tribufu setId(refVal_setId); } } - if (val.has_field(utility::conversions::to_string_t(U("uuid")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("uuid")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("uuid"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("uuid"))); if (!fieldValue.is_null()) { utility::string_t refVal_setUuid; @@ -233,9 +234,9 @@ namespace tribufu setUuid(refVal_setUuid); } } - if (val.has_field(utility::conversions::to_string_t(U("name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("name"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setName; @@ -243,9 +244,10 @@ namespace tribufu setName(refVal_setName); } } - if (val.has_field(utility::conversions::to_string_t(U("display_name")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("display_name")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("display_name"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("display_name"))); if (!fieldValue.is_null()) { utility::string_t refVal_setDisplayName; @@ -253,9 +255,9 @@ namespace tribufu setDisplayName(refVal_setDisplayName); } } - if (val.has_field(utility::conversions::to_string_t(U("email")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("email")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("email"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("email"))); if (!fieldValue.is_null()) { utility::string_t refVal_setEmail; @@ -263,9 +265,9 @@ namespace tribufu setEmail(refVal_setEmail); } } - if (val.has_field(utility::conversions::to_string_t(U("type")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("type")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("type"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("type"))); if (!fieldValue.is_null()) { std::shared_ptr refVal_setType; @@ -273,9 +275,9 @@ namespace tribufu setType(refVal_setType); } } - if (val.has_field(utility::conversions::to_string_t(U("flags")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("flags")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("flags"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("flags"))); if (!fieldValue.is_null()) { utility::string_t refVal_setFlags; @@ -283,9 +285,10 @@ namespace tribufu setFlags(refVal_setFlags); } } - if (val.has_field(utility::conversions::to_string_t(U("permissions")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("permissions")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("permissions"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("permissions"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPermissions; @@ -293,9 +296,9 @@ namespace tribufu setPermissions(refVal_setPermissions); } } - if (val.has_field(utility::conversions::to_string_t(U("verified")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("verified")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("verified"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("verified"))); if (!fieldValue.is_null()) { bool refVal_setVerified; @@ -303,9 +306,9 @@ namespace tribufu setVerified(refVal_setVerified); } } - if (val.has_field(utility::conversions::to_string_t(U("level")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("level")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("level"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("level"))); if (!fieldValue.is_null()) { int32_t refVal_setLevel; @@ -313,9 +316,9 @@ namespace tribufu setLevel(refVal_setLevel); } } - if (val.has_field(utility::conversions::to_string_t(U("experience")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("experience")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("experience"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("experience"))); if (!fieldValue.is_null()) { double refVal_setExperience; @@ -323,9 +326,10 @@ namespace tribufu setExperience(refVal_setExperience); } } - if (val.has_field(utility::conversions::to_string_t(U("public_birthday")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("public_birthday")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("public_birthday"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("public_birthday"))); if (!fieldValue.is_null()) { bool refVal_setPublicBirthday; @@ -333,9 +337,9 @@ namespace tribufu setPublicBirthday(refVal_setPublicBirthday); } } - if (val.has_field(utility::conversions::to_string_t(U("birthday")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("birthday")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("birthday"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("birthday"))); if (!fieldValue.is_null()) { utility::datetime refVal_setBirthday; @@ -343,9 +347,9 @@ namespace tribufu setBirthday(refVal_setBirthday); } } - if (val.has_field(utility::conversions::to_string_t(U("points")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("points")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("points"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("points"))); if (!fieldValue.is_null()) { double refVal_setPoints; @@ -353,9 +357,9 @@ namespace tribufu setPoints(refVal_setPoints); } } - if (val.has_field(utility::conversions::to_string_t(U("location")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("location")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("location"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("location"))); if (!fieldValue.is_null()) { utility::string_t refVal_setLocation; @@ -363,9 +367,9 @@ namespace tribufu setLocation(refVal_setLocation); } } - if (val.has_field(utility::conversions::to_string_t(U("language")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("language")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("language"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("language"))); if (!fieldValue.is_null()) { utility::string_t refVal_setLanguage; @@ -373,9 +377,9 @@ namespace tribufu setLanguage(refVal_setLanguage); } } - if (val.has_field(utility::conversions::to_string_t(U("timezone")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("timezone")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("timezone"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("timezone"))); if (!fieldValue.is_null()) { utility::string_t refVal_setTimezone; @@ -383,9 +387,9 @@ namespace tribufu setTimezone(refVal_setTimezone); } } - if (val.has_field(utility::conversions::to_string_t(U("currency")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("currency")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("currency"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("currency"))); if (!fieldValue.is_null()) { utility::string_t refVal_setCurrency; @@ -393,9 +397,9 @@ namespace tribufu setCurrency(refVal_setCurrency); } } - if (val.has_field(utility::conversions::to_string_t(U("photo_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("photo_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("photo_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("photo_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setPhotoUrl; @@ -403,9 +407,9 @@ namespace tribufu setPhotoUrl(refVal_setPhotoUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("banner_url")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("banner_url"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("banner_url"))); if (!fieldValue.is_null()) { utility::string_t refVal_setBannerUrl; @@ -413,9 +417,10 @@ namespace tribufu setBannerUrl(refVal_setBannerUrl); } } - if (val.has_field(utility::conversions::to_string_t(U("last_online")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("last_online")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("last_online"))); + const web::json::value &fieldValue = + val.at(utility::conversions::to_string_t(_XPLATSTR("last_online"))); if (!fieldValue.is_null()) { utility::datetime refVal_setLastOnline; @@ -423,9 +428,9 @@ namespace tribufu setLastOnline(refVal_setLastOnline); } } - if (val.has_field(utility::conversions::to_string_t(U("biography")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("biography")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("biography"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("biography"))); if (!fieldValue.is_null()) { utility::string_t refVal_setBiography; @@ -433,9 +438,9 @@ namespace tribufu setBiography(refVal_setBiography); } } - if (val.has_field(utility::conversions::to_string_t(U("view_count")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("view_count")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("view_count"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("view_count"))); if (!fieldValue.is_null()) { int32_t refVal_setViewCount; @@ -443,9 +448,9 @@ namespace tribufu setViewCount(refVal_setViewCount); } } - if (val.has_field(utility::conversions::to_string_t(U("created")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("created")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("created"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("created"))); if (!fieldValue.is_null()) { utility::datetime refVal_setCreated; @@ -453,9 +458,9 @@ namespace tribufu setCreated(refVal_setCreated); } } - if (val.has_field(utility::conversions::to_string_t(U("updated")))) + if (val.has_field(utility::conversions::to_string_t(_XPLATSTR("updated")))) { - const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(U("updated"))); + const web::json::value &fieldValue = val.at(utility::conversions::to_string_t(_XPLATSTR("updated"))); if (!fieldValue.is_null()) { utility::datetime refVal_setUpdated; @@ -470,133 +475,134 @@ namespace tribufu { utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } if (m_IdIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("id")), m_Id)); + multipart->add( + ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(_XPLATSTR("id")), m_Id)); } if (m_UuidIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("uuid")), m_Uuid)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("uuid")), m_Uuid)); } if (m_NameIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name)); } if (m_Display_nameIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("display_name")), m_Display_name)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("display_name")), m_Display_name)); } if (m_EmailIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("email")), m_Email)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email)); } if (m_TypeIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("type")), m_Type)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type)); } if (m_FlagsIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("flags")), m_Flags)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("flags")), m_Flags)); } if (m_PermissionsIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("permissions")), m_Permissions)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("permissions")), m_Permissions)); } if (m_VerifiedIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("verified")), - m_Verified)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified)); } if (m_LevelIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("level")), m_Level)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("level")), m_Level)); } if (m_ExperienceIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("experience")), - m_Experience)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("experience")), m_Experience)); } if (m_Public_birthdayIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("public_birthday")), m_Public_birthday)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("public_birthday")), m_Public_birthday)); } if (m_BirthdayIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("birthday")), - m_Birthday)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("birthday")), m_Birthday)); } if (m_PointsIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("points")), m_Points)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("points")), m_Points)); } if (m_LocationIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("location")), - m_Location)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("location")), m_Location)); } if (m_LanguageIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("language")), - m_Language)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("language")), m_Language)); } if (m_TimezoneIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("timezone")), - m_Timezone)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("timezone")), m_Timezone)); } if (m_CurrencyIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("currency")), - m_Currency)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("currency")), m_Currency)); } if (m_Photo_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("photo_url")), - m_Photo_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("photo_url")), m_Photo_url)); } if (m_Banner_urlIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("banner_url")), - m_Banner_url)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("banner_url")), m_Banner_url)); } if (m_Last_onlineIsSet) { multipart->add(ModelBase::toHttpContent( - namePrefix + utility::conversions::to_string_t(U("last_online")), m_Last_online)); + namePrefix + utility::conversions::to_string_t(_XPLATSTR("last_online")), m_Last_online)); } if (m_BiographyIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("biography")), - m_Biography)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("biography")), m_Biography)); } if (m_View_countIsSet) { - multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("view_count")), - m_View_count)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("view_count")), m_View_count)); } if (m_CreatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created)); } if (m_UpdatedIsSet) { - multipart->add( - ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated)); + multipart->add(ModelBase::toHttpContent( + namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated)); } } @@ -605,185 +611,199 @@ namespace tribufu bool ok = true; utility::string_t namePrefix = prefix; if (namePrefix.size() > 0 && - namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U("."))) + namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(_XPLATSTR("."))) { - namePrefix += utility::conversions::to_string_t(U(".")); + namePrefix += utility::conversions::to_string_t(_XPLATSTR(".")); } - if (multipart->hasContent(utility::conversions::to_string_t(U("id")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("id")))) { utility::string_t refVal_setId; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))), - refVal_setId); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId); setId(refVal_setId); } - if (multipart->hasContent(utility::conversions::to_string_t(U("uuid")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("uuid")))) { utility::string_t refVal_setUuid; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("uuid"))), - refVal_setUuid); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uuid"))), refVal_setUuid); setUuid(refVal_setUuid); } - if (multipart->hasContent(utility::conversions::to_string_t(U("name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("name")))) { utility::string_t refVal_setName; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))), - refVal_setName); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName); setName(refVal_setName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("display_name")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("display_name")))) { utility::string_t refVal_setDisplayName; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("display_name"))), refVal_setDisplayName); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("display_name"))), + refVal_setDisplayName); setDisplayName(refVal_setDisplayName); } - if (multipart->hasContent(utility::conversions::to_string_t(U("email")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("email")))) { utility::string_t refVal_setEmail; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("email"))), - refVal_setEmail); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("email"))), refVal_setEmail); setEmail(refVal_setEmail); } - if (multipart->hasContent(utility::conversions::to_string_t(U("type")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("type")))) { std::shared_ptr refVal_setType; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("type"))), - refVal_setType); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("type"))), refVal_setType); setType(refVal_setType); } - if (multipart->hasContent(utility::conversions::to_string_t(U("flags")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("flags")))) { utility::string_t refVal_setFlags; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("flags"))), - refVal_setFlags); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("flags"))), refVal_setFlags); setFlags(refVal_setFlags); } - if (multipart->hasContent(utility::conversions::to_string_t(U("permissions")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("permissions")))) { utility::string_t refVal_setPermissions; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("permissions"))), refVal_setPermissions); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("permissions"))), + refVal_setPermissions); setPermissions(refVal_setPermissions); } - if (multipart->hasContent(utility::conversions::to_string_t(U("verified")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("verified")))) { bool refVal_setVerified; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("verified"))), refVal_setVerified); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("verified"))), + refVal_setVerified); setVerified(refVal_setVerified); } - if (multipart->hasContent(utility::conversions::to_string_t(U("level")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("level")))) { int32_t refVal_setLevel; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("level"))), - refVal_setLevel); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("level"))), refVal_setLevel); setLevel(refVal_setLevel); } - if (multipart->hasContent(utility::conversions::to_string_t(U("experience")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("experience")))) { double refVal_setExperience; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("experience"))), refVal_setExperience); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("experience"))), + refVal_setExperience); setExperience(refVal_setExperience); } - if (multipart->hasContent(utility::conversions::to_string_t(U("public_birthday")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("public_birthday")))) { bool refVal_setPublicBirthday; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("public_birthday"))), + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("public_birthday"))), refVal_setPublicBirthday); setPublicBirthday(refVal_setPublicBirthday); } - if (multipart->hasContent(utility::conversions::to_string_t(U("birthday")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("birthday")))) { utility::datetime refVal_setBirthday; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("birthday"))), refVal_setBirthday); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("birthday"))), + refVal_setBirthday); setBirthday(refVal_setBirthday); } - if (multipart->hasContent(utility::conversions::to_string_t(U("points")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("points")))) { double refVal_setPoints; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("points"))), - refVal_setPoints); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("points"))), refVal_setPoints); setPoints(refVal_setPoints); } - if (multipart->hasContent(utility::conversions::to_string_t(U("location")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("location")))) { utility::string_t refVal_setLocation; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("location"))), refVal_setLocation); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("location"))), + refVal_setLocation); setLocation(refVal_setLocation); } - if (multipart->hasContent(utility::conversions::to_string_t(U("language")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("language")))) { utility::string_t refVal_setLanguage; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("language"))), refVal_setLanguage); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("language"))), + refVal_setLanguage); setLanguage(refVal_setLanguage); } - if (multipart->hasContent(utility::conversions::to_string_t(U("timezone")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("timezone")))) { utility::string_t refVal_setTimezone; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("timezone"))), refVal_setTimezone); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("timezone"))), + refVal_setTimezone); setTimezone(refVal_setTimezone); } - if (multipart->hasContent(utility::conversions::to_string_t(U("currency")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("currency")))) { utility::string_t refVal_setCurrency; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("currency"))), refVal_setCurrency); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("currency"))), + refVal_setCurrency); setCurrency(refVal_setCurrency); } - if (multipart->hasContent(utility::conversions::to_string_t(U("photo_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("photo_url")))) { utility::string_t refVal_setPhotoUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("photo_url"))), refVal_setPhotoUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("photo_url"))), + refVal_setPhotoUrl); setPhotoUrl(refVal_setPhotoUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("banner_url")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("banner_url")))) { utility::string_t refVal_setBannerUrl; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("banner_url"))), refVal_setBannerUrl); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("banner_url"))), + refVal_setBannerUrl); setBannerUrl(refVal_setBannerUrl); } - if (multipart->hasContent(utility::conversions::to_string_t(U("last_online")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("last_online")))) { utility::datetime refVal_setLastOnline; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("last_online"))), refVal_setLastOnline); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("last_online"))), + refVal_setLastOnline); setLastOnline(refVal_setLastOnline); } - if (multipart->hasContent(utility::conversions::to_string_t(U("biography")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("biography")))) { utility::string_t refVal_setBiography; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("biography"))), refVal_setBiography); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("biography"))), + refVal_setBiography); setBiography(refVal_setBiography); } - if (multipart->hasContent(utility::conversions::to_string_t(U("view_count")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("view_count")))) { int32_t refVal_setViewCount; ok &= ModelBase::fromHttpContent( - multipart->getContent(utility::conversions::to_string_t(U("view_count"))), refVal_setViewCount); + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("view_count"))), + refVal_setViewCount); setViewCount(refVal_setViewCount); } - if (multipart->hasContent(utility::conversions::to_string_t(U("created")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("created")))) { utility::datetime refVal_setCreated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))), - refVal_setCreated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated); setCreated(refVal_setCreated); } - if (multipart->hasContent(utility::conversions::to_string_t(U("updated")))) + if (multipart->hasContent(utility::conversions::to_string_t(_XPLATSTR("updated")))) { utility::datetime refVal_setUpdated; - ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))), - refVal_setUpdated); + ok &= ModelBase::fromHttpContent( + multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated); setUpdated(refVal_setUpdated); } return ok; diff --git a/src/model/UserType.cpp b/src/model/UserType.cpp index c01b0dbc..be5956e1 100644 --- a/src/model/UserType.cpp +++ b/src/model/UserType.cpp @@ -5,7 +5,7 @@ * The version of the OpenAPI document: 1.1.0 * Contact: contact@tribufu.com * - * NOTE: This class is auto generated by OpenAPI-Generator 7.12.0. + * NOTE: This class is auto generated by OpenAPI-Generator 7.14.0-SNAPSHOT. * https://openapi-generator.tech * Do not edit the class manually. */ @@ -23,9 +23,9 @@ namespace tribufu UserType::eUserType toEnum(const EnumUnderlyingType &val) { - if (val == utility::conversions::to_string_t(U("user"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("user"))) return UserType::eUserType::UserType_USER; - if (val == utility::conversions::to_string_t(U("bot"))) + if (val == utility::conversions::to_string_t(_XPLATSTR("bot"))) return UserType::eUserType::UserType_BOT; return {}; } @@ -35,9 +35,9 @@ namespace tribufu switch (e) { case UserType::eUserType::UserType_USER: - return U("user"); + return _XPLATSTR("user"); case UserType::eUserType::UserType_BOT: - return U("bot"); + return _XPLATSTR("bot"); default: break; } @@ -73,9 +73,9 @@ namespace tribufu void UserType::toMultipart(std::shared_ptr multipart, const utility::string_t &prefix) const { utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } auto e = fromEnum(m_value); @@ -86,9 +86,9 @@ namespace tribufu { bool ok = true; utility::string_t namePrefix = prefix; - if (!namePrefix.empty() && namePrefix.back() != U('.')) + if (!namePrefix.empty() && namePrefix.back() != _XPLATSTR('.')) { - namePrefix.push_back(U('.')); + namePrefix.push_back(_XPLATSTR('.')); } { EnumUnderlyingType e; @@ -112,5 +112,10 @@ namespace tribufu m_value = value; } + UserType::UserType(utility::string_t str) + { + setValue(strToEnumMap[str]); + } + } } diff --git a/vendor/openapi-generator/openapi-generator-cli.jar b/vendor/openapi-generator/openapi-generator-cli.jar index f373b7a9..939763e1 100644 Binary files a/vendor/openapi-generator/openapi-generator-cli.jar and b/vendor/openapi-generator/openapi-generator-cli.jar differ