mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-15 11:14:20 +00:00
Update openapi generator version
This commit is contained in:
@ -1 +1 @@
|
|||||||
7.12.0
|
7.14.0-SNAPSHOT
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -23,7 +23,7 @@
|
|||||||
#include "tribufu++/ApiException.h"
|
#include "tribufu++/ApiException.h"
|
||||||
#include "tribufu++/HttpContent.h"
|
#include "tribufu++/HttpContent.h"
|
||||||
#include "tribufu++/IHttpBody.h"
|
#include "tribufu++/IHttpBody.h"
|
||||||
|
#include "tribufu++/ModelBase.h"
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
#undef U
|
#undef U
|
||||||
#endif
|
#endif
|
||||||
@ -63,6 +63,7 @@ namespace tribufu
|
|||||||
static utility::string_t parameterToString(double value);
|
static utility::string_t parameterToString(double value);
|
||||||
static utility::string_t parameterToString(const utility::datetime &value);
|
static utility::string_t parameterToString(const utility::datetime &value);
|
||||||
static utility::string_t parameterToString(bool 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::vector<T> &value);
|
||||||
template <class T> static utility::string_t parameterToString(const std::shared_ptr<T> &value);
|
template <class T> static utility::string_t parameterToString(const std::shared_ptr<T> &value);
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,12 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ApplicationType();
|
ApplicationType();
|
||||||
|
ApplicationType(utility::string_t str);
|
||||||
|
operator utility::string_t() const
|
||||||
|
{
|
||||||
|
return enumToStrMap.at(getValue());
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~ApplicationType();
|
virtual ~ApplicationType();
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@ -56,6 +62,12 @@ namespace tribufu
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
eApplicationType m_value;
|
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}};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,12 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CodeChallengeMethod();
|
CodeChallengeMethod();
|
||||||
|
CodeChallengeMethod(utility::string_t str);
|
||||||
|
operator utility::string_t() const
|
||||||
|
{
|
||||||
|
return enumToStrMap.at(getValue());
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~CodeChallengeMethod();
|
virtual ~CodeChallengeMethod();
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@ -56,6 +62,12 @@ namespace tribufu
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
eCodeChallengeMethod m_value;
|
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}};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,12 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GrantType();
|
GrantType();
|
||||||
|
GrantType(utility::string_t str);
|
||||||
|
operator utility::string_t() const
|
||||||
|
{
|
||||||
|
return enumToStrMap.at(getValue());
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~GrantType();
|
virtual ~GrantType();
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@ -58,6 +64,16 @@ namespace tribufu
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
eGrantType m_value;
|
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}};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,12 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GroupRank();
|
GroupRank();
|
||||||
|
GroupRank(utility::string_t str);
|
||||||
|
operator utility::string_t() const
|
||||||
|
{
|
||||||
|
return enumToStrMap.at(getValue());
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~GroupRank();
|
virtual ~GroupRank();
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@ -57,6 +63,12 @@ namespace tribufu
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
eGroupRank m_value;
|
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}};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,12 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LeaderboardOrder();
|
LeaderboardOrder();
|
||||||
|
LeaderboardOrder(utility::string_t str);
|
||||||
|
operator utility::string_t() const
|
||||||
|
{
|
||||||
|
return enumToStrMap.at(getValue());
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~LeaderboardOrder();
|
virtual ~LeaderboardOrder();
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@ -56,6 +62,12 @@ namespace tribufu
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
eLeaderboardOrder m_value;
|
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}};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,12 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LoginProvider();
|
LoginProvider();
|
||||||
|
LoginProvider(utility::string_t str);
|
||||||
|
operator utility::string_t() const
|
||||||
|
{
|
||||||
|
return enumToStrMap.at(getValue());
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~LoginProvider();
|
virtual ~LoginProvider();
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@ -61,6 +67,22 @@ namespace tribufu
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
eLoginProvider m_value;
|
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}};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,12 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ResponseType();
|
ResponseType();
|
||||||
|
ResponseType(utility::string_t str);
|
||||||
|
operator utility::string_t() const
|
||||||
|
{
|
||||||
|
return enumToStrMap.at(getValue());
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~ResponseType();
|
virtual ~ResponseType();
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@ -56,6 +62,10 @@ namespace tribufu
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
eResponseType m_value;
|
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}};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,12 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SearchType();
|
SearchType();
|
||||||
|
SearchType(utility::string_t str);
|
||||||
|
operator utility::string_t() const
|
||||||
|
{
|
||||||
|
return enumToStrMap.at(getValue());
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~SearchType();
|
virtual ~SearchType();
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@ -58,6 +64,14 @@ namespace tribufu
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
eSearchType m_value;
|
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}};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,12 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ServerStatus();
|
ServerStatus();
|
||||||
|
ServerStatus(utility::string_t str);
|
||||||
|
operator utility::string_t() const
|
||||||
|
{
|
||||||
|
return enumToStrMap.at(getValue());
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~ServerStatus();
|
virtual ~ServerStatus();
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@ -57,6 +63,12 @@ namespace tribufu
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
eServerStatus m_value;
|
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}};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,12 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TokenHintType();
|
TokenHintType();
|
||||||
|
TokenHintType(utility::string_t str);
|
||||||
|
operator utility::string_t() const
|
||||||
|
{
|
||||||
|
return enumToStrMap.at(getValue());
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~TokenHintType();
|
virtual ~TokenHintType();
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@ -56,6 +62,12 @@ namespace tribufu
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
eTokenHintType m_value;
|
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}};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,12 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TokenType();
|
TokenType();
|
||||||
|
TokenType(utility::string_t str);
|
||||||
|
operator utility::string_t() const
|
||||||
|
{
|
||||||
|
return enumToStrMap.at(getValue());
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~TokenType();
|
virtual ~TokenType();
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@ -55,6 +61,8 @@ namespace tribufu
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
eTokenType m_value;
|
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}};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -30,6 +30,12 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
UserType();
|
UserType();
|
||||||
|
UserType(utility::string_t str);
|
||||||
|
operator utility::string_t() const
|
||||||
|
{
|
||||||
|
return enumToStrMap.at(getValue());
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~UserType();
|
virtual ~UserType();
|
||||||
|
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
@ -56,6 +62,10 @@ namespace tribufu
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
eUserType m_value;
|
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}};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* 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));
|
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)
|
utility::string_t ApiClient::parameterToString(bool value)
|
||||||
{
|
{
|
||||||
std::stringstream valueAsStringStream;
|
std::stringstream valueAsStringStream;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -50,42 +50,42 @@ namespace tribufu
|
|||||||
if (m_IdIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -94,9 +94,9 @@ namespace tribufu
|
|||||||
bool Account::fromJson(const web::json::value &val)
|
bool Account::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setId;
|
utility::string_t refVal_setId;
|
||||||
@ -104,9 +104,9 @@ namespace tribufu
|
|||||||
setId(refVal_setId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setName;
|
utility::string_t refVal_setName;
|
||||||
@ -114,9 +114,9 @@ namespace tribufu
|
|||||||
setName(refVal_setName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<LoginProvider> refVal_setProvider;
|
std::shared_ptr<LoginProvider> refVal_setProvider;
|
||||||
@ -124,9 +124,9 @@ namespace tribufu
|
|||||||
setProvider(refVal_setProvider);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setUserId;
|
utility::string_t refVal_setUserId;
|
||||||
@ -134,9 +134,9 @@ namespace tribufu
|
|||||||
setUserId(refVal_setUserId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
bool refVal_setAuthorized;
|
bool refVal_setAuthorized;
|
||||||
@ -144,9 +144,9 @@ namespace tribufu
|
|||||||
setAuthorized(refVal_setAuthorized);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<AnyType> refVal_setFields;
|
std::shared_ptr<AnyType> refVal_setFields;
|
||||||
@ -154,9 +154,9 @@ namespace tribufu
|
|||||||
setFields(refVal_setFields);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setCreated;
|
utility::datetime refVal_setCreated;
|
||||||
@ -164,9 +164,9 @@ namespace tribufu
|
|||||||
setCreated(refVal_setCreated);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setUpdated;
|
utility::datetime refVal_setUpdated;
|
||||||
@ -181,48 +181,49 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
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)
|
if (m_NameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name));
|
||||||
}
|
}
|
||||||
if (m_ProviderIsSet)
|
if (m_ProviderIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("provider")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Provider));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("provider")), m_Provider));
|
||||||
}
|
}
|
||||||
if (m_User_idIsSet)
|
if (m_User_idIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("user_id")), m_User_id));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("user_id")), m_User_id));
|
||||||
}
|
}
|
||||||
if (m_AuthorizedIsSet)
|
if (m_AuthorizedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("authorized")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Authorized));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("authorized")), m_Authorized));
|
||||||
}
|
}
|
||||||
if (m_FieldsIsSet)
|
if (m_FieldsIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("fields")), m_Fields));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("fields")), m_Fields));
|
||||||
}
|
}
|
||||||
if (m_CreatedIsSet)
|
if (m_CreatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created));
|
||||||
}
|
}
|
||||||
if (m_UpdatedIsSet)
|
if (m_UpdatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -231,65 +232,67 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId);
|
||||||
setId(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;
|
utility::string_t refVal_setName;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setName);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName);
|
||||||
setName(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;
|
std::shared_ptr<LoginProvider> refVal_setProvider;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setUserId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("user_id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUserId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user_id"))), refVal_setUserId);
|
||||||
setUserId(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;
|
bool refVal_setAuthorized;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
std::shared_ptr<AnyType> refVal_setFields;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("fields"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setFields);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("fields"))), refVal_setFields);
|
||||||
setFields(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;
|
utility::datetime refVal_setCreated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setCreated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated);
|
||||||
setCreated(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;
|
utility::datetime refVal_setUpdated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUpdated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated);
|
||||||
setUpdated(refVal_setUpdated);
|
setUpdated(refVal_setUpdated);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -75,102 +75,107 @@ namespace tribufu
|
|||||||
if (m_IdIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -179,9 +184,9 @@ namespace tribufu
|
|||||||
bool Application::fromJson(const web::json::value &val)
|
bool Application::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setId;
|
utility::string_t refVal_setId;
|
||||||
@ -189,9 +194,9 @@ namespace tribufu
|
|||||||
setId(refVal_setId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setName;
|
utility::string_t refVal_setName;
|
||||||
@ -199,9 +204,10 @@ namespace tribufu
|
|||||||
setName(refVal_setName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setDescription;
|
utility::string_t refVal_setDescription;
|
||||||
@ -209,9 +215,9 @@ namespace tribufu
|
|||||||
setDescription(refVal_setDescription);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<ApplicationType> refVal_setType;
|
std::shared_ptr<ApplicationType> refVal_setType;
|
||||||
@ -219,9 +225,10 @@ namespace tribufu
|
|||||||
setType(refVal_setType);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setOrganizationId;
|
utility::string_t refVal_setOrganizationId;
|
||||||
@ -229,9 +236,9 @@ namespace tribufu
|
|||||||
setOrganizationId(refVal_setOrganizationId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setIconUrl;
|
utility::string_t refVal_setIconUrl;
|
||||||
@ -239,9 +246,9 @@ namespace tribufu
|
|||||||
setIconUrl(refVal_setIconUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setBannerUrl;
|
utility::string_t refVal_setBannerUrl;
|
||||||
@ -249,9 +256,10 @@ namespace tribufu
|
|||||||
setBannerUrl(refVal_setBannerUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setCapsuleImageUrl;
|
utility::string_t refVal_setCapsuleImageUrl;
|
||||||
@ -259,9 +267,10 @@ namespace tribufu
|
|||||||
setCapsuleImageUrl(refVal_setCapsuleImageUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setLibraryImageUrl;
|
utility::string_t refVal_setLibraryImageUrl;
|
||||||
@ -269,9 +278,9 @@ namespace tribufu
|
|||||||
setLibraryImageUrl(refVal_setLibraryImageUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setParentId;
|
utility::string_t refVal_setParentId;
|
||||||
@ -279,9 +288,9 @@ namespace tribufu
|
|||||||
setParentId(refVal_setParentId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setSlug;
|
utility::string_t refVal_setSlug;
|
||||||
@ -289,9 +298,9 @@ namespace tribufu
|
|||||||
setSlug(refVal_setSlug);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setVisibility;
|
int32_t refVal_setVisibility;
|
||||||
@ -299,9 +308,9 @@ namespace tribufu
|
|||||||
setVisibility(refVal_setVisibility);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setPassword;
|
utility::string_t refVal_setPassword;
|
||||||
@ -309,9 +318,9 @@ namespace tribufu
|
|||||||
setPassword(refVal_setPassword);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setPrimary;
|
int32_t refVal_setPrimary;
|
||||||
@ -319,9 +328,9 @@ namespace tribufu
|
|||||||
setPrimary(refVal_setPrimary);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setUserCount;
|
int32_t refVal_setUserCount;
|
||||||
@ -329,9 +338,10 @@ namespace tribufu
|
|||||||
setUserCount(refVal_setUserCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setAchievementCount;
|
int32_t refVal_setAchievementCount;
|
||||||
@ -339,9 +349,10 @@ namespace tribufu
|
|||||||
setAchievementCount(refVal_setAchievementCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setBadgeCount;
|
int32_t refVal_setBadgeCount;
|
||||||
@ -349,9 +360,10 @@ namespace tribufu
|
|||||||
setBadgeCount(refVal_setBadgeCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setDownloadCount;
|
int32_t refVal_setDownloadCount;
|
||||||
@ -359,9 +371,9 @@ namespace tribufu
|
|||||||
setDownloadCount(refVal_setDownloadCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setCreated;
|
utility::datetime refVal_setCreated;
|
||||||
@ -369,9 +381,9 @@ namespace tribufu
|
|||||||
setCreated(refVal_setCreated);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setUpdated;
|
utility::datetime refVal_setUpdated;
|
||||||
@ -387,108 +399,112 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
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)
|
if (m_NameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name));
|
||||||
}
|
}
|
||||||
if (m_DescriptionIsSet)
|
if (m_DescriptionIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_TypeIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("type")), m_Type));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type));
|
||||||
}
|
}
|
||||||
if (m_Organization_idIsSet)
|
if (m_Organization_idIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Icon_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("icon_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Icon_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("icon_url")), m_Icon_url));
|
||||||
}
|
}
|
||||||
if (m_Banner_urlIsSet)
|
if (m_Banner_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("banner_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Banner_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("banner_url")), m_Banner_url));
|
||||||
}
|
}
|
||||||
if (m_Capsule_image_urlIsSet)
|
if (m_Capsule_image_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Library_image_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Parent_idIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("parent_id")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Parent_id));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("parent_id")), m_Parent_id));
|
||||||
}
|
}
|
||||||
if (m_SlugIsSet)
|
if (m_SlugIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("slug")), m_Slug));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("slug")), m_Slug));
|
||||||
}
|
}
|
||||||
if (m_VisibilityIsSet)
|
if (m_VisibilityIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("visibility")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Visibility));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("visibility")), m_Visibility));
|
||||||
}
|
}
|
||||||
if (m_PasswordIsSet)
|
if (m_PasswordIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("password")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Password));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("password")), m_Password));
|
||||||
}
|
}
|
||||||
if (m_PrimaryIsSet)
|
if (m_PrimaryIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("primary")), m_Primary));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("primary")), m_Primary));
|
||||||
}
|
}
|
||||||
if (m_User_countIsSet)
|
if (m_User_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("user_count")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_User_count));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("user_count")), m_User_count));
|
||||||
}
|
}
|
||||||
if (m_Achievement_countIsSet)
|
if (m_Achievement_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Badge_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Download_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_CreatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created));
|
||||||
}
|
}
|
||||||
if (m_UpdatedIsSet)
|
if (m_UpdatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -497,154 +513,161 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId);
|
||||||
setId(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;
|
utility::string_t refVal_setName;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setName);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName);
|
||||||
setName(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;
|
utility::string_t refVal_setDescription;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
std::shared_ptr<ApplicationType> refVal_setType;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("type"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setType);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("type"))), refVal_setType);
|
||||||
setType(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;
|
utility::string_t refVal_setOrganizationId;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setOrganizationId);
|
||||||
setOrganizationId(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;
|
utility::string_t refVal_setIconUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setBannerUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setCapsuleImageUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setCapsuleImageUrl);
|
||||||
setCapsuleImageUrl(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;
|
utility::string_t refVal_setLibraryImageUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setLibraryImageUrl);
|
||||||
setLibraryImageUrl(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;
|
utility::string_t refVal_setParentId;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setSlug;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("slug"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setSlug);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("slug"))), refVal_setSlug);
|
||||||
setSlug(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;
|
int32_t refVal_setVisibility;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setPassword;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setPrimary;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("primary"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setPrimary);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("primary"))), refVal_setPrimary);
|
||||||
setPrimary(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;
|
int32_t refVal_setUserCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setAchievementCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setAchievementCount);
|
||||||
setAchievementCount(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;
|
int32_t refVal_setBadgeCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setDownloadCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setDownloadCount);
|
||||||
setDownloadCount(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;
|
utility::datetime refVal_setCreated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setCreated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated);
|
||||||
setCreated(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;
|
utility::datetime refVal_setUpdated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUpdated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated);
|
||||||
setUpdated(refVal_setUpdated);
|
setUpdated(refVal_setUpdated);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -23,9 +23,9 @@ namespace tribufu
|
|||||||
|
|
||||||
ApplicationType::eApplicationType toEnum(const EnumUnderlyingType &val)
|
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;
|
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 ApplicationType::eApplicationType::ApplicationType_GAME;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@ -35,9 +35,9 @@ namespace tribufu
|
|||||||
switch (e)
|
switch (e)
|
||||||
{
|
{
|
||||||
case ApplicationType::eApplicationType::ApplicationType_APPLICATION:
|
case ApplicationType::eApplicationType::ApplicationType_APPLICATION:
|
||||||
return U("application");
|
return _XPLATSTR("application");
|
||||||
case ApplicationType::eApplicationType::ApplicationType_GAME:
|
case ApplicationType::eApplicationType::ApplicationType_GAME:
|
||||||
return U("game");
|
return _XPLATSTR("game");
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -74,9 +74,9 @@ namespace tribufu
|
|||||||
const utility::string_t &prefix) const
|
const utility::string_t &prefix) const
|
||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
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);
|
auto e = fromEnum(m_value);
|
||||||
@ -88,9 +88,9 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
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;
|
EnumUnderlyingType e;
|
||||||
@ -114,5 +114,10 @@ namespace tribufu
|
|||||||
m_value = value;
|
m_value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ApplicationType::ApplicationType(utility::string_t str)
|
||||||
|
{
|
||||||
|
setValue(strToEnumMap[str]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -48,38 +48,39 @@ namespace tribufu
|
|||||||
if (m_Response_typeIsSet)
|
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)
|
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)
|
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)
|
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);
|
ModelBase::toJson(m_Code_challenge_method);
|
||||||
}
|
}
|
||||||
if (m_Redirect_uriIsSet)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -88,9 +89,10 @@ namespace tribufu
|
|||||||
bool AuthorizeRequest::fromJson(const web::json::value &val)
|
bool AuthorizeRequest::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<ResponseType> refVal_setResponseType;
|
std::shared_ptr<ResponseType> refVal_setResponseType;
|
||||||
@ -98,9 +100,9 @@ namespace tribufu
|
|||||||
setResponseType(refVal_setResponseType);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setClientId;
|
utility::string_t refVal_setClientId;
|
||||||
@ -108,9 +110,10 @@ namespace tribufu
|
|||||||
setClientId(refVal_setClientId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setCodeChallenge;
|
utility::string_t refVal_setCodeChallenge;
|
||||||
@ -118,10 +121,10 @@ namespace tribufu
|
|||||||
setCodeChallenge(refVal_setCodeChallenge);
|
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 =
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<CodeChallengeMethod> refVal_setCodeChallengeMethod;
|
std::shared_ptr<CodeChallengeMethod> refVal_setCodeChallengeMethod;
|
||||||
@ -129,9 +132,10 @@ namespace tribufu
|
|||||||
setCodeChallengeMethod(refVal_setCodeChallengeMethod);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setRedirectUri;
|
utility::string_t refVal_setRedirectUri;
|
||||||
@ -139,9 +143,9 @@ namespace tribufu
|
|||||||
setRedirectUri(refVal_setRedirectUri);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setScope;
|
utility::string_t refVal_setScope;
|
||||||
@ -149,9 +153,9 @@ namespace tribufu
|
|||||||
setScope(refVal_setScope);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setState;
|
utility::string_t refVal_setState;
|
||||||
@ -167,45 +171,45 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_Response_typeIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Client_idIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("client_id")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Client_id));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("client_id")), m_Client_id));
|
||||||
}
|
}
|
||||||
if (m_Code_challengeIsSet)
|
if (m_Code_challengeIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Code_challenge_methodIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("code_challenge_method")),
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("code_challenge_method")),
|
||||||
m_Code_challenge_method));
|
m_Code_challenge_method));
|
||||||
}
|
}
|
||||||
if (m_Redirect_uriIsSet)
|
if (m_Redirect_uriIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_ScopeIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("scope")), m_Scope));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("scope")), m_Scope));
|
||||||
}
|
}
|
||||||
if (m_StateIsSet)
|
if (m_StateIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("state")), m_State));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("state")), m_State));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,61 +219,63 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
std::shared_ptr<ResponseType> refVal_setResponseType;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setResponseType);
|
||||||
setResponseType(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;
|
utility::string_t refVal_setClientId;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setCodeChallenge;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setCodeChallenge);
|
||||||
setCodeChallenge(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;
|
std::shared_ptr<CodeChallengeMethod> refVal_setCodeChallengeMethod;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setCodeChallengeMethod);
|
||||||
setCodeChallengeMethod(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;
|
utility::string_t refVal_setRedirectUri;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setScope;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("scope"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setScope);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("scope"))), refVal_setScope);
|
||||||
setScope(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;
|
utility::string_t refVal_setState;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("state"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setState);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("state"))), refVal_setState);
|
||||||
setState(refVal_setState);
|
setState(refVal_setState);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -23,9 +23,9 @@ namespace tribufu
|
|||||||
|
|
||||||
CodeChallengeMethod::eCodeChallengeMethod toEnum(const EnumUnderlyingType &val)
|
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;
|
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 CodeChallengeMethod::eCodeChallengeMethod::CodeChallengeMethod_S256;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@ -35,9 +35,9 @@ namespace tribufu
|
|||||||
switch (e)
|
switch (e)
|
||||||
{
|
{
|
||||||
case CodeChallengeMethod::eCodeChallengeMethod::CodeChallengeMethod_PLAIN:
|
case CodeChallengeMethod::eCodeChallengeMethod::CodeChallengeMethod_PLAIN:
|
||||||
return U("plain");
|
return _XPLATSTR("plain");
|
||||||
case CodeChallengeMethod::eCodeChallengeMethod::CodeChallengeMethod_S256:
|
case CodeChallengeMethod::eCodeChallengeMethod::CodeChallengeMethod_S256:
|
||||||
return U("S256");
|
return _XPLATSTR("S256");
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -74,9 +74,9 @@ namespace tribufu
|
|||||||
const utility::string_t &prefix) const
|
const utility::string_t &prefix) const
|
||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
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);
|
auto e = fromEnum(m_value);
|
||||||
@ -88,9 +88,9 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
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;
|
EnumUnderlyingType e;
|
||||||
@ -114,5 +114,10 @@ namespace tribufu
|
|||||||
m_value = value;
|
m_value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CodeChallengeMethod::CodeChallengeMethod(utility::string_t str)
|
||||||
|
{
|
||||||
|
setValue(strToEnumMap[str]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -40,12 +40,12 @@ namespace tribufu
|
|||||||
if (m_EncodedIsSet)
|
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)
|
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;
|
return val;
|
||||||
@ -54,9 +54,9 @@ namespace tribufu
|
|||||||
bool CryptoViewModel::fromJson(const web::json::value &val)
|
bool CryptoViewModel::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setEncoded;
|
utility::string_t refVal_setEncoded;
|
||||||
@ -64,9 +64,9 @@ namespace tribufu
|
|||||||
setEncoded(refVal_setEncoded);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setDecoded;
|
utility::string_t refVal_setDecoded;
|
||||||
@ -82,19 +82,19 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_EncodedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("encoded")), m_Encoded));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("encoded")), m_Encoded));
|
||||||
}
|
}
|
||||||
if (m_DecodedIsSet)
|
if (m_DecodedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("decoded")), m_Decoded));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("decoded")), m_Decoded));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,23 +104,23 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setEncoded;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("encoded"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setEncoded);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("encoded"))), refVal_setEncoded);
|
||||||
setEncoded(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;
|
utility::string_t refVal_setDecoded;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("decoded"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setDecoded);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("decoded"))), refVal_setDecoded);
|
||||||
setDecoded(refVal_setDecoded);
|
setDecoded(refVal_setDecoded);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -64,72 +64,74 @@ namespace tribufu
|
|||||||
if (m_IdIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -138,9 +140,9 @@ namespace tribufu
|
|||||||
bool GameServerCluster::fromJson(const web::json::value &val)
|
bool GameServerCluster::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setId;
|
utility::string_t refVal_setId;
|
||||||
@ -148,9 +150,9 @@ namespace tribufu
|
|||||||
setId(refVal_setId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setName;
|
utility::string_t refVal_setName;
|
||||||
@ -158,9 +160,10 @@ namespace tribufu
|
|||||||
setName(refVal_setName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setDescription;
|
utility::string_t refVal_setDescription;
|
||||||
@ -168,9 +171,9 @@ namespace tribufu
|
|||||||
setDescription(refVal_setDescription);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setGameId;
|
utility::string_t refVal_setGameId;
|
||||||
@ -178,9 +181,10 @@ namespace tribufu
|
|||||||
setGameId(refVal_setGameId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setWebsiteUrl;
|
utility::string_t refVal_setWebsiteUrl;
|
||||||
@ -188,9 +192,9 @@ namespace tribufu
|
|||||||
setWebsiteUrl(refVal_setWebsiteUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setBannerUrl;
|
utility::string_t refVal_setBannerUrl;
|
||||||
@ -198,9 +202,9 @@ namespace tribufu
|
|||||||
setBannerUrl(refVal_setBannerUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setOwnerId;
|
utility::string_t refVal_setOwnerId;
|
||||||
@ -208,9 +212,10 @@ namespace tribufu
|
|||||||
setOwnerId(refVal_setOwnerId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setDiscordServerId;
|
utility::string_t refVal_setDiscordServerId;
|
||||||
@ -218,9 +223,10 @@ namespace tribufu
|
|||||||
setDiscordServerId(refVal_setDiscordServerId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setYoutubeVideoUrl;
|
utility::string_t refVal_setYoutubeVideoUrl;
|
||||||
@ -228,9 +234,9 @@ namespace tribufu
|
|||||||
setYoutubeVideoUrl(refVal_setYoutubeVideoUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setTags;
|
utility::string_t refVal_setTags;
|
||||||
@ -238,9 +244,10 @@ namespace tribufu
|
|||||||
setTags(refVal_setTags);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setCommentCount;
|
int32_t refVal_setCommentCount;
|
||||||
@ -248,9 +255,10 @@ namespace tribufu
|
|||||||
setCommentCount(refVal_setCommentCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setServerCount;
|
int32_t refVal_setServerCount;
|
||||||
@ -258,9 +266,9 @@ namespace tribufu
|
|||||||
setServerCount(refVal_setServerCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setCreated;
|
utility::datetime refVal_setCreated;
|
||||||
@ -268,9 +276,9 @@ namespace tribufu
|
|||||||
setCreated(refVal_setCreated);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setUpdated;
|
utility::datetime refVal_setUpdated;
|
||||||
@ -286,78 +294,81 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
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)
|
if (m_NameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name));
|
||||||
}
|
}
|
||||||
if (m_DescriptionIsSet)
|
if (m_DescriptionIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Game_idIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("game_id")), m_Game_id));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("game_id")), m_Game_id));
|
||||||
}
|
}
|
||||||
if (m_Website_urlIsSet)
|
if (m_Website_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Banner_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("banner_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Banner_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("banner_url")), m_Banner_url));
|
||||||
}
|
}
|
||||||
if (m_Owner_idIsSet)
|
if (m_Owner_idIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("owner_id")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Owner_id));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("owner_id")), m_Owner_id));
|
||||||
}
|
}
|
||||||
if (m_Discord_server_idIsSet)
|
if (m_Discord_server_idIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Youtube_video_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_TagsIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("tags")), m_Tags));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("tags")), m_Tags));
|
||||||
}
|
}
|
||||||
if (m_Comment_countIsSet)
|
if (m_Comment_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Server_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_CreatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created));
|
||||||
}
|
}
|
||||||
if (m_UpdatedIsSet)
|
if (m_UpdatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -367,110 +378,114 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId);
|
||||||
setId(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;
|
utility::string_t refVal_setName;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setName);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName);
|
||||||
setName(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;
|
utility::string_t refVal_setDescription;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setGameId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("game_id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setGameId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("game_id"))), refVal_setGameId);
|
||||||
setGameId(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;
|
utility::string_t refVal_setWebsiteUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setBannerUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setOwnerId;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setDiscordServerId;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setDiscordServerId);
|
||||||
setDiscordServerId(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;
|
utility::string_t refVal_setYoutubeVideoUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setYoutubeVideoUrl);
|
||||||
setYoutubeVideoUrl(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;
|
utility::string_t refVal_setTags;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("tags"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setTags);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tags"))), refVal_setTags);
|
||||||
setTags(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;
|
int32_t refVal_setCommentCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setCommentCount);
|
||||||
setCommentCount(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;
|
int32_t refVal_setServerCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::datetime refVal_setCreated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setCreated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated);
|
||||||
setCreated(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;
|
utility::datetime refVal_setUpdated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUpdated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated);
|
||||||
setUpdated(refVal_setUpdated);
|
setUpdated(refVal_setUpdated);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -23,13 +23,13 @@ namespace tribufu
|
|||||||
|
|
||||||
GrantType::eGrantType toEnum(const EnumUnderlyingType &val)
|
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;
|
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;
|
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;
|
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 GrantType::eGrantType::GrantType_REFRESH_TOKEN;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@ -39,13 +39,13 @@ namespace tribufu
|
|||||||
switch (e)
|
switch (e)
|
||||||
{
|
{
|
||||||
case GrantType::eGrantType::GrantType_AUTHORIZATION_CODE:
|
case GrantType::eGrantType::GrantType_AUTHORIZATION_CODE:
|
||||||
return U("authorization_code");
|
return _XPLATSTR("authorization_code");
|
||||||
case GrantType::eGrantType::GrantType_CLIENT_CREDENTIALS:
|
case GrantType::eGrantType::GrantType_CLIENT_CREDENTIALS:
|
||||||
return U("client_credentials");
|
return _XPLATSTR("client_credentials");
|
||||||
case GrantType::eGrantType::GrantType_PASSWORD:
|
case GrantType::eGrantType::GrantType_PASSWORD:
|
||||||
return U("password");
|
return _XPLATSTR("password");
|
||||||
case GrantType::eGrantType::GrantType_REFRESH_TOKEN:
|
case GrantType::eGrantType::GrantType_REFRESH_TOKEN:
|
||||||
return U("refresh_token");
|
return _XPLATSTR("refresh_token");
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -81,9 +81,9 @@ namespace tribufu
|
|||||||
void GrantType::toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t &prefix) const
|
void GrantType::toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t &prefix) const
|
||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
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);
|
auto e = fromEnum(m_value);
|
||||||
@ -94,9 +94,9 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
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;
|
EnumUnderlyingType e;
|
||||||
@ -120,5 +120,10 @@ namespace tribufu
|
|||||||
m_value = value;
|
m_value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GrantType::GrantType(utility::string_t str)
|
||||||
|
{
|
||||||
|
setValue(strToEnumMap[str]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -68,82 +68,83 @@ namespace tribufu
|
|||||||
if (m_IdIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -152,9 +153,9 @@ namespace tribufu
|
|||||||
bool Group::fromJson(const web::json::value &val)
|
bool Group::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setId;
|
utility::string_t refVal_setId;
|
||||||
@ -162,9 +163,9 @@ namespace tribufu
|
|||||||
setId(refVal_setId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setUuid;
|
utility::string_t refVal_setUuid;
|
||||||
@ -172,9 +173,9 @@ namespace tribufu
|
|||||||
setUuid(refVal_setUuid);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setName;
|
utility::string_t refVal_setName;
|
||||||
@ -182,9 +183,9 @@ namespace tribufu
|
|||||||
setName(refVal_setName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setTag;
|
utility::string_t refVal_setTag;
|
||||||
@ -192,9 +193,10 @@ namespace tribufu
|
|||||||
setTag(refVal_setTag);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setDescription;
|
utility::string_t refVal_setDescription;
|
||||||
@ -202,9 +204,9 @@ namespace tribufu
|
|||||||
setDescription(refVal_setDescription);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setType;
|
int32_t refVal_setType;
|
||||||
@ -212,9 +214,9 @@ namespace tribufu
|
|||||||
setType(refVal_setType);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setPrivacy;
|
int32_t refVal_setPrivacy;
|
||||||
@ -222,9 +224,9 @@ namespace tribufu
|
|||||||
setPrivacy(refVal_setPrivacy);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setOwnerId;
|
utility::string_t refVal_setOwnerId;
|
||||||
@ -232,9 +234,9 @@ namespace tribufu
|
|||||||
setOwnerId(refVal_setOwnerId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
bool refVal_setVerified;
|
bool refVal_setVerified;
|
||||||
@ -242,9 +244,9 @@ namespace tribufu
|
|||||||
setVerified(refVal_setVerified);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setPhotoUrl;
|
utility::string_t refVal_setPhotoUrl;
|
||||||
@ -252,9 +254,9 @@ namespace tribufu
|
|||||||
setPhotoUrl(refVal_setPhotoUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setBannerUrl;
|
utility::string_t refVal_setBannerUrl;
|
||||||
@ -262,9 +264,10 @@ namespace tribufu
|
|||||||
setBannerUrl(refVal_setBannerUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setMemberCount;
|
int32_t refVal_setMemberCount;
|
||||||
@ -272,9 +275,10 @@ namespace tribufu
|
|||||||
setMemberCount(refVal_setMemberCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setFollowerCount;
|
int32_t refVal_setFollowerCount;
|
||||||
@ -282,9 +286,9 @@ namespace tribufu
|
|||||||
setFollowerCount(refVal_setFollowerCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setViewCount;
|
int32_t refVal_setViewCount;
|
||||||
@ -292,9 +296,9 @@ namespace tribufu
|
|||||||
setViewCount(refVal_setViewCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setCreated;
|
utility::datetime refVal_setCreated;
|
||||||
@ -302,9 +306,9 @@ namespace tribufu
|
|||||||
setCreated(refVal_setCreated);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setUpdated;
|
utility::datetime refVal_setUpdated;
|
||||||
@ -319,88 +323,89 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
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)
|
if (m_UuidIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("uuid")), m_Uuid));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("uuid")), m_Uuid));
|
||||||
}
|
}
|
||||||
if (m_NameIsSet)
|
if (m_NameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name));
|
||||||
}
|
}
|
||||||
if (m_TagIsSet)
|
if (m_TagIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
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)
|
if (m_DescriptionIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_TypeIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("type")), m_Type));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type));
|
||||||
}
|
}
|
||||||
if (m_PrivacyIsSet)
|
if (m_PrivacyIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("privacy")), m_Privacy));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("privacy")), m_Privacy));
|
||||||
}
|
}
|
||||||
if (m_Owner_idIsSet)
|
if (m_Owner_idIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("owner_id")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Owner_id));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("owner_id")), m_Owner_id));
|
||||||
}
|
}
|
||||||
if (m_VerifiedIsSet)
|
if (m_VerifiedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("verified")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Verified));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified));
|
||||||
}
|
}
|
||||||
if (m_Photo_urlIsSet)
|
if (m_Photo_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("photo_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Photo_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("photo_url")), m_Photo_url));
|
||||||
}
|
}
|
||||||
if (m_Banner_urlIsSet)
|
if (m_Banner_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("banner_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Banner_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("banner_url")), m_Banner_url));
|
||||||
}
|
}
|
||||||
if (m_Member_countIsSet)
|
if (m_Member_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Follower_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_View_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("view_count")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_View_count));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("view_count")), m_View_count));
|
||||||
}
|
}
|
||||||
if (m_CreatedIsSet)
|
if (m_CreatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created));
|
||||||
}
|
}
|
||||||
if (m_UpdatedIsSet)
|
if (m_UpdatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -409,122 +414,128 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId);
|
||||||
setId(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;
|
utility::string_t refVal_setUuid;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("uuid"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUuid);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uuid"))), refVal_setUuid);
|
||||||
setUuid(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;
|
utility::string_t refVal_setName;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setName);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName);
|
||||||
setName(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;
|
utility::string_t refVal_setTag;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("tag"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setTag);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tag"))), refVal_setTag);
|
||||||
setTag(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;
|
utility::string_t refVal_setDescription;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setType;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("type"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setType);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("type"))), refVal_setType);
|
||||||
setType(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;
|
int32_t refVal_setPrivacy;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("privacy"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setPrivacy);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("privacy"))), refVal_setPrivacy);
|
||||||
setPrivacy(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;
|
utility::string_t refVal_setOwnerId;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
bool refVal_setVerified;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setPhotoUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setBannerUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setMemberCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setFollowerCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setFollowerCount);
|
||||||
setFollowerCount(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;
|
int32_t refVal_setViewCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::datetime refVal_setCreated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setCreated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated);
|
||||||
setCreated(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;
|
utility::datetime refVal_setUpdated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUpdated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated);
|
||||||
setUpdated(refVal_setUpdated);
|
setUpdated(refVal_setUpdated);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -47,37 +47,38 @@ namespace tribufu
|
|||||||
if (m_Group_idIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -86,9 +87,9 @@ namespace tribufu
|
|||||||
bool GroupGame::fromJson(const web::json::value &val)
|
bool GroupGame::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setGroupId;
|
utility::string_t refVal_setGroupId;
|
||||||
@ -96,9 +97,9 @@ namespace tribufu
|
|||||||
setGroupId(refVal_setGroupId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<Group> refVal_setGroup;
|
std::shared_ptr<Group> refVal_setGroup;
|
||||||
@ -106,9 +107,10 @@ namespace tribufu
|
|||||||
setGroup(refVal_setGroup);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setApplicationId;
|
utility::string_t refVal_setApplicationId;
|
||||||
@ -116,9 +118,10 @@ namespace tribufu
|
|||||||
setApplicationId(refVal_setApplicationId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<Application> refVal_setApplication;
|
std::shared_ptr<Application> refVal_setApplication;
|
||||||
@ -126,9 +129,9 @@ namespace tribufu
|
|||||||
setApplication(refVal_setApplication);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<AnyType> refVal_setStats;
|
std::shared_ptr<AnyType> refVal_setStats;
|
||||||
@ -136,9 +139,9 @@ namespace tribufu
|
|||||||
setStats(refVal_setStats);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setAcquired;
|
utility::datetime refVal_setAcquired;
|
||||||
@ -146,9 +149,9 @@ namespace tribufu
|
|||||||
setAcquired(refVal_setAcquired);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setLastUsed;
|
utility::datetime refVal_setLastUsed;
|
||||||
@ -163,44 +166,44 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_Group_idIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("group_id")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Group_id));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("group_id")), m_Group_id));
|
||||||
}
|
}
|
||||||
if (m_GroupIsSet)
|
if (m_GroupIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("group")), m_Group));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("group")), m_Group));
|
||||||
}
|
}
|
||||||
if (m_Application_idIsSet)
|
if (m_Application_idIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_ApplicationIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_StatsIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("stats")), m_Stats));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("stats")), m_Stats));
|
||||||
}
|
}
|
||||||
if (m_AcquiredIsSet)
|
if (m_AcquiredIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("acquired")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Acquired));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("acquired")), m_Acquired));
|
||||||
}
|
}
|
||||||
if (m_Last_usedIsSet)
|
if (m_Last_usedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("last_used")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Last_used));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("last_used")), m_Last_used));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -209,59 +212,62 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setGroupId;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
std::shared_ptr<Group> refVal_setGroup;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("group"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setGroup);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("group"))), refVal_setGroup);
|
||||||
setGroup(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;
|
utility::string_t refVal_setApplicationId;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setApplicationId);
|
||||||
setApplicationId(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;
|
std::shared_ptr<Application> refVal_setApplication;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
std::shared_ptr<AnyType> refVal_setStats;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("stats"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setStats);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("stats"))), refVal_setStats);
|
||||||
setStats(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;
|
utility::datetime refVal_setAcquired;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::datetime refVal_setLastUsed;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
setLastUsed(refVal_setLastUsed);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -53,47 +53,47 @@ namespace tribufu
|
|||||||
if (m_IdIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -102,9 +102,9 @@ namespace tribufu
|
|||||||
bool GroupMember::fromJson(const web::json::value &val)
|
bool GroupMember::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setId;
|
utility::string_t refVal_setId;
|
||||||
@ -112,9 +112,9 @@ namespace tribufu
|
|||||||
setId(refVal_setId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setUuid;
|
utility::string_t refVal_setUuid;
|
||||||
@ -122,9 +122,9 @@ namespace tribufu
|
|||||||
setUuid(refVal_setUuid);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setName;
|
utility::string_t refVal_setName;
|
||||||
@ -132,9 +132,10 @@ namespace tribufu
|
|||||||
setName(refVal_setName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setDisplayName;
|
utility::string_t refVal_setDisplayName;
|
||||||
@ -142,9 +143,9 @@ namespace tribufu
|
|||||||
setDisplayName(refVal_setDisplayName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
bool refVal_setVerified;
|
bool refVal_setVerified;
|
||||||
@ -152,9 +153,9 @@ namespace tribufu
|
|||||||
setVerified(refVal_setVerified);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setPhotoUrl;
|
utility::string_t refVal_setPhotoUrl;
|
||||||
@ -162,9 +163,10 @@ namespace tribufu
|
|||||||
setPhotoUrl(refVal_setPhotoUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setLastOnline;
|
utility::datetime refVal_setLastOnline;
|
||||||
@ -172,9 +174,9 @@ namespace tribufu
|
|||||||
setLastOnline(refVal_setLastOnline);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<GroupRank> refVal_setRank;
|
std::shared_ptr<GroupRank> refVal_setRank;
|
||||||
@ -182,9 +184,9 @@ namespace tribufu
|
|||||||
setRank(refVal_setRank);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setSince;
|
utility::datetime refVal_setSince;
|
||||||
@ -200,53 +202,54 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
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)
|
if (m_UuidIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("uuid")), m_Uuid));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("uuid")), m_Uuid));
|
||||||
}
|
}
|
||||||
if (m_NameIsSet)
|
if (m_NameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name));
|
||||||
}
|
}
|
||||||
if (m_Display_nameIsSet)
|
if (m_Display_nameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_VerifiedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("verified")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Verified));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified));
|
||||||
}
|
}
|
||||||
if (m_Photo_urlIsSet)
|
if (m_Photo_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("photo_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Photo_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("photo_url")), m_Photo_url));
|
||||||
}
|
}
|
||||||
if (m_Last_onlineIsSet)
|
if (m_Last_onlineIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_RankIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("rank")), m_Rank));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("rank")), m_Rank));
|
||||||
}
|
}
|
||||||
if (m_SinceIsSet)
|
if (m_SinceIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("since")), m_Since));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("since")), m_Since));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -255,72 +258,76 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId);
|
||||||
setId(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;
|
utility::string_t refVal_setUuid;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("uuid"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUuid);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uuid"))), refVal_setUuid);
|
||||||
setUuid(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;
|
utility::string_t refVal_setName;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setName);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName);
|
||||||
setName(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;
|
utility::string_t refVal_setDisplayName;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
bool refVal_setVerified;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setPhotoUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::datetime refVal_setLastOnline;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
std::shared_ptr<GroupRank> refVal_setRank;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("rank"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setRank);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("rank"))), refVal_setRank);
|
||||||
setRank(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;
|
utility::datetime refVal_setSince;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("since"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setSince);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("since"))), refVal_setSince);
|
||||||
setSince(refVal_setSince);
|
setSince(refVal_setSince);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -23,11 +23,11 @@ namespace tribufu
|
|||||||
|
|
||||||
GroupRank::eGroupRank toEnum(const EnumUnderlyingType &val)
|
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;
|
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;
|
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 GroupRank::eGroupRank::GroupRank_OWNER;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@ -37,11 +37,11 @@ namespace tribufu
|
|||||||
switch (e)
|
switch (e)
|
||||||
{
|
{
|
||||||
case GroupRank::eGroupRank::GroupRank_MEMBER:
|
case GroupRank::eGroupRank::GroupRank_MEMBER:
|
||||||
return U("member");
|
return _XPLATSTR("member");
|
||||||
case GroupRank::eGroupRank::GroupRank_LEADER:
|
case GroupRank::eGroupRank::GroupRank_LEADER:
|
||||||
return U("leader");
|
return _XPLATSTR("leader");
|
||||||
case GroupRank::eGroupRank::GroupRank_OWNER:
|
case GroupRank::eGroupRank::GroupRank_OWNER:
|
||||||
return U("owner");
|
return _XPLATSTR("owner");
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -77,9 +77,9 @@ namespace tribufu
|
|||||||
void GroupRank::toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t &prefix) const
|
void GroupRank::toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t &prefix) const
|
||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
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);
|
auto e = fromEnum(m_value);
|
||||||
@ -90,9 +90,9 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
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;
|
EnumUnderlyingType e;
|
||||||
@ -116,5 +116,10 @@ namespace tribufu
|
|||||||
m_value = value;
|
m_value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GroupRank::GroupRank(utility::string_t str)
|
||||||
|
{
|
||||||
|
setValue(strToEnumMap[str]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -38,7 +38,7 @@ namespace tribufu
|
|||||||
if (m_ValueIsSet)
|
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;
|
return val;
|
||||||
@ -47,9 +47,9 @@ namespace tribufu
|
|||||||
bool HashViewModel::fromJson(const web::json::value &val)
|
bool HashViewModel::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setValue;
|
utility::string_t refVal_setValue;
|
||||||
@ -65,14 +65,14 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_ValueIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("value")), m_Value));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("value")), m_Value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,16 +81,16 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setValue;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("value"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setValue);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("value"))), refVal_setValue);
|
||||||
setValue(refVal_setValue);
|
setValue(refVal_setValue);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -39,12 +39,13 @@ namespace tribufu
|
|||||||
if (m_TokenIsSet)
|
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)
|
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;
|
return val;
|
||||||
@ -53,9 +54,9 @@ namespace tribufu
|
|||||||
bool IntrospectRequest::fromJson(const web::json::value &val)
|
bool IntrospectRequest::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setToken;
|
utility::string_t refVal_setToken;
|
||||||
@ -63,9 +64,10 @@ namespace tribufu
|
|||||||
setToken(refVal_setToken);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<TokenHintType> refVal_setTokenTypeHint;
|
std::shared_ptr<TokenHintType> refVal_setTokenTypeHint;
|
||||||
@ -81,19 +83,19 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_TokenIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("token")), m_Token));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("token")), m_Token));
|
||||||
}
|
}
|
||||||
if (m_Token_type_hintIsSet)
|
if (m_Token_type_hintIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setToken;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("token"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setToken);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("token"))), refVal_setToken);
|
||||||
setToken(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;
|
std::shared_ptr<TokenHintType> refVal_setTokenTypeHint;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setTokenTypeHint);
|
||||||
setTokenTypeHint(refVal_setTokenTypeHint);
|
setTokenTypeHint(refVal_setTokenTypeHint);
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -72,92 +72,92 @@ namespace tribufu
|
|||||||
if (m_AddressIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -166,9 +166,9 @@ namespace tribufu
|
|||||||
bool IpAddress::fromJson(const web::json::value &val)
|
bool IpAddress::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setAddress;
|
utility::string_t refVal_setAddress;
|
||||||
@ -176,9 +176,9 @@ namespace tribufu
|
|||||||
setAddress(refVal_setAddress);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setVersion;
|
int32_t refVal_setVersion;
|
||||||
@ -186,9 +186,9 @@ namespace tribufu
|
|||||||
setVersion(refVal_setVersion);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setNetwork;
|
utility::string_t refVal_setNetwork;
|
||||||
@ -196,9 +196,9 @@ namespace tribufu
|
|||||||
setNetwork(refVal_setNetwork);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
bool refVal_setReserved;
|
bool refVal_setReserved;
|
||||||
@ -206,9 +206,9 @@ namespace tribufu
|
|||||||
setReserved(refVal_setReserved);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setAsn;
|
utility::string_t refVal_setAsn;
|
||||||
@ -216,9 +216,9 @@ namespace tribufu
|
|||||||
setAsn(refVal_setAsn);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setIsp;
|
utility::string_t refVal_setIsp;
|
||||||
@ -226,9 +226,9 @@ namespace tribufu
|
|||||||
setIsp(refVal_setIsp);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setContinent;
|
utility::string_t refVal_setContinent;
|
||||||
@ -236,9 +236,9 @@ namespace tribufu
|
|||||||
setContinent(refVal_setContinent);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setCountry;
|
utility::string_t refVal_setCountry;
|
||||||
@ -246,9 +246,9 @@ namespace tribufu
|
|||||||
setCountry(refVal_setCountry);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setRegion;
|
utility::string_t refVal_setRegion;
|
||||||
@ -256,9 +256,9 @@ namespace tribufu
|
|||||||
setRegion(refVal_setRegion);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setCity;
|
utility::string_t refVal_setCity;
|
||||||
@ -266,9 +266,10 @@ namespace tribufu
|
|||||||
setCity(refVal_setCity);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setPostalCode;
|
utility::string_t refVal_setPostalCode;
|
||||||
@ -276,9 +277,10 @@ namespace tribufu
|
|||||||
setPostalCode(refVal_setPostalCode);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setCallingCode;
|
utility::string_t refVal_setCallingCode;
|
||||||
@ -286,9 +288,9 @@ namespace tribufu
|
|||||||
setCallingCode(refVal_setCallingCode);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setTld;
|
utility::string_t refVal_setTld;
|
||||||
@ -296,9 +298,9 @@ namespace tribufu
|
|||||||
setTld(refVal_setTld);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setLanguage;
|
utility::string_t refVal_setLanguage;
|
||||||
@ -306,9 +308,9 @@ namespace tribufu
|
|||||||
setLanguage(refVal_setLanguage);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setTimezone;
|
utility::string_t refVal_setTimezone;
|
||||||
@ -316,9 +318,9 @@ namespace tribufu
|
|||||||
setTimezone(refVal_setTimezone);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setCurrency;
|
utility::string_t refVal_setCurrency;
|
||||||
@ -326,9 +328,9 @@ namespace tribufu
|
|||||||
setCurrency(refVal_setCurrency);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
float refVal_setLatitude;
|
float refVal_setLatitude;
|
||||||
@ -336,9 +338,9 @@ namespace tribufu
|
|||||||
setLatitude(refVal_setLatitude);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
float refVal_setLongitude;
|
float refVal_setLongitude;
|
||||||
@ -353,99 +355,99 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_AddressIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("address")), m_Address));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("address")), m_Address));
|
||||||
}
|
}
|
||||||
if (m_VersionIsSet)
|
if (m_VersionIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("version")), m_Version));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("version")), m_Version));
|
||||||
}
|
}
|
||||||
if (m_NetworkIsSet)
|
if (m_NetworkIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("network")), m_Network));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("network")), m_Network));
|
||||||
}
|
}
|
||||||
if (m_ReservedIsSet)
|
if (m_ReservedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("reserved")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Reserved));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("reserved")), m_Reserved));
|
||||||
}
|
}
|
||||||
if (m_AsnIsSet)
|
if (m_AsnIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
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)
|
if (m_IspIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
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)
|
if (m_ContinentIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("continent")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Continent));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("continent")), m_Continent));
|
||||||
}
|
}
|
||||||
if (m_CountryIsSet)
|
if (m_CountryIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("country")), m_Country));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("country")), m_Country));
|
||||||
}
|
}
|
||||||
if (m_RegionIsSet)
|
if (m_RegionIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("region")), m_Region));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("region")), m_Region));
|
||||||
}
|
}
|
||||||
if (m_CityIsSet)
|
if (m_CityIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("city")), m_City));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("city")), m_City));
|
||||||
}
|
}
|
||||||
if (m_Postal_codeIsSet)
|
if (m_Postal_codeIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Calling_codeIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_TldIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
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)
|
if (m_LanguageIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("language")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Language));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("language")), m_Language));
|
||||||
}
|
}
|
||||||
if (m_TimezoneIsSet)
|
if (m_TimezoneIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("timezone")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Timezone));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("timezone")), m_Timezone));
|
||||||
}
|
}
|
||||||
if (m_CurrencyIsSet)
|
if (m_CurrencyIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("currency")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Currency));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("currency")), m_Currency));
|
||||||
}
|
}
|
||||||
if (m_LatitudeIsSet)
|
if (m_LatitudeIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("latitude")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Latitude));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("latitude")), m_Latitude));
|
||||||
}
|
}
|
||||||
if (m_LongitudeIsSet)
|
if (m_LongitudeIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("longitude")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Longitude));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("longitude")), m_Longitude));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -454,135 +456,144 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setAddress;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("address"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setAddress);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("address"))), refVal_setAddress);
|
||||||
setAddress(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;
|
int32_t refVal_setVersion;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("version"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setVersion);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("version"))), refVal_setVersion);
|
||||||
setVersion(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;
|
utility::string_t refVal_setNetwork;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("network"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setNetwork);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("network"))), refVal_setNetwork);
|
||||||
setNetwork(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;
|
bool refVal_setReserved;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setAsn;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("asn"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setAsn);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("asn"))), refVal_setAsn);
|
||||||
setAsn(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;
|
utility::string_t refVal_setIsp;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("isp"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setIsp);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("isp"))), refVal_setIsp);
|
||||||
setIsp(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;
|
utility::string_t refVal_setContinent;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setCountry;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("country"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setCountry);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("country"))), refVal_setCountry);
|
||||||
setCountry(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;
|
utility::string_t refVal_setRegion;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("region"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setRegion);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("region"))), refVal_setRegion);
|
||||||
setRegion(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;
|
utility::string_t refVal_setCity;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("city"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setCity);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("city"))), refVal_setCity);
|
||||||
setCity(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;
|
utility::string_t refVal_setPostalCode;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setCallingCode;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setTld;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("tld"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setTld);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tld"))), refVal_setTld);
|
||||||
setTld(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;
|
utility::string_t refVal_setLanguage;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setTimezone;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setCurrency;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
float refVal_setLatitude;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
float refVal_setLongitude;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
setLongitude(refVal_setLongitude);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -48,32 +48,32 @@ namespace tribufu
|
|||||||
if (m_NameIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -82,9 +82,9 @@ namespace tribufu
|
|||||||
bool LeaderboardItem::fromJson(const web::json::value &val)
|
bool LeaderboardItem::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setName;
|
utility::string_t refVal_setName;
|
||||||
@ -92,9 +92,10 @@ namespace tribufu
|
|||||||
setName(refVal_setName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setDisplayName;
|
utility::string_t refVal_setDisplayName;
|
||||||
@ -102,9 +103,9 @@ namespace tribufu
|
|||||||
setDisplayName(refVal_setDisplayName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setPhotoUrl;
|
utility::string_t refVal_setPhotoUrl;
|
||||||
@ -112,9 +113,9 @@ namespace tribufu
|
|||||||
setPhotoUrl(refVal_setPhotoUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setLevel;
|
int32_t refVal_setLevel;
|
||||||
@ -122,9 +123,9 @@ namespace tribufu
|
|||||||
setLevel(refVal_setLevel);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
double refVal_setExperience;
|
double refVal_setExperience;
|
||||||
@ -132,9 +133,9 @@ namespace tribufu
|
|||||||
setExperience(refVal_setExperience);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
double refVal_setPoints;
|
double refVal_setPoints;
|
||||||
@ -150,39 +151,39 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_NameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name));
|
||||||
}
|
}
|
||||||
if (m_Display_nameIsSet)
|
if (m_Display_nameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Photo_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("photo_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Photo_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("photo_url")), m_Photo_url));
|
||||||
}
|
}
|
||||||
if (m_LevelIsSet)
|
if (m_LevelIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("level")), m_Level));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("level")), m_Level));
|
||||||
}
|
}
|
||||||
if (m_ExperienceIsSet)
|
if (m_ExperienceIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("experience")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Experience));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("experience")), m_Experience));
|
||||||
}
|
}
|
||||||
if (m_PointsIsSet)
|
if (m_PointsIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("points")), m_Points));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("points")), m_Points));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,51 +193,54 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setName;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setName);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName);
|
||||||
setName(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;
|
utility::string_t refVal_setDisplayName;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setPhotoUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setLevel;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("level"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setLevel);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("level"))), refVal_setLevel);
|
||||||
setLevel(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;
|
double refVal_setExperience;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
double refVal_setPoints;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("points"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setPoints);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("points"))), refVal_setPoints);
|
||||||
setPoints(refVal_setPoints);
|
setPoints(refVal_setPoints);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -23,9 +23,9 @@ namespace tribufu
|
|||||||
|
|
||||||
LeaderboardOrder::eLeaderboardOrder toEnum(const EnumUnderlyingType &val)
|
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;
|
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 LeaderboardOrder::eLeaderboardOrder::LeaderboardOrder_POINTS;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@ -35,9 +35,9 @@ namespace tribufu
|
|||||||
switch (e)
|
switch (e)
|
||||||
{
|
{
|
||||||
case LeaderboardOrder::eLeaderboardOrder::LeaderboardOrder_LEVEL:
|
case LeaderboardOrder::eLeaderboardOrder::LeaderboardOrder_LEVEL:
|
||||||
return U("level");
|
return _XPLATSTR("level");
|
||||||
case LeaderboardOrder::eLeaderboardOrder::LeaderboardOrder_POINTS:
|
case LeaderboardOrder::eLeaderboardOrder::LeaderboardOrder_POINTS:
|
||||||
return U("points");
|
return _XPLATSTR("points");
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -74,9 +74,9 @@ namespace tribufu
|
|||||||
const utility::string_t &prefix) const
|
const utility::string_t &prefix) const
|
||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
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);
|
auto e = fromEnum(m_value);
|
||||||
@ -88,9 +88,9 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
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;
|
EnumUnderlyingType e;
|
||||||
@ -114,5 +114,10 @@ namespace tribufu
|
|||||||
m_value = value;
|
m_value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LeaderboardOrder::LeaderboardOrder(utility::string_t str)
|
||||||
|
{
|
||||||
|
setValue(strToEnumMap[str]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -23,19 +23,19 @@ namespace tribufu
|
|||||||
|
|
||||||
LoginProvider::eLoginProvider toEnum(const EnumUnderlyingType &val)
|
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;
|
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;
|
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;
|
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;
|
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;
|
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;
|
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 LoginProvider::eLoginProvider::LoginProvider_APPLE;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@ -45,19 +45,19 @@ namespace tribufu
|
|||||||
switch (e)
|
switch (e)
|
||||||
{
|
{
|
||||||
case LoginProvider::eLoginProvider::LoginProvider_STEAM:
|
case LoginProvider::eLoginProvider::LoginProvider_STEAM:
|
||||||
return U("steam");
|
return _XPLATSTR("steam");
|
||||||
case LoginProvider::eLoginProvider::LoginProvider_EPIC:
|
case LoginProvider::eLoginProvider::LoginProvider_EPIC:
|
||||||
return U("epic");
|
return _XPLATSTR("epic");
|
||||||
case LoginProvider::eLoginProvider::LoginProvider_DISCORD:
|
case LoginProvider::eLoginProvider::LoginProvider_DISCORD:
|
||||||
return U("discord");
|
return _XPLATSTR("discord");
|
||||||
case LoginProvider::eLoginProvider::LoginProvider_MICROSOFT:
|
case LoginProvider::eLoginProvider::LoginProvider_MICROSOFT:
|
||||||
return U("microsoft");
|
return _XPLATSTR("microsoft");
|
||||||
case LoginProvider::eLoginProvider::LoginProvider_PLAYSTATION:
|
case LoginProvider::eLoginProvider::LoginProvider_PLAYSTATION:
|
||||||
return U("playstation");
|
return _XPLATSTR("playstation");
|
||||||
case LoginProvider::eLoginProvider::LoginProvider_GOOGLE:
|
case LoginProvider::eLoginProvider::LoginProvider_GOOGLE:
|
||||||
return U("google");
|
return _XPLATSTR("google");
|
||||||
case LoginProvider::eLoginProvider::LoginProvider_APPLE:
|
case LoginProvider::eLoginProvider::LoginProvider_APPLE:
|
||||||
return U("apple");
|
return _XPLATSTR("apple");
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -94,9 +94,9 @@ namespace tribufu
|
|||||||
const utility::string_t &prefix) const
|
const utility::string_t &prefix) const
|
||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
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);
|
auto e = fromEnum(m_value);
|
||||||
@ -107,9 +107,9 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
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;
|
EnumUnderlyingType e;
|
||||||
@ -133,5 +133,10 @@ namespace tribufu
|
|||||||
m_value = value;
|
m_value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LoginProvider::LoginProvider(utility::string_t str)
|
||||||
|
{
|
||||||
|
setValue(strToEnumMap[str]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -40,12 +40,12 @@ namespace tribufu
|
|||||||
if (m_LoginIsSet)
|
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)
|
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;
|
return val;
|
||||||
@ -54,9 +54,9 @@ namespace tribufu
|
|||||||
bool LoginRequest::fromJson(const web::json::value &val)
|
bool LoginRequest::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setLogin;
|
utility::string_t refVal_setLogin;
|
||||||
@ -64,9 +64,9 @@ namespace tribufu
|
|||||||
setLogin(refVal_setLogin);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setPassword;
|
utility::string_t refVal_setPassword;
|
||||||
@ -82,19 +82,19 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_LoginIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("login")), m_Login));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("login")), m_Login));
|
||||||
}
|
}
|
||||||
if (m_PasswordIsSet)
|
if (m_PasswordIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("password")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Password));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("password")), m_Password));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,23 +103,24 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setLogin;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("login"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setLogin);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("login"))), refVal_setLogin);
|
||||||
setLogin(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;
|
utility::string_t refVal_setPassword;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
setPassword(refVal_setPassword);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -43,22 +43,22 @@ namespace tribufu
|
|||||||
if (m_UserIsSet)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -67,9 +67,9 @@ namespace tribufu
|
|||||||
bool LoginResponse::fromJson(const web::json::value &val)
|
bool LoginResponse::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<UserInfo> refVal_setUser;
|
std::shared_ptr<UserInfo> refVal_setUser;
|
||||||
@ -77,9 +77,10 @@ namespace tribufu
|
|||||||
setUser(refVal_setUser);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setAccessToken;
|
utility::string_t refVal_setAccessToken;
|
||||||
@ -87,9 +88,10 @@ namespace tribufu
|
|||||||
setAccessToken(refVal_setAccessToken);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setRefreshToken;
|
utility::string_t refVal_setRefreshToken;
|
||||||
@ -97,9 +99,9 @@ namespace tribufu
|
|||||||
setRefreshToken(refVal_setRefreshToken);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int64_t refVal_setExpiresIn;
|
int64_t refVal_setExpiresIn;
|
||||||
@ -115,29 +117,29 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_UserIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("user")), m_User));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("user")), m_User));
|
||||||
}
|
}
|
||||||
if (m_Access_tokenIsSet)
|
if (m_Access_tokenIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Refresh_tokenIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Expires_inIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("expires_in")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Expires_in));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("expires_in")), m_Expires_in));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -146,38 +148,40 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
std::shared_ptr<UserInfo> refVal_setUser;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("user"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUser);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("user"))), refVal_setUser);
|
||||||
setUser(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;
|
utility::string_t refVal_setAccessToken;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setRefreshToken;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setRefreshToken);
|
||||||
setRefreshToken(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;
|
int64_t refVal_setExpiresIn;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
setExpiresIn(refVal_setExpiresIn);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -60,62 +60,63 @@ namespace tribufu
|
|||||||
if (m_IdIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -124,9 +125,9 @@ namespace tribufu
|
|||||||
bool Package::fromJson(const web::json::value &val)
|
bool Package::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setId;
|
utility::string_t refVal_setId;
|
||||||
@ -134,9 +135,9 @@ namespace tribufu
|
|||||||
setId(refVal_setId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setName;
|
utility::string_t refVal_setName;
|
||||||
@ -144,9 +145,10 @@ namespace tribufu
|
|||||||
setName(refVal_setName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setDescription;
|
utility::string_t refVal_setDescription;
|
||||||
@ -154,9 +156,9 @@ namespace tribufu
|
|||||||
setDescription(refVal_setDescription);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setImageUrl;
|
utility::string_t refVal_setImageUrl;
|
||||||
@ -164,9 +166,9 @@ namespace tribufu
|
|||||||
setImageUrl(refVal_setImageUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setAuthorId;
|
utility::string_t refVal_setAuthorId;
|
||||||
@ -174,9 +176,9 @@ namespace tribufu
|
|||||||
setAuthorId(refVal_setAuthorId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setVersion;
|
utility::string_t refVal_setVersion;
|
||||||
@ -184,9 +186,9 @@ namespace tribufu
|
|||||||
setVersion(refVal_setVersion);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setFileUrl;
|
utility::string_t refVal_setFileUrl;
|
||||||
@ -194,9 +196,9 @@ namespace tribufu
|
|||||||
setFileUrl(refVal_setFileUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
double refVal_setRawSize;
|
double refVal_setRawSize;
|
||||||
@ -204,9 +206,10 @@ namespace tribufu
|
|||||||
setRawSize(refVal_setRawSize);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setDownloadCount;
|
int32_t refVal_setDownloadCount;
|
||||||
@ -214,9 +217,10 @@ namespace tribufu
|
|||||||
setDownloadCount(refVal_setDownloadCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setLastDownload;
|
utility::datetime refVal_setLastDownload;
|
||||||
@ -224,9 +228,9 @@ namespace tribufu
|
|||||||
setLastDownload(refVal_setLastDownload);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setCreated;
|
utility::datetime refVal_setCreated;
|
||||||
@ -234,9 +238,9 @@ namespace tribufu
|
|||||||
setCreated(refVal_setCreated);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setUpdated;
|
utility::datetime refVal_setUpdated;
|
||||||
@ -251,68 +255,69 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
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)
|
if (m_NameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name));
|
||||||
}
|
}
|
||||||
if (m_DescriptionIsSet)
|
if (m_DescriptionIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Image_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("image_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Image_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("image_url")), m_Image_url));
|
||||||
}
|
}
|
||||||
if (m_Author_idIsSet)
|
if (m_Author_idIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("author_id")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Author_id));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("author_id")), m_Author_id));
|
||||||
}
|
}
|
||||||
if (m_VersionIsSet)
|
if (m_VersionIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("version")), m_Version));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("version")), m_Version));
|
||||||
}
|
}
|
||||||
if (m_File_urlIsSet)
|
if (m_File_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("file_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_File_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("file_url")), m_File_url));
|
||||||
}
|
}
|
||||||
if (m_Raw_sizeIsSet)
|
if (m_Raw_sizeIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("raw_size")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Raw_size));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("raw_size")), m_Raw_size));
|
||||||
}
|
}
|
||||||
if (m_Download_countIsSet)
|
if (m_Download_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Last_downloadIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_CreatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created));
|
||||||
}
|
}
|
||||||
if (m_UpdatedIsSet)
|
if (m_UpdatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -321,95 +326,98 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId);
|
||||||
setId(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;
|
utility::string_t refVal_setName;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setName);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName);
|
||||||
setName(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;
|
utility::string_t refVal_setDescription;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setImageUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setAuthorId;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setVersion;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("version"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setVersion);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("version"))), refVal_setVersion);
|
||||||
setVersion(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;
|
utility::string_t refVal_setFileUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
double refVal_setRawSize;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setDownloadCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setDownloadCount);
|
||||||
setDownloadCount(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;
|
utility::datetime refVal_setLastDownload;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setLastDownload);
|
||||||
setLastDownload(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;
|
utility::datetime refVal_setCreated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setCreated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated);
|
||||||
setCreated(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;
|
utility::datetime refVal_setUpdated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUpdated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated);
|
||||||
setUpdated(refVal_setUpdated);
|
setUpdated(refVal_setUpdated);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -71,92 +71,93 @@ namespace tribufu
|
|||||||
if (m_IdIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -165,9 +166,9 @@ namespace tribufu
|
|||||||
bool Profile::fromJson(const web::json::value &val)
|
bool Profile::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setId;
|
utility::string_t refVal_setId;
|
||||||
@ -175,9 +176,9 @@ namespace tribufu
|
|||||||
setId(refVal_setId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setUuid;
|
utility::string_t refVal_setUuid;
|
||||||
@ -185,9 +186,9 @@ namespace tribufu
|
|||||||
setUuid(refVal_setUuid);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setName;
|
utility::string_t refVal_setName;
|
||||||
@ -195,9 +196,10 @@ namespace tribufu
|
|||||||
setName(refVal_setName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setDisplayName;
|
utility::string_t refVal_setDisplayName;
|
||||||
@ -205,9 +207,9 @@ namespace tribufu
|
|||||||
setDisplayName(refVal_setDisplayName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
bool refVal_setVerified;
|
bool refVal_setVerified;
|
||||||
@ -215,9 +217,9 @@ namespace tribufu
|
|||||||
setVerified(refVal_setVerified);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setLevel;
|
int32_t refVal_setLevel;
|
||||||
@ -225,9 +227,9 @@ namespace tribufu
|
|||||||
setLevel(refVal_setLevel);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
double refVal_setExperience;
|
double refVal_setExperience;
|
||||||
@ -235,9 +237,10 @@ namespace tribufu
|
|||||||
setExperience(refVal_setExperience);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
bool refVal_setPublicBirthday;
|
bool refVal_setPublicBirthday;
|
||||||
@ -245,9 +248,9 @@ namespace tribufu
|
|||||||
setPublicBirthday(refVal_setPublicBirthday);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setBirthday;
|
utility::datetime refVal_setBirthday;
|
||||||
@ -255,9 +258,9 @@ namespace tribufu
|
|||||||
setBirthday(refVal_setBirthday);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
double refVal_setPoints;
|
double refVal_setPoints;
|
||||||
@ -265,9 +268,9 @@ namespace tribufu
|
|||||||
setPoints(refVal_setPoints);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setLocation;
|
utility::string_t refVal_setLocation;
|
||||||
@ -275,9 +278,9 @@ namespace tribufu
|
|||||||
setLocation(refVal_setLocation);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setPhotoUrl;
|
utility::string_t refVal_setPhotoUrl;
|
||||||
@ -285,9 +288,9 @@ namespace tribufu
|
|||||||
setPhotoUrl(refVal_setPhotoUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setBannerUrl;
|
utility::string_t refVal_setBannerUrl;
|
||||||
@ -295,9 +298,10 @@ namespace tribufu
|
|||||||
setBannerUrl(refVal_setBannerUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setLastOnline;
|
utility::datetime refVal_setLastOnline;
|
||||||
@ -305,9 +309,9 @@ namespace tribufu
|
|||||||
setLastOnline(refVal_setLastOnline);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setBiography;
|
utility::string_t refVal_setBiography;
|
||||||
@ -315,9 +319,9 @@ namespace tribufu
|
|||||||
setBiography(refVal_setBiography);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setViewCount;
|
int32_t refVal_setViewCount;
|
||||||
@ -325,9 +329,9 @@ namespace tribufu
|
|||||||
setViewCount(refVal_setViewCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setCreated;
|
utility::datetime refVal_setCreated;
|
||||||
@ -335,9 +339,9 @@ namespace tribufu
|
|||||||
setCreated(refVal_setCreated);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setUpdated;
|
utility::datetime refVal_setUpdated;
|
||||||
@ -352,98 +356,99 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
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)
|
if (m_UuidIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("uuid")), m_Uuid));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("uuid")), m_Uuid));
|
||||||
}
|
}
|
||||||
if (m_NameIsSet)
|
if (m_NameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name));
|
||||||
}
|
}
|
||||||
if (m_Display_nameIsSet)
|
if (m_Display_nameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_VerifiedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("verified")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Verified));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified));
|
||||||
}
|
}
|
||||||
if (m_LevelIsSet)
|
if (m_LevelIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("level")), m_Level));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("level")), m_Level));
|
||||||
}
|
}
|
||||||
if (m_ExperienceIsSet)
|
if (m_ExperienceIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("experience")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Experience));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("experience")), m_Experience));
|
||||||
}
|
}
|
||||||
if (m_Public_birthdayIsSet)
|
if (m_Public_birthdayIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_BirthdayIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("birthday")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Birthday));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("birthday")), m_Birthday));
|
||||||
}
|
}
|
||||||
if (m_PointsIsSet)
|
if (m_PointsIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("points")), m_Points));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("points")), m_Points));
|
||||||
}
|
}
|
||||||
if (m_LocationIsSet)
|
if (m_LocationIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("location")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Location));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("location")), m_Location));
|
||||||
}
|
}
|
||||||
if (m_Photo_urlIsSet)
|
if (m_Photo_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("photo_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Photo_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("photo_url")), m_Photo_url));
|
||||||
}
|
}
|
||||||
if (m_Banner_urlIsSet)
|
if (m_Banner_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("banner_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Banner_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("banner_url")), m_Banner_url));
|
||||||
}
|
}
|
||||||
if (m_Last_onlineIsSet)
|
if (m_Last_onlineIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_BiographyIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("biography")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Biography));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("biography")), m_Biography));
|
||||||
}
|
}
|
||||||
if (m_View_countIsSet)
|
if (m_View_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("view_count")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_View_count));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("view_count")), m_View_count));
|
||||||
}
|
}
|
||||||
if (m_CreatedIsSet)
|
if (m_CreatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created));
|
||||||
}
|
}
|
||||||
if (m_UpdatedIsSet)
|
if (m_UpdatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -452,136 +457,146 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId);
|
||||||
setId(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;
|
utility::string_t refVal_setUuid;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("uuid"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUuid);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uuid"))), refVal_setUuid);
|
||||||
setUuid(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;
|
utility::string_t refVal_setName;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setName);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName);
|
||||||
setName(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;
|
utility::string_t refVal_setDisplayName;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
bool refVal_setVerified;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setLevel;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("level"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setLevel);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("level"))), refVal_setLevel);
|
||||||
setLevel(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;
|
double refVal_setExperience;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
bool refVal_setPublicBirthday;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setPublicBirthday);
|
||||||
setPublicBirthday(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;
|
utility::datetime refVal_setBirthday;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
double refVal_setPoints;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("points"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setPoints);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("points"))), refVal_setPoints);
|
||||||
setPoints(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;
|
utility::string_t refVal_setLocation;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setPhotoUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setBannerUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::datetime refVal_setLastOnline;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setBiography;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setViewCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::datetime refVal_setCreated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setCreated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated);
|
||||||
setCreated(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;
|
utility::datetime refVal_setUpdated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUpdated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated);
|
||||||
setUpdated(refVal_setUpdated);
|
setUpdated(refVal_setUpdated);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -57,59 +57,61 @@ namespace tribufu
|
|||||||
if (m_IdIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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);
|
ModelBase::toJson(m_Unlocked_achievements);
|
||||||
}
|
}
|
||||||
if (m_Total_achievementsIsSet)
|
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);
|
ModelBase::toJson(m_Total_achievements);
|
||||||
}
|
}
|
||||||
if (m_StatsIsSet)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -118,9 +120,9 @@ namespace tribufu
|
|||||||
bool ProfileGame::fromJson(const web::json::value &val)
|
bool ProfileGame::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setId;
|
utility::string_t refVal_setId;
|
||||||
@ -128,9 +130,9 @@ namespace tribufu
|
|||||||
setId(refVal_setId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setName;
|
utility::string_t refVal_setName;
|
||||||
@ -138,9 +140,10 @@ namespace tribufu
|
|||||||
setName(refVal_setName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setCapsuleImageUrl;
|
utility::string_t refVal_setCapsuleImageUrl;
|
||||||
@ -148,9 +151,10 @@ namespace tribufu
|
|||||||
setCapsuleImageUrl(refVal_setCapsuleImageUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setLibraryImageUrl;
|
utility::string_t refVal_setLibraryImageUrl;
|
||||||
@ -158,9 +162,9 @@ namespace tribufu
|
|||||||
setLibraryImageUrl(refVal_setLibraryImageUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setSlug;
|
utility::string_t refVal_setSlug;
|
||||||
@ -168,9 +172,9 @@ namespace tribufu
|
|||||||
setSlug(refVal_setSlug);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
double refVal_setTimeUsed;
|
double refVal_setTimeUsed;
|
||||||
@ -178,10 +182,10 @@ namespace tribufu
|
|||||||
setTimeUsed(refVal_setTimeUsed);
|
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 =
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setUnlockedAchievements;
|
int32_t refVal_setUnlockedAchievements;
|
||||||
@ -189,9 +193,10 @@ namespace tribufu
|
|||||||
setUnlockedAchievements(refVal_setUnlockedAchievements);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setTotalAchievements;
|
int32_t refVal_setTotalAchievements;
|
||||||
@ -199,9 +204,9 @@ namespace tribufu
|
|||||||
setTotalAchievements(refVal_setTotalAchievements);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<AnyType> refVal_setStats;
|
std::shared_ptr<AnyType> refVal_setStats;
|
||||||
@ -209,9 +214,9 @@ namespace tribufu
|
|||||||
setStats(refVal_setStats);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setAcquired;
|
utility::datetime refVal_setAcquired;
|
||||||
@ -219,9 +224,9 @@ namespace tribufu
|
|||||||
setAcquired(refVal_setAcquired);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setLastUsed;
|
utility::datetime refVal_setLastUsed;
|
||||||
@ -237,64 +242,68 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
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)
|
if (m_NameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name));
|
||||||
}
|
}
|
||||||
if (m_Capsule_image_urlIsSet)
|
if (m_Capsule_image_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Library_image_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_SlugIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("slug")), m_Slug));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("slug")), m_Slug));
|
||||||
}
|
}
|
||||||
if (m_Time_usedIsSet)
|
if (m_Time_usedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("time_used")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Time_used));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("time_used")), m_Time_used));
|
||||||
}
|
}
|
||||||
if (m_Unlocked_achievementsIsSet)
|
if (m_Unlocked_achievementsIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("unlocked_achievements")),
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("unlocked_achievements")),
|
||||||
m_Unlocked_achievements));
|
m_Unlocked_achievements));
|
||||||
}
|
}
|
||||||
if (m_Total_achievementsIsSet)
|
if (m_Total_achievementsIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_StatsIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("stats")), m_Stats));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("stats")), m_Stats));
|
||||||
}
|
}
|
||||||
if (m_AcquiredIsSet)
|
if (m_AcquiredIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("acquired")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Acquired));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("acquired")), m_Acquired));
|
||||||
}
|
}
|
||||||
if (m_Last_usedIsSet)
|
if (m_Last_usedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("last_used")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Last_used));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("last_used")), m_Last_used));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -303,90 +312,93 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId);
|
||||||
setId(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;
|
utility::string_t refVal_setName;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setName);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName);
|
||||||
setName(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;
|
utility::string_t refVal_setCapsuleImageUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setCapsuleImageUrl);
|
||||||
setCapsuleImageUrl(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;
|
utility::string_t refVal_setLibraryImageUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setLibraryImageUrl);
|
||||||
setLibraryImageUrl(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;
|
utility::string_t refVal_setSlug;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("slug"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setSlug);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("slug"))), refVal_setSlug);
|
||||||
setSlug(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;
|
double refVal_setTimeUsed;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setUnlockedAchievements;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setUnlockedAchievements);
|
||||||
setUnlockedAchievements(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;
|
int32_t refVal_setTotalAchievements;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setTotalAchievements);
|
||||||
setTotalAchievements(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;
|
std::shared_ptr<AnyType> refVal_setStats;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("stats"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setStats);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("stats"))), refVal_setStats);
|
||||||
setStats(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;
|
utility::datetime refVal_setAcquired;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::datetime refVal_setLastUsed;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
setLastUsed(refVal_setLastUsed);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -55,52 +55,52 @@ namespace tribufu
|
|||||||
if (m_IdIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -109,9 +109,9 @@ namespace tribufu
|
|||||||
bool ProfileGroup::fromJson(const web::json::value &val)
|
bool ProfileGroup::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setId;
|
utility::string_t refVal_setId;
|
||||||
@ -119,9 +119,9 @@ namespace tribufu
|
|||||||
setId(refVal_setId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setUuid;
|
utility::string_t refVal_setUuid;
|
||||||
@ -129,9 +129,9 @@ namespace tribufu
|
|||||||
setUuid(refVal_setUuid);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setName;
|
utility::string_t refVal_setName;
|
||||||
@ -139,9 +139,9 @@ namespace tribufu
|
|||||||
setName(refVal_setName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setTag;
|
utility::string_t refVal_setTag;
|
||||||
@ -149,9 +149,9 @@ namespace tribufu
|
|||||||
setTag(refVal_setTag);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setPrivacy;
|
int32_t refVal_setPrivacy;
|
||||||
@ -159,9 +159,9 @@ namespace tribufu
|
|||||||
setPrivacy(refVal_setPrivacy);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
bool refVal_setVerified;
|
bool refVal_setVerified;
|
||||||
@ -169,9 +169,9 @@ namespace tribufu
|
|||||||
setVerified(refVal_setVerified);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setPhotoUrl;
|
utility::string_t refVal_setPhotoUrl;
|
||||||
@ -179,9 +179,10 @@ namespace tribufu
|
|||||||
setPhotoUrl(refVal_setPhotoUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setMemberCount;
|
int32_t refVal_setMemberCount;
|
||||||
@ -189,9 +190,9 @@ namespace tribufu
|
|||||||
setMemberCount(refVal_setMemberCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<GroupRank> refVal_setRank;
|
std::shared_ptr<GroupRank> refVal_setRank;
|
||||||
@ -199,9 +200,9 @@ namespace tribufu
|
|||||||
setRank(refVal_setRank);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setSince;
|
utility::datetime refVal_setSince;
|
||||||
@ -217,58 +218,59 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
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)
|
if (m_UuidIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("uuid")), m_Uuid));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("uuid")), m_Uuid));
|
||||||
}
|
}
|
||||||
if (m_NameIsSet)
|
if (m_NameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name));
|
||||||
}
|
}
|
||||||
if (m_TagIsSet)
|
if (m_TagIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
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)
|
if (m_PrivacyIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("privacy")), m_Privacy));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("privacy")), m_Privacy));
|
||||||
}
|
}
|
||||||
if (m_VerifiedIsSet)
|
if (m_VerifiedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("verified")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Verified));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("verified")), m_Verified));
|
||||||
}
|
}
|
||||||
if (m_Photo_urlIsSet)
|
if (m_Photo_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("photo_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Photo_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("photo_url")), m_Photo_url));
|
||||||
}
|
}
|
||||||
if (m_Member_countIsSet)
|
if (m_Member_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_RankIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("rank")), m_Rank));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("rank")), m_Rank));
|
||||||
}
|
}
|
||||||
if (m_SinceIsSet)
|
if (m_SinceIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("since")), m_Since));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("since")), m_Since));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -277,79 +279,82 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId);
|
||||||
setId(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;
|
utility::string_t refVal_setUuid;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("uuid"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUuid);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uuid"))), refVal_setUuid);
|
||||||
setUuid(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;
|
utility::string_t refVal_setName;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setName);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName);
|
||||||
setName(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;
|
utility::string_t refVal_setTag;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("tag"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setTag);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("tag"))), refVal_setTag);
|
||||||
setTag(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;
|
int32_t refVal_setPrivacy;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("privacy"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setPrivacy);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("privacy"))), refVal_setPrivacy);
|
||||||
setPrivacy(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;
|
bool refVal_setVerified;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setPhotoUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setMemberCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
std::shared_ptr<GroupRank> refVal_setRank;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("rank"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setRank);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("rank"))), refVal_setRank);
|
||||||
setRank(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;
|
utility::datetime refVal_setSince;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("since"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setSince);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("since"))), refVal_setSince);
|
||||||
setSince(refVal_setSince);
|
setSince(refVal_setSince);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -38,7 +38,7 @@ namespace tribufu
|
|||||||
if (m_Refresh_tokenIsSet)
|
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;
|
return val;
|
||||||
@ -47,9 +47,10 @@ namespace tribufu
|
|||||||
bool RefreshRequest::fromJson(const web::json::value &val)
|
bool RefreshRequest::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setRefreshToken;
|
utility::string_t refVal_setRefreshToken;
|
||||||
@ -65,14 +66,14 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_Refresh_tokenIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setRefreshToken;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setRefreshToken);
|
||||||
setRefreshToken(refVal_setRefreshToken);
|
setRefreshToken(refVal_setRefreshToken);
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -44,22 +44,22 @@ namespace tribufu
|
|||||||
if (m_UuidIsSet)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -68,9 +68,9 @@ namespace tribufu
|
|||||||
bool RegisterRequest::fromJson(const web::json::value &val)
|
bool RegisterRequest::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setUuid;
|
utility::string_t refVal_setUuid;
|
||||||
@ -78,9 +78,9 @@ namespace tribufu
|
|||||||
setUuid(refVal_setUuid);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setName;
|
utility::string_t refVal_setName;
|
||||||
@ -88,9 +88,9 @@ namespace tribufu
|
|||||||
setName(refVal_setName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setEmail;
|
utility::string_t refVal_setEmail;
|
||||||
@ -98,9 +98,9 @@ namespace tribufu
|
|||||||
setEmail(refVal_setEmail);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setPassword;
|
utility::string_t refVal_setPassword;
|
||||||
@ -116,29 +116,29 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_UuidIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("uuid")), m_Uuid));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("uuid")), m_Uuid));
|
||||||
}
|
}
|
||||||
if (m_NameIsSet)
|
if (m_NameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name));
|
||||||
}
|
}
|
||||||
if (m_EmailIsSet)
|
if (m_EmailIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("email")), m_Email));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("email")), m_Email));
|
||||||
}
|
}
|
||||||
if (m_PasswordIsSet)
|
if (m_PasswordIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("password")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Password));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("password")), m_Password));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,37 +148,38 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setUuid;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("uuid"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUuid);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("uuid"))), refVal_setUuid);
|
||||||
setUuid(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;
|
utility::string_t refVal_setName;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setName);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName);
|
||||||
setName(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;
|
utility::string_t refVal_setEmail;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("email"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setEmail);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("email"))), refVal_setEmail);
|
||||||
setEmail(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;
|
utility::string_t refVal_setPassword;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
setPassword(refVal_setPassword);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -23,9 +23,9 @@ namespace tribufu
|
|||||||
|
|
||||||
ResponseType::eResponseType toEnum(const EnumUnderlyingType &val)
|
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;
|
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 ResponseType::eResponseType::ResponseType_TOKEN;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@ -35,9 +35,9 @@ namespace tribufu
|
|||||||
switch (e)
|
switch (e)
|
||||||
{
|
{
|
||||||
case ResponseType::eResponseType::ResponseType_CODE:
|
case ResponseType::eResponseType::ResponseType_CODE:
|
||||||
return U("code");
|
return _XPLATSTR("code");
|
||||||
case ResponseType::eResponseType::ResponseType_TOKEN:
|
case ResponseType::eResponseType::ResponseType_TOKEN:
|
||||||
return U("token");
|
return _XPLATSTR("token");
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -74,9 +74,9 @@ namespace tribufu
|
|||||||
const utility::string_t &prefix) const
|
const utility::string_t &prefix) const
|
||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
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);
|
auto e = fromEnum(m_value);
|
||||||
@ -87,9 +87,9 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
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;
|
EnumUnderlyingType e;
|
||||||
@ -113,5 +113,10 @@ namespace tribufu
|
|||||||
m_value = value;
|
m_value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ResponseType::ResponseType(utility::string_t str)
|
||||||
|
{
|
||||||
|
setValue(strToEnumMap[str]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -39,12 +39,13 @@ namespace tribufu
|
|||||||
if (m_TokenIsSet)
|
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)
|
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;
|
return val;
|
||||||
@ -53,9 +54,9 @@ namespace tribufu
|
|||||||
bool RevokeRequest::fromJson(const web::json::value &val)
|
bool RevokeRequest::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setToken;
|
utility::string_t refVal_setToken;
|
||||||
@ -63,9 +64,10 @@ namespace tribufu
|
|||||||
setToken(refVal_setToken);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<TokenHintType> refVal_setTokenTypeHint;
|
std::shared_ptr<TokenHintType> refVal_setTokenTypeHint;
|
||||||
@ -81,19 +83,19 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_TokenIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("token")), m_Token));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("token")), m_Token));
|
||||||
}
|
}
|
||||||
if (m_Token_type_hintIsSet)
|
if (m_Token_type_hintIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setToken;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("token"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setToken);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("token"))), refVal_setToken);
|
||||||
setToken(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;
|
std::shared_ptr<TokenHintType> refVal_setTokenTypeHint;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setTokenTypeHint);
|
||||||
setTokenTypeHint(refVal_setTokenTypeHint);
|
setTokenTypeHint(refVal_setTokenTypeHint);
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -43,22 +43,22 @@ namespace tribufu
|
|||||||
if (m_TypeIsSet)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -67,9 +67,9 @@ namespace tribufu
|
|||||||
bool SearchRequest::fromJson(const web::json::value &val)
|
bool SearchRequest::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::shared_ptr<SearchType> refVal_setType;
|
std::shared_ptr<SearchType> refVal_setType;
|
||||||
@ -77,9 +77,9 @@ namespace tribufu
|
|||||||
setType(refVal_setType);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setQuery;
|
utility::string_t refVal_setQuery;
|
||||||
@ -87,9 +87,9 @@ namespace tribufu
|
|||||||
setQuery(refVal_setQuery);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setPage;
|
int32_t refVal_setPage;
|
||||||
@ -97,9 +97,9 @@ namespace tribufu
|
|||||||
setPage(refVal_setPage);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setGameId;
|
utility::string_t refVal_setGameId;
|
||||||
@ -115,29 +115,29 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_TypeIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("type")), m_Type));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("type")), m_Type));
|
||||||
}
|
}
|
||||||
if (m_QueryIsSet)
|
if (m_QueryIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("query")), m_Query));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("query")), m_Query));
|
||||||
}
|
}
|
||||||
if (m_PageIsSet)
|
if (m_PageIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("page")), m_Page));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("page")), m_Page));
|
||||||
}
|
}
|
||||||
if (m_Game_idIsSet)
|
if (m_Game_idIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("game_id")), m_Game_id));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("game_id")), m_Game_id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -146,37 +146,37 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
std::shared_ptr<SearchType> refVal_setType;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("type"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setType);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("type"))), refVal_setType);
|
||||||
setType(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;
|
utility::string_t refVal_setQuery;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("query"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setQuery);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("query"))), refVal_setQuery);
|
||||||
setQuery(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;
|
int32_t refVal_setPage;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("page"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setPage);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("page"))), refVal_setPage);
|
||||||
setPage(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;
|
utility::string_t refVal_setGameId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("game_id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setGameId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("game_id"))), refVal_setGameId);
|
||||||
setGameId(refVal_setGameId);
|
setGameId(refVal_setGameId);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -23,13 +23,13 @@ namespace tribufu
|
|||||||
|
|
||||||
SearchType::eSearchType toEnum(const EnumUnderlyingType &val)
|
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;
|
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;
|
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;
|
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 SearchType::eSearchType::SearchType_CLUSTER;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@ -39,13 +39,13 @@ namespace tribufu
|
|||||||
switch (e)
|
switch (e)
|
||||||
{
|
{
|
||||||
case SearchType::eSearchType::SearchType_USER:
|
case SearchType::eSearchType::SearchType_USER:
|
||||||
return U("user");
|
return _XPLATSTR("user");
|
||||||
case SearchType::eSearchType::SearchType_GROUP:
|
case SearchType::eSearchType::SearchType_GROUP:
|
||||||
return U("group");
|
return _XPLATSTR("group");
|
||||||
case SearchType::eSearchType::SearchType_SERVER:
|
case SearchType::eSearchType::SearchType_SERVER:
|
||||||
return U("server");
|
return _XPLATSTR("server");
|
||||||
case SearchType::eSearchType::SearchType_CLUSTER:
|
case SearchType::eSearchType::SearchType_CLUSTER:
|
||||||
return U("cluster");
|
return _XPLATSTR("cluster");
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -82,9 +82,9 @@ namespace tribufu
|
|||||||
const utility::string_t &prefix) const
|
const utility::string_t &prefix) const
|
||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
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);
|
auto e = fromEnum(m_value);
|
||||||
@ -95,9 +95,9 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
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;
|
EnumUnderlyingType e;
|
||||||
@ -121,5 +121,10 @@ namespace tribufu
|
|||||||
m_value = value;
|
m_value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SearchType::SearchType(utility::string_t str)
|
||||||
|
{
|
||||||
|
setValue(strToEnumMap[str]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -42,17 +42,17 @@ namespace tribufu
|
|||||||
if (m_Server_countIsSet)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -61,9 +61,10 @@ namespace tribufu
|
|||||||
bool ServerMetrics::fromJson(const web::json::value &val)
|
bool ServerMetrics::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setServerCount;
|
int32_t refVal_setServerCount;
|
||||||
@ -71,9 +72,10 @@ namespace tribufu
|
|||||||
setServerCount(refVal_setServerCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setPackageCount;
|
int32_t refVal_setPackageCount;
|
||||||
@ -81,9 +83,10 @@ namespace tribufu
|
|||||||
setPackageCount(refVal_setPackageCount);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
int32_t refVal_setCountryCount;
|
int32_t refVal_setCountryCount;
|
||||||
@ -99,24 +102,24 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
if (m_Server_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Package_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Country_countIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
int32_t refVal_setServerCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
int32_t refVal_setPackageCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setPackageCount);
|
||||||
setPackageCount(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;
|
int32_t refVal_setCountryCount;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
refVal_setCountryCount);
|
||||||
setCountryCount(refVal_setCountryCount);
|
setCountryCount(refVal_setCountryCount);
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -23,11 +23,11 @@ namespace tribufu
|
|||||||
|
|
||||||
ServerStatus::eServerStatus toEnum(const EnumUnderlyingType &val)
|
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;
|
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;
|
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 ServerStatus::eServerStatus::ServerStatus_ONLINE;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@ -37,11 +37,11 @@ namespace tribufu
|
|||||||
switch (e)
|
switch (e)
|
||||||
{
|
{
|
||||||
case ServerStatus::eServerStatus::ServerStatus_UNKNOWN:
|
case ServerStatus::eServerStatus::ServerStatus_UNKNOWN:
|
||||||
return U("unknown");
|
return _XPLATSTR("unknown");
|
||||||
case ServerStatus::eServerStatus::ServerStatus_OFFLINE:
|
case ServerStatus::eServerStatus::ServerStatus_OFFLINE:
|
||||||
return U("offline");
|
return _XPLATSTR("offline");
|
||||||
case ServerStatus::eServerStatus::ServerStatus_ONLINE:
|
case ServerStatus::eServerStatus::ServerStatus_ONLINE:
|
||||||
return U("online");
|
return _XPLATSTR("online");
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -78,9 +78,9 @@ namespace tribufu
|
|||||||
const utility::string_t &prefix) const
|
const utility::string_t &prefix) const
|
||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
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);
|
auto e = fromEnum(m_value);
|
||||||
@ -91,9 +91,9 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
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;
|
EnumUnderlyingType e;
|
||||||
@ -117,5 +117,10 @@ namespace tribufu
|
|||||||
m_value = value;
|
m_value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ServerStatus::ServerStatus(utility::string_t str)
|
||||||
|
{
|
||||||
|
setValue(strToEnumMap[str]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -49,37 +49,37 @@ namespace tribufu
|
|||||||
if (m_IdIsSet)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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)
|
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;
|
return val;
|
||||||
@ -88,9 +88,9 @@ namespace tribufu
|
|||||||
bool Subscription::fromJson(const web::json::value &val)
|
bool Subscription::fromJson(const web::json::value &val)
|
||||||
{
|
{
|
||||||
bool ok = true;
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setId;
|
utility::string_t refVal_setId;
|
||||||
@ -98,9 +98,9 @@ namespace tribufu
|
|||||||
setId(refVal_setId);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setName;
|
utility::string_t refVal_setName;
|
||||||
@ -108,9 +108,10 @@ namespace tribufu
|
|||||||
setName(refVal_setName);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setDescription;
|
utility::string_t refVal_setDescription;
|
||||||
@ -118,9 +119,9 @@ namespace tribufu
|
|||||||
setDescription(refVal_setDescription);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::string_t refVal_setImageUrl;
|
utility::string_t refVal_setImageUrl;
|
||||||
@ -128,9 +129,9 @@ namespace tribufu
|
|||||||
setImageUrl(refVal_setImageUrl);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
std::map<utility::string_t, double> refVal_setPrices;
|
std::map<utility::string_t, double> refVal_setPrices;
|
||||||
@ -138,9 +139,9 @@ namespace tribufu
|
|||||||
setPrices(refVal_setPrices);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setCreated;
|
utility::datetime refVal_setCreated;
|
||||||
@ -148,9 +149,9 @@ namespace tribufu
|
|||||||
setCreated(refVal_setCreated);
|
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())
|
if (!fieldValue.is_null())
|
||||||
{
|
{
|
||||||
utility::datetime refVal_setUpdated;
|
utility::datetime refVal_setUpdated;
|
||||||
@ -166,43 +167,44 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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)
|
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)
|
if (m_NameIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("name")), m_Name));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("name")), m_Name));
|
||||||
}
|
}
|
||||||
if (m_DescriptionIsSet)
|
if (m_DescriptionIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(
|
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)
|
if (m_Image_urlIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("image_url")),
|
multipart->add(ModelBase::toHttpContent(
|
||||||
m_Image_url));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("image_url")), m_Image_url));
|
||||||
}
|
}
|
||||||
if (m_PricesIsSet)
|
if (m_PricesIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("prices")), m_Prices));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("prices")), m_Prices));
|
||||||
}
|
}
|
||||||
if (m_CreatedIsSet)
|
if (m_CreatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("created")), m_Created));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("created")), m_Created));
|
||||||
}
|
}
|
||||||
if (m_UpdatedIsSet)
|
if (m_UpdatedIsSet)
|
||||||
{
|
{
|
||||||
multipart->add(
|
multipart->add(ModelBase::toHttpContent(
|
||||||
ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("updated")), m_Updated));
|
namePrefix + utility::conversions::to_string_t(_XPLATSTR("updated")), m_Updated));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -211,58 +213,60 @@ namespace tribufu
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
utility::string_t namePrefix = prefix;
|
||||||
if (namePrefix.size() > 0 &&
|
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;
|
utility::string_t refVal_setId;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("id"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setId);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("id"))), refVal_setId);
|
||||||
setId(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;
|
utility::string_t refVal_setName;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("name"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setName);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("name"))), refVal_setName);
|
||||||
setName(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;
|
utility::string_t refVal_setDescription;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
utility::string_t refVal_setImageUrl;
|
||||||
ok &= ModelBase::fromHttpContent(
|
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);
|
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;
|
std::map<utility::string_t, double> refVal_setPrices;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("prices"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setPrices);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("prices"))), refVal_setPrices);
|
||||||
setPrices(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;
|
utility::datetime refVal_setCreated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("created"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setCreated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("created"))), refVal_setCreated);
|
||||||
setCreated(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;
|
utility::datetime refVal_setUpdated;
|
||||||
ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("updated"))),
|
ok &= ModelBase::fromHttpContent(
|
||||||
refVal_setUpdated);
|
multipart->getContent(utility::conversions::to_string_t(_XPLATSTR("updated"))), refVal_setUpdated);
|
||||||
setUpdated(refVal_setUpdated);
|
setUpdated(refVal_setUpdated);
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* The version of the OpenAPI document: 1.1.0
|
* The version of the OpenAPI document: 1.1.0
|
||||||
* Contact: contact@tribufu.com
|
* 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
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
@ -23,9 +23,9 @@ namespace tribufu
|
|||||||
|
|
||||||
TokenHintType::eTokenHintType toEnum(const EnumUnderlyingType &val)
|
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;
|
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 TokenHintType::eTokenHintType::TokenHintType_REFRESH_TOKEN;
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
@ -35,9 +35,9 @@ namespace tribufu
|
|||||||
switch (e)
|
switch (e)
|
||||||
{
|
{
|
||||||
case TokenHintType::eTokenHintType::TokenHintType_ACCESS_TOKEN:
|
case TokenHintType::eTokenHintType::TokenHintType_ACCESS_TOKEN:
|
||||||
return U("access_token");
|
return _XPLATSTR("access_token");
|
||||||
case TokenHintType::eTokenHintType::TokenHintType_REFRESH_TOKEN:
|
case TokenHintType::eTokenHintType::TokenHintType_REFRESH_TOKEN:
|
||||||
return U("refresh_token");
|
return _XPLATSTR("refresh_token");
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -74,9 +74,9 @@ namespace tribufu
|
|||||||
const utility::string_t &prefix) const
|
const utility::string_t &prefix) const
|
||||||
{
|
{
|
||||||
utility::string_t namePrefix = prefix;
|
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);
|
auto e = fromEnum(m_value);
|
||||||
@ -87,9 +87,9 @@ namespace tribufu
|
|||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
utility::string_t namePrefix = prefix;
|
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;
|
EnumUnderlyingType e;
|
||||||
@ -113,5 +113,10 @@ namespace tribufu
|
|||||||
m_value = value;
|
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
Reference in New Issue
Block a user