Update openapi generator version

This commit is contained in:
2025-06-03 17:20:22 -03:00
parent 4ce994a111
commit 6c6221a436
107 changed files with 2874 additions and 2412 deletions

View File

@ -1 +1 @@
7.12.0
7.14.0-SNAPSHOT

View File

@ -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.
*/

View File

@ -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 <class T> static utility::string_t parameterToString(const std::vector<T> &value);
template <class T> static utility::string_t parameterToString(const std::shared_ptr<T> &value);

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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<eApplicationType, utility::string_t> enumToStrMap = {
{eApplicationType::ApplicationType_APPLICATION, "APPLICATION"},
{eApplicationType::ApplicationType_GAME, "GAME"}};
std::map<utility::string_t, eApplicationType> strToEnumMap = {
{"APPLICATION", eApplicationType::ApplicationType_APPLICATION},
{"GAME", eApplicationType::ApplicationType_GAME}};
};
}

View File

@ -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.
*/

View File

@ -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<eCodeChallengeMethod, utility::string_t> enumToStrMap = {
{eCodeChallengeMethod::CodeChallengeMethod_PLAIN, "PLAIN"},
{eCodeChallengeMethod::CodeChallengeMethod_S256, "S256"}};
std::map<utility::string_t, eCodeChallengeMethod> strToEnumMap = {
{"PLAIN", eCodeChallengeMethod::CodeChallengeMethod_PLAIN},
{"S256", eCodeChallengeMethod::CodeChallengeMethod_S256}};
};
}

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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<eGrantType, utility::string_t> 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<utility::string_t, eGrantType> strToEnumMap = {
{"AUTHORIZATION_CODE", eGrantType::GrantType_AUTHORIZATION_CODE},
{"CLIENT_CREDENTIALS", eGrantType::GrantType_CLIENT_CREDENTIALS},
{"PASSWORD", eGrantType::GrantType_PASSWORD},
{"REFRESH_TOKEN", eGrantType::GrantType_REFRESH_TOKEN}};
};
}

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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<eGroupRank, utility::string_t> enumToStrMap = {{eGroupRank::GroupRank_MEMBER, "MEMBER"},
{eGroupRank::GroupRank_LEADER, "LEADER"},
{eGroupRank::GroupRank_OWNER, "OWNER"}};
std::map<utility::string_t, eGroupRank> strToEnumMap = {{"MEMBER", eGroupRank::GroupRank_MEMBER},
{"LEADER", eGroupRank::GroupRank_LEADER},
{"OWNER", eGroupRank::GroupRank_OWNER}};
};
}

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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<eLeaderboardOrder, utility::string_t> enumToStrMap = {
{eLeaderboardOrder::LeaderboardOrder_LEVEL, "LEVEL"},
{eLeaderboardOrder::LeaderboardOrder_POINTS, "POINTS"}};
std::map<utility::string_t, eLeaderboardOrder> strToEnumMap = {
{"LEVEL", eLeaderboardOrder::LeaderboardOrder_LEVEL},
{"POINTS", eLeaderboardOrder::LeaderboardOrder_POINTS}};
};
}

View File

@ -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<eLoginProvider, utility::string_t> 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<utility::string_t, eLoginProvider> 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}};
};
}

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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<eResponseType, utility::string_t> enumToStrMap = {{eResponseType::ResponseType_CODE, "CODE"},
{eResponseType::ResponseType_TOKEN, "TOKEN"}};
std::map<utility::string_t, eResponseType> strToEnumMap = {{"CODE", eResponseType::ResponseType_CODE},
{"TOKEN", eResponseType::ResponseType_TOKEN}};
};
}

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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<eSearchType, utility::string_t> enumToStrMap = {{eSearchType::SearchType_USER, "USER"},
{eSearchType::SearchType_GROUP, "GROUP"},
{eSearchType::SearchType_SERVER, "SERVER"},
{eSearchType::SearchType_CLUSTER, "CLUSTER"}};
std::map<utility::string_t, eSearchType> strToEnumMap = {{"USER", eSearchType::SearchType_USER},
{"GROUP", eSearchType::SearchType_GROUP},
{"SERVER", eSearchType::SearchType_SERVER},
{"CLUSTER", eSearchType::SearchType_CLUSTER}};
};
}

View File

@ -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.
*/

View File

@ -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<eServerStatus, utility::string_t> enumToStrMap = {{eServerStatus::ServerStatus_UNKNOWN, "UNKNOWN"},
{eServerStatus::ServerStatus_OFFLINE, "OFFLINE"},
{eServerStatus::ServerStatus_ONLINE, "ONLINE"}};
std::map<utility::string_t, eServerStatus> strToEnumMap = {{"UNKNOWN", eServerStatus::ServerStatus_UNKNOWN},
{"OFFLINE", eServerStatus::ServerStatus_OFFLINE},
{"ONLINE", eServerStatus::ServerStatus_ONLINE}};
};
}

View File

@ -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.
*/

View File

@ -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<eTokenHintType, utility::string_t> enumToStrMap = {
{eTokenHintType::TokenHintType_ACCESS_TOKEN, "ACCESS_TOKEN"},
{eTokenHintType::TokenHintType_REFRESH_TOKEN, "REFRESH_TOKEN"}};
std::map<utility::string_t, eTokenHintType> strToEnumMap = {
{"ACCESS_TOKEN", eTokenHintType::TokenHintType_ACCESS_TOKEN},
{"REFRESH_TOKEN", eTokenHintType::TokenHintType_REFRESH_TOKEN}};
};
}

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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<eTokenType, utility::string_t> enumToStrMap = {{eTokenType::TokenType_BEARER, "BEARER"}};
std::map<utility::string_t, eTokenType> strToEnumMap = {{"BEARER", eTokenType::TokenType_BEARER}};
};
}

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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<eUserType, utility::string_t> enumToStrMap = {{eUserType::UserType_USER, "USER"},
{eUserType::UserType_BOT, "BOT"}};
std::map<utility::string_t, eUserType> strToEnumMap = {{"USER", eUserType::UserType_USER},
{"BOT", eUserType::UserType_BOT}};
};
}

View File

@ -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.
*/

View File

@ -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;

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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<LoginProvider> 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<AnyType> 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<LoginProvider> 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<AnyType> 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;

View File

@ -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<ApplicationType> 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<ApplicationType> 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;

View File

@ -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]);
}
}
}

View File

@ -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<ResponseType> 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<CodeChallengeMethod> 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<ResponseType> 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<CodeChallengeMethod> 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;

View File

@ -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]);
}
}
}

View File

@ -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;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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;

View File

@ -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<MultipartFormData> 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]);
}
}
}

View File

@ -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;

View File

@ -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<Group> 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<Application> 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<AnyType> 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<Group> 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<Application> 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<AnyType> 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;

View File

@ -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<GroupRank> 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<GroupRank> 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;

View File

@ -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<MultipartFormData> 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]);
}
}
}

View File

@ -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;

View File

@ -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<TokenHintType> 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<TokenHintType> 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);
}

View File

@ -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;

View File

@ -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;

View File

@ -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]);
}
}
}

View File

@ -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]);
}
}
}

View File

@ -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;

View File

@ -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<UserInfo> 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<UserInfo> 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;

View File

@ -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;

View File

@ -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;

View File

@ -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<AnyType> 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<AnyType> 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;

View File

@ -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<GroupRank> 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<GroupRank> 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;

View File

@ -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);
}

View File

@ -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;

View File

@ -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]);
}
}
}

View File

@ -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<TokenHintType> 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<TokenHintType> 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);
}

View File

@ -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<SearchType> 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<SearchType> 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;

View File

@ -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]);
}
}
}

View File

@ -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);
}

View File

@ -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]);
}
}
}

View File

@ -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<utility::string_t, double> 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<utility::string_t, double> 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;

View File

@ -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]);
}
}
}

Some files were not shown because too many files have changed in this diff Show More