mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-16 16:34:18 +00:00
Format c++ files on generation
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* Account.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_Account_H_
|
||||
@ -23,108 +23,104 @@
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/AnyType.h"
|
||||
#include "tribufu++/model/LoginProvider.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class Account
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
Account();
|
||||
virtual ~Account();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class Account : public ModelBase
|
||||
{
|
||||
public:
|
||||
Account();
|
||||
virtual ~Account();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Account members
|
||||
/////////////////////////////////////////////
|
||||
/// Account members
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
std::shared_ptr<LoginProvider> getProvider() const;
|
||||
bool providerIsSet() const;
|
||||
void unsetProvider();
|
||||
void setProvider(const std::shared_ptr<LoginProvider> &value);
|
||||
|
||||
std::shared_ptr<LoginProvider> getProvider() const;
|
||||
bool providerIsSet() const;
|
||||
void unsetProvider();
|
||||
void setProvider(const std::shared_ptr<LoginProvider>& value);
|
||||
utility::string_t getUserId() const;
|
||||
bool userIdIsSet() const;
|
||||
void unsetUser_id();
|
||||
void setUserId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getUserId() const;
|
||||
bool userIdIsSet() const;
|
||||
void unsetUser_id();
|
||||
void setUserId(const utility::string_t& value);
|
||||
bool isAuthorized() const;
|
||||
bool authorizedIsSet() const;
|
||||
void unsetAuthorized();
|
||||
void setAuthorized(bool value);
|
||||
|
||||
bool isAuthorized() const;
|
||||
bool authorizedIsSet() const;
|
||||
void unsetAuthorized();
|
||||
void setAuthorized(bool value);
|
||||
std::shared_ptr<AnyType> getFields() const;
|
||||
bool fieldsIsSet() const;
|
||||
void unsetFields();
|
||||
void setFields(const std::shared_ptr<AnyType> &value);
|
||||
|
||||
std::shared_ptr<AnyType> getFields() const;
|
||||
bool fieldsIsSet() const;
|
||||
void unsetFields();
|
||||
void setFields(const std::shared_ptr<AnyType>& value);
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime& value);
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime& value);
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
std::shared_ptr<LoginProvider> m_Provider;
|
||||
bool m_ProviderIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
utility::string_t m_User_id;
|
||||
bool m_User_idIsSet;
|
||||
|
||||
std::shared_ptr<LoginProvider> m_Provider;
|
||||
bool m_ProviderIsSet;
|
||||
bool m_Authorized;
|
||||
bool m_AuthorizedIsSet;
|
||||
|
||||
utility::string_t m_User_id;
|
||||
bool m_User_idIsSet;
|
||||
std::shared_ptr<AnyType> m_Fields;
|
||||
bool m_FieldsIsSet;
|
||||
|
||||
bool m_Authorized;
|
||||
bool m_AuthorizedIsSet;
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
std::shared_ptr<AnyType> m_Fields;
|
||||
bool m_FieldsIsSet;
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
};
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Account_H_ */
|
||||
|
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* Application.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_Application_H_
|
||||
@ -23,203 +23,199 @@
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/ApplicationType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class Application
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
Application();
|
||||
virtual ~Application();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class Application : public ModelBase
|
||||
{
|
||||
public:
|
||||
Application();
|
||||
virtual ~Application();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Application members
|
||||
/////////////////////////////////////////////
|
||||
/// Application members
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t& value);
|
||||
std::shared_ptr<ApplicationType> getType() const;
|
||||
bool typeIsSet() const;
|
||||
void unsetType();
|
||||
void setType(const std::shared_ptr<ApplicationType> &value);
|
||||
|
||||
std::shared_ptr<ApplicationType> getType() const;
|
||||
bool typeIsSet() const;
|
||||
void unsetType();
|
||||
void setType(const std::shared_ptr<ApplicationType>& value);
|
||||
utility::string_t getOrganizationId() const;
|
||||
bool organizationIdIsSet() const;
|
||||
void unsetOrganization_id();
|
||||
void setOrganizationId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getOrganizationId() const;
|
||||
bool organizationIdIsSet() const;
|
||||
void unsetOrganization_id();
|
||||
void setOrganizationId(const utility::string_t& value);
|
||||
utility::string_t getIconUrl() const;
|
||||
bool iconUrlIsSet() const;
|
||||
void unsetIcon_url();
|
||||
void setIconUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getIconUrl() const;
|
||||
bool iconUrlIsSet() const;
|
||||
void unsetIcon_url();
|
||||
void setIconUrl(const utility::string_t& value);
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t& value);
|
||||
utility::string_t getCapsuleImageUrl() const;
|
||||
bool capsuleImageUrlIsSet() const;
|
||||
void unsetCapsule_image_url();
|
||||
void setCapsuleImageUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getCapsuleImageUrl() const;
|
||||
bool capsuleImageUrlIsSet() const;
|
||||
void unsetCapsule_image_url();
|
||||
void setCapsuleImageUrl(const utility::string_t& value);
|
||||
utility::string_t getLibraryImageUrl() const;
|
||||
bool libraryImageUrlIsSet() const;
|
||||
void unsetLibrary_image_url();
|
||||
void setLibraryImageUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getLibraryImageUrl() const;
|
||||
bool libraryImageUrlIsSet() const;
|
||||
void unsetLibrary_image_url();
|
||||
void setLibraryImageUrl(const utility::string_t& value);
|
||||
utility::string_t getParentId() const;
|
||||
bool parentIdIsSet() const;
|
||||
void unsetParent_id();
|
||||
void setParentId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getParentId() const;
|
||||
bool parentIdIsSet() const;
|
||||
void unsetParent_id();
|
||||
void setParentId(const utility::string_t& value);
|
||||
utility::string_t getSlug() const;
|
||||
bool slugIsSet() const;
|
||||
void unsetSlug();
|
||||
void setSlug(const utility::string_t &value);
|
||||
|
||||
utility::string_t getSlug() const;
|
||||
bool slugIsSet() const;
|
||||
void unsetSlug();
|
||||
void setSlug(const utility::string_t& value);
|
||||
int32_t getVisibility() const;
|
||||
bool visibilityIsSet() const;
|
||||
void unsetVisibility();
|
||||
void setVisibility(int32_t value);
|
||||
|
||||
int32_t getVisibility() const;
|
||||
bool visibilityIsSet() const;
|
||||
void unsetVisibility();
|
||||
void setVisibility(int32_t value);
|
||||
utility::string_t getPassword() const;
|
||||
bool passwordIsSet() const;
|
||||
void unsetPassword();
|
||||
void setPassword(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPassword() const;
|
||||
bool passwordIsSet() const;
|
||||
void unsetPassword();
|
||||
void setPassword(const utility::string_t& value);
|
||||
int32_t getPrimary() const;
|
||||
bool primaryIsSet() const;
|
||||
void unsetPrimary();
|
||||
void setPrimary(int32_t value);
|
||||
|
||||
int32_t getPrimary() const;
|
||||
bool primaryIsSet() const;
|
||||
void unsetPrimary();
|
||||
void setPrimary(int32_t value);
|
||||
int32_t getUserCount() const;
|
||||
bool userCountIsSet() const;
|
||||
void unsetUser_count();
|
||||
void setUserCount(int32_t value);
|
||||
|
||||
int32_t getUserCount() const;
|
||||
bool userCountIsSet() const;
|
||||
void unsetUser_count();
|
||||
void setUserCount(int32_t value);
|
||||
int32_t getAchievementCount() const;
|
||||
bool achievementCountIsSet() const;
|
||||
void unsetAchievement_count();
|
||||
void setAchievementCount(int32_t value);
|
||||
|
||||
int32_t getAchievementCount() const;
|
||||
bool achievementCountIsSet() const;
|
||||
void unsetAchievement_count();
|
||||
void setAchievementCount(int32_t value);
|
||||
int32_t getBadgeCount() const;
|
||||
bool badgeCountIsSet() const;
|
||||
void unsetBadge_count();
|
||||
void setBadgeCount(int32_t value);
|
||||
|
||||
int32_t getBadgeCount() const;
|
||||
bool badgeCountIsSet() const;
|
||||
void unsetBadge_count();
|
||||
void setBadgeCount(int32_t value);
|
||||
int32_t getDownloadCount() const;
|
||||
bool downloadCountIsSet() const;
|
||||
void unsetDownload_count();
|
||||
void setDownloadCount(int32_t value);
|
||||
|
||||
int32_t getDownloadCount() const;
|
||||
bool downloadCountIsSet() const;
|
||||
void unsetDownload_count();
|
||||
void setDownloadCount(int32_t value);
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime& value);
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime& value);
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
std::shared_ptr<ApplicationType> m_Type;
|
||||
bool m_TypeIsSet;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
utility::string_t m_Organization_id;
|
||||
bool m_Organization_idIsSet;
|
||||
|
||||
std::shared_ptr<ApplicationType> m_Type;
|
||||
bool m_TypeIsSet;
|
||||
utility::string_t m_Icon_url;
|
||||
bool m_Icon_urlIsSet;
|
||||
|
||||
utility::string_t m_Organization_id;
|
||||
bool m_Organization_idIsSet;
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::string_t m_Icon_url;
|
||||
bool m_Icon_urlIsSet;
|
||||
utility::string_t m_Capsule_image_url;
|
||||
bool m_Capsule_image_urlIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
utility::string_t m_Library_image_url;
|
||||
bool m_Library_image_urlIsSet;
|
||||
|
||||
utility::string_t m_Capsule_image_url;
|
||||
bool m_Capsule_image_urlIsSet;
|
||||
utility::string_t m_Parent_id;
|
||||
bool m_Parent_idIsSet;
|
||||
|
||||
utility::string_t m_Library_image_url;
|
||||
bool m_Library_image_urlIsSet;
|
||||
utility::string_t m_Slug;
|
||||
bool m_SlugIsSet;
|
||||
|
||||
utility::string_t m_Parent_id;
|
||||
bool m_Parent_idIsSet;
|
||||
int32_t m_Visibility;
|
||||
bool m_VisibilityIsSet;
|
||||
|
||||
utility::string_t m_Slug;
|
||||
bool m_SlugIsSet;
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
|
||||
int32_t m_Visibility;
|
||||
bool m_VisibilityIsSet;
|
||||
int32_t m_Primary;
|
||||
bool m_PrimaryIsSet;
|
||||
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
int32_t m_User_count;
|
||||
bool m_User_countIsSet;
|
||||
|
||||
int32_t m_Primary;
|
||||
bool m_PrimaryIsSet;
|
||||
int32_t m_Achievement_count;
|
||||
bool m_Achievement_countIsSet;
|
||||
|
||||
int32_t m_User_count;
|
||||
bool m_User_countIsSet;
|
||||
int32_t m_Badge_count;
|
||||
bool m_Badge_countIsSet;
|
||||
|
||||
int32_t m_Achievement_count;
|
||||
bool m_Achievement_countIsSet;
|
||||
int32_t m_Download_count;
|
||||
bool m_Download_countIsSet;
|
||||
|
||||
int32_t m_Badge_count;
|
||||
bool m_Badge_countIsSet;
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
int32_t m_Download_count;
|
||||
bool m_Download_countIsSet;
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
};
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Application_H_ */
|
||||
|
@ -13,52 +13,52 @@
|
||||
/*
|
||||
* ApplicationType.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_ApplicationType_H_
|
||||
#define TRIBUFU_MODELS_ApplicationType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class ApplicationType
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
ApplicationType();
|
||||
virtual ~ApplicationType();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
enum class eApplicationType
|
||||
namespace models
|
||||
{
|
||||
ApplicationType_APPLICATION,
|
||||
ApplicationType_GAME,
|
||||
};
|
||||
|
||||
eApplicationType getValue() const;
|
||||
void setValue(eApplicationType const value);
|
||||
class ApplicationType : public ModelBase
|
||||
{
|
||||
public:
|
||||
ApplicationType();
|
||||
virtual ~ApplicationType();
|
||||
|
||||
protected:
|
||||
eApplicationType m_value;
|
||||
};
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
}
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
enum class eApplicationType
|
||||
{
|
||||
ApplicationType_APPLICATION,
|
||||
ApplicationType_GAME,
|
||||
};
|
||||
|
||||
eApplicationType getValue() const;
|
||||
void setValue(eApplicationType const value);
|
||||
|
||||
protected:
|
||||
eApplicationType m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ApplicationType_H_ */
|
||||
|
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* AuthorizeRequest.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_AuthorizeRequest_H_
|
||||
@ -23,100 +23,96 @@
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include "tribufu++/model/CodeChallengeMethod.h"
|
||||
#include "tribufu++/model/ResponseType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/CodeChallengeMethod.h"
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class AuthorizeRequest
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
AuthorizeRequest();
|
||||
virtual ~AuthorizeRequest();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class AuthorizeRequest : public ModelBase
|
||||
{
|
||||
public:
|
||||
AuthorizeRequest();
|
||||
virtual ~AuthorizeRequest();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// AuthorizeRequest members
|
||||
/////////////////////////////////////////////
|
||||
/// AuthorizeRequest members
|
||||
|
||||
std::shared_ptr<ResponseType> getResponseType() const;
|
||||
bool responseTypeIsSet() const;
|
||||
void unsetResponse_type();
|
||||
void setResponseType(const std::shared_ptr<ResponseType> &value);
|
||||
|
||||
std::shared_ptr<ResponseType> getResponseType() const;
|
||||
bool responseTypeIsSet() const;
|
||||
void unsetResponse_type();
|
||||
void setResponseType(const std::shared_ptr<ResponseType>& value);
|
||||
utility::string_t getClientId() const;
|
||||
bool clientIdIsSet() const;
|
||||
void unsetClient_id();
|
||||
void setClientId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getClientId() const;
|
||||
bool clientIdIsSet() const;
|
||||
void unsetClient_id();
|
||||
void setClientId(const utility::string_t& value);
|
||||
utility::string_t getCodeChallenge() const;
|
||||
bool codeChallengeIsSet() const;
|
||||
void unsetCode_challenge();
|
||||
void setCodeChallenge(const utility::string_t &value);
|
||||
|
||||
utility::string_t getCodeChallenge() const;
|
||||
bool codeChallengeIsSet() const;
|
||||
void unsetCode_challenge();
|
||||
void setCodeChallenge(const utility::string_t& value);
|
||||
std::shared_ptr<CodeChallengeMethod> getCodeChallengeMethod() const;
|
||||
bool codeChallengeMethodIsSet() const;
|
||||
void unsetCode_challenge_method();
|
||||
void setCodeChallengeMethod(const std::shared_ptr<CodeChallengeMethod> &value);
|
||||
|
||||
std::shared_ptr<CodeChallengeMethod> getCodeChallengeMethod() const;
|
||||
bool codeChallengeMethodIsSet() const;
|
||||
void unsetCode_challenge_method();
|
||||
void setCodeChallengeMethod(const std::shared_ptr<CodeChallengeMethod>& value);
|
||||
utility::string_t getRedirectUri() const;
|
||||
bool redirectUriIsSet() const;
|
||||
void unsetRedirect_uri();
|
||||
void setRedirectUri(const utility::string_t &value);
|
||||
|
||||
utility::string_t getRedirectUri() const;
|
||||
bool redirectUriIsSet() const;
|
||||
void unsetRedirect_uri();
|
||||
void setRedirectUri(const utility::string_t& value);
|
||||
utility::string_t getScope() const;
|
||||
bool scopeIsSet() const;
|
||||
void unsetScope();
|
||||
void setScope(const utility::string_t &value);
|
||||
|
||||
utility::string_t getScope() const;
|
||||
bool scopeIsSet() const;
|
||||
void unsetScope();
|
||||
void setScope(const utility::string_t& value);
|
||||
utility::string_t getState() const;
|
||||
bool stateIsSet() const;
|
||||
void unsetState();
|
||||
void setState(const utility::string_t &value);
|
||||
|
||||
utility::string_t getState() const;
|
||||
bool stateIsSet() const;
|
||||
void unsetState();
|
||||
void setState(const utility::string_t& value);
|
||||
protected:
|
||||
std::shared_ptr<ResponseType> m_Response_type;
|
||||
bool m_Response_typeIsSet;
|
||||
|
||||
utility::string_t m_Client_id;
|
||||
bool m_Client_idIsSet;
|
||||
|
||||
protected:
|
||||
std::shared_ptr<ResponseType> m_Response_type;
|
||||
bool m_Response_typeIsSet;
|
||||
utility::string_t m_Code_challenge;
|
||||
bool m_Code_challengeIsSet;
|
||||
|
||||
utility::string_t m_Client_id;
|
||||
bool m_Client_idIsSet;
|
||||
std::shared_ptr<CodeChallengeMethod> m_Code_challenge_method;
|
||||
bool m_Code_challenge_methodIsSet;
|
||||
|
||||
utility::string_t m_Code_challenge;
|
||||
bool m_Code_challengeIsSet;
|
||||
utility::string_t m_Redirect_uri;
|
||||
bool m_Redirect_uriIsSet;
|
||||
|
||||
std::shared_ptr<CodeChallengeMethod> m_Code_challenge_method;
|
||||
bool m_Code_challenge_methodIsSet;
|
||||
utility::string_t m_Scope;
|
||||
bool m_ScopeIsSet;
|
||||
|
||||
utility::string_t m_Redirect_uri;
|
||||
bool m_Redirect_uriIsSet;
|
||||
utility::string_t m_State;
|
||||
bool m_StateIsSet;
|
||||
};
|
||||
|
||||
utility::string_t m_Scope;
|
||||
bool m_ScopeIsSet;
|
||||
|
||||
utility::string_t m_State;
|
||||
bool m_StateIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_AuthorizeRequest_H_ */
|
||||
|
@ -13,52 +13,52 @@
|
||||
/*
|
||||
* CodeChallengeMethod.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_CodeChallengeMethod_H_
|
||||
#define TRIBUFU_MODELS_CodeChallengeMethod_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class CodeChallengeMethod
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
CodeChallengeMethod();
|
||||
virtual ~CodeChallengeMethod();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
enum class eCodeChallengeMethod
|
||||
namespace models
|
||||
{
|
||||
CodeChallengeMethod_PLAIN,
|
||||
CodeChallengeMethod_S256,
|
||||
};
|
||||
|
||||
eCodeChallengeMethod getValue() const;
|
||||
void setValue(eCodeChallengeMethod const value);
|
||||
class CodeChallengeMethod : public ModelBase
|
||||
{
|
||||
public:
|
||||
CodeChallengeMethod();
|
||||
virtual ~CodeChallengeMethod();
|
||||
|
||||
protected:
|
||||
eCodeChallengeMethod m_value;
|
||||
};
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
}
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
enum class eCodeChallengeMethod
|
||||
{
|
||||
CodeChallengeMethod_PLAIN,
|
||||
CodeChallengeMethod_S256,
|
||||
};
|
||||
|
||||
eCodeChallengeMethod getValue() const;
|
||||
void setValue(eCodeChallengeMethod const value);
|
||||
|
||||
protected:
|
||||
eCodeChallengeMethod m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_CodeChallengeMethod_H_ */
|
||||
|
@ -13,67 +13,62 @@
|
||||
/*
|
||||
* CryptoViewModel.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_CryptoViewModel_H_
|
||||
#define TRIBUFU_MODELS_CryptoViewModel_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class CryptoViewModel
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
CryptoViewModel();
|
||||
virtual ~CryptoViewModel();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class CryptoViewModel : public ModelBase
|
||||
{
|
||||
public:
|
||||
CryptoViewModel();
|
||||
virtual ~CryptoViewModel();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// CryptoViewModel members
|
||||
/////////////////////////////////////////////
|
||||
/// CryptoViewModel members
|
||||
|
||||
utility::string_t getEncoded() const;
|
||||
bool encodedIsSet() const;
|
||||
void unsetEncoded();
|
||||
void setEncoded(const utility::string_t &value);
|
||||
|
||||
utility::string_t getEncoded() const;
|
||||
bool encodedIsSet() const;
|
||||
void unsetEncoded();
|
||||
void setEncoded(const utility::string_t& value);
|
||||
utility::string_t getDecoded() const;
|
||||
bool decodedIsSet() const;
|
||||
void unsetDecoded();
|
||||
void setDecoded(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDecoded() const;
|
||||
bool decodedIsSet() const;
|
||||
void unsetDecoded();
|
||||
void setDecoded(const utility::string_t& value);
|
||||
protected:
|
||||
utility::string_t m_Encoded;
|
||||
bool m_EncodedIsSet;
|
||||
|
||||
utility::string_t m_Decoded;
|
||||
bool m_DecodedIsSet;
|
||||
};
|
||||
|
||||
protected:
|
||||
utility::string_t m_Encoded;
|
||||
bool m_EncodedIsSet;
|
||||
|
||||
utility::string_t m_Decoded;
|
||||
bool m_DecodedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_CryptoViewModel_H_ */
|
||||
|
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* Game.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_Game_H_
|
||||
@ -23,291 +23,287 @@
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/ApplicationType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class Game
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
Game();
|
||||
virtual ~Game();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Game members
|
||||
|
||||
|
||||
int32_t getGamePort() const;
|
||||
bool gamePortIsSet() const;
|
||||
void unsetGame_port();
|
||||
void setGamePort(int32_t value);
|
||||
|
||||
int32_t getQueryPort() const;
|
||||
bool queryPortIsSet() const;
|
||||
void unsetQuery_port();
|
||||
void setQueryPort(int32_t value);
|
||||
|
||||
int32_t getRconPort() const;
|
||||
bool rconPortIsSet() const;
|
||||
void unsetRcon_port();
|
||||
void setRconPort(int32_t value);
|
||||
|
||||
int32_t getServerCount() const;
|
||||
bool serverCountIsSet() const;
|
||||
void unsetServer_count();
|
||||
void setServerCount(int32_t value);
|
||||
|
||||
int32_t getSteamAppId() const;
|
||||
bool steamAppIdIsSet() const;
|
||||
void unsetSteam_app_id();
|
||||
void setSteamAppId(int32_t value);
|
||||
|
||||
int32_t getSteamServerAppId() const;
|
||||
bool steamServerAppIdIsSet() const;
|
||||
void unsetSteam_server_app_id();
|
||||
void setSteamServerAppId(int32_t value);
|
||||
|
||||
bool isEnableServers() const;
|
||||
bool enableServersIsSet() const;
|
||||
void unsetEnable_servers();
|
||||
void setEnableServers(bool value);
|
||||
|
||||
utility::string_t getRustGamedigId() const;
|
||||
bool rustGamedigIdIsSet() const;
|
||||
void unsetRust_gamedig_id();
|
||||
void setRustGamedigId(const utility::string_t& value);
|
||||
|
||||
utility::string_t getNodeGamedigId() const;
|
||||
bool nodeGamedigIdIsSet() const;
|
||||
void unsetNode_gamedig_id();
|
||||
void setNodeGamedigId(const utility::string_t& value);
|
||||
|
||||
utility::string_t getServerConnectUrl() const;
|
||||
bool serverConnectUrlIsSet() const;
|
||||
void unsetServer_connect_url();
|
||||
void setServerConnectUrl(const utility::string_t& value);
|
||||
|
||||
utility::string_t getServerTags() const;
|
||||
bool serverTagsIsSet() const;
|
||||
void unsetServer_tags();
|
||||
void setServerTags(const utility::string_t& value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t& value);
|
||||
|
||||
std::shared_ptr<ApplicationType> getType() const;
|
||||
bool typeIsSet() const;
|
||||
void unsetType();
|
||||
void setType(const std::shared_ptr<ApplicationType>& value);
|
||||
|
||||
utility::string_t getOrganizationId() const;
|
||||
bool organizationIdIsSet() const;
|
||||
void unsetOrganization_id();
|
||||
void setOrganizationId(const utility::string_t& value);
|
||||
|
||||
utility::string_t getIconUrl() const;
|
||||
bool iconUrlIsSet() const;
|
||||
void unsetIcon_url();
|
||||
void setIconUrl(const utility::string_t& value);
|
||||
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t& value);
|
||||
|
||||
utility::string_t getCapsuleImageUrl() const;
|
||||
bool capsuleImageUrlIsSet() const;
|
||||
void unsetCapsule_image_url();
|
||||
void setCapsuleImageUrl(const utility::string_t& value);
|
||||
|
||||
utility::string_t getLibraryImageUrl() const;
|
||||
bool libraryImageUrlIsSet() const;
|
||||
void unsetLibrary_image_url();
|
||||
void setLibraryImageUrl(const utility::string_t& value);
|
||||
|
||||
utility::string_t getParentId() const;
|
||||
bool parentIdIsSet() const;
|
||||
void unsetParent_id();
|
||||
void setParentId(const utility::string_t& value);
|
||||
|
||||
utility::string_t getSlug() const;
|
||||
bool slugIsSet() const;
|
||||
void unsetSlug();
|
||||
void setSlug(const utility::string_t& value);
|
||||
|
||||
int32_t getVisibility() const;
|
||||
bool visibilityIsSet() const;
|
||||
void unsetVisibility();
|
||||
void setVisibility(int32_t value);
|
||||
|
||||
utility::string_t getPassword() const;
|
||||
bool passwordIsSet() const;
|
||||
void unsetPassword();
|
||||
void setPassword(const utility::string_t& value);
|
||||
namespace models
|
||||
{
|
||||
|
||||
class Game : public ModelBase
|
||||
{
|
||||
public:
|
||||
Game();
|
||||
virtual ~Game();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Game members
|
||||
|
||||
int32_t getGamePort() const;
|
||||
bool gamePortIsSet() const;
|
||||
void unsetGame_port();
|
||||
void setGamePort(int32_t value);
|
||||
|
||||
int32_t getQueryPort() const;
|
||||
bool queryPortIsSet() const;
|
||||
void unsetQuery_port();
|
||||
void setQueryPort(int32_t value);
|
||||
|
||||
int32_t getRconPort() const;
|
||||
bool rconPortIsSet() const;
|
||||
void unsetRcon_port();
|
||||
void setRconPort(int32_t value);
|
||||
|
||||
int32_t getServerCount() const;
|
||||
bool serverCountIsSet() const;
|
||||
void unsetServer_count();
|
||||
void setServerCount(int32_t value);
|
||||
|
||||
int32_t getSteamAppId() const;
|
||||
bool steamAppIdIsSet() const;
|
||||
void unsetSteam_app_id();
|
||||
void setSteamAppId(int32_t value);
|
||||
|
||||
int32_t getSteamServerAppId() const;
|
||||
bool steamServerAppIdIsSet() const;
|
||||
void unsetSteam_server_app_id();
|
||||
void setSteamServerAppId(int32_t value);
|
||||
|
||||
bool isEnableServers() const;
|
||||
bool enableServersIsSet() const;
|
||||
void unsetEnable_servers();
|
||||
void setEnableServers(bool value);
|
||||
|
||||
utility::string_t getRustGamedigId() const;
|
||||
bool rustGamedigIdIsSet() const;
|
||||
void unsetRust_gamedig_id();
|
||||
void setRustGamedigId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getNodeGamedigId() const;
|
||||
bool nodeGamedigIdIsSet() const;
|
||||
void unsetNode_gamedig_id();
|
||||
void setNodeGamedigId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getServerConnectUrl() const;
|
||||
bool serverConnectUrlIsSet() const;
|
||||
void unsetServer_connect_url();
|
||||
void setServerConnectUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getServerTags() const;
|
||||
bool serverTagsIsSet() const;
|
||||
void unsetServer_tags();
|
||||
void setServerTags(const utility::string_t &value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t &value);
|
||||
|
||||
std::shared_ptr<ApplicationType> getType() const;
|
||||
bool typeIsSet() const;
|
||||
void unsetType();
|
||||
void setType(const std::shared_ptr<ApplicationType> &value);
|
||||
|
||||
utility::string_t getOrganizationId() const;
|
||||
bool organizationIdIsSet() const;
|
||||
void unsetOrganization_id();
|
||||
void setOrganizationId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getIconUrl() const;
|
||||
bool iconUrlIsSet() const;
|
||||
void unsetIcon_url();
|
||||
void setIconUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getCapsuleImageUrl() const;
|
||||
bool capsuleImageUrlIsSet() const;
|
||||
void unsetCapsule_image_url();
|
||||
void setCapsuleImageUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getLibraryImageUrl() const;
|
||||
bool libraryImageUrlIsSet() const;
|
||||
void unsetLibrary_image_url();
|
||||
void setLibraryImageUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getParentId() const;
|
||||
bool parentIdIsSet() const;
|
||||
void unsetParent_id();
|
||||
void setParentId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getSlug() const;
|
||||
bool slugIsSet() const;
|
||||
void unsetSlug();
|
||||
void setSlug(const utility::string_t &value);
|
||||
|
||||
int32_t getVisibility() const;
|
||||
bool visibilityIsSet() const;
|
||||
void unsetVisibility();
|
||||
void setVisibility(int32_t value);
|
||||
|
||||
utility::string_t getPassword() const;
|
||||
bool passwordIsSet() const;
|
||||
void unsetPassword();
|
||||
void setPassword(const utility::string_t &value);
|
||||
|
||||
int32_t getPrimary() const;
|
||||
bool primaryIsSet() const;
|
||||
void unsetPrimary();
|
||||
void setPrimary(int32_t value);
|
||||
|
||||
int32_t getPrimary() const;
|
||||
bool primaryIsSet() const;
|
||||
void unsetPrimary();
|
||||
void setPrimary(int32_t value);
|
||||
int32_t getUserCount() const;
|
||||
bool userCountIsSet() const;
|
||||
void unsetUser_count();
|
||||
void setUserCount(int32_t value);
|
||||
|
||||
int32_t getUserCount() const;
|
||||
bool userCountIsSet() const;
|
||||
void unsetUser_count();
|
||||
void setUserCount(int32_t value);
|
||||
int32_t getAchievementCount() const;
|
||||
bool achievementCountIsSet() const;
|
||||
void unsetAchievement_count();
|
||||
void setAchievementCount(int32_t value);
|
||||
|
||||
int32_t getAchievementCount() const;
|
||||
bool achievementCountIsSet() const;
|
||||
void unsetAchievement_count();
|
||||
void setAchievementCount(int32_t value);
|
||||
int32_t getBadgeCount() const;
|
||||
bool badgeCountIsSet() const;
|
||||
void unsetBadge_count();
|
||||
void setBadgeCount(int32_t value);
|
||||
|
||||
int32_t getBadgeCount() const;
|
||||
bool badgeCountIsSet() const;
|
||||
void unsetBadge_count();
|
||||
void setBadgeCount(int32_t value);
|
||||
int32_t getDownloadCount() const;
|
||||
bool downloadCountIsSet() const;
|
||||
void unsetDownload_count();
|
||||
void setDownloadCount(int32_t value);
|
||||
|
||||
int32_t getDownloadCount() const;
|
||||
bool downloadCountIsSet() const;
|
||||
void unsetDownload_count();
|
||||
void setDownloadCount(int32_t value);
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime& value);
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime& value);
|
||||
protected:
|
||||
int32_t m_Game_port;
|
||||
bool m_Game_portIsSet;
|
||||
|
||||
int32_t m_Query_port;
|
||||
bool m_Query_portIsSet;
|
||||
|
||||
protected:
|
||||
int32_t m_Game_port;
|
||||
bool m_Game_portIsSet;
|
||||
int32_t m_Rcon_port;
|
||||
bool m_Rcon_portIsSet;
|
||||
|
||||
int32_t m_Query_port;
|
||||
bool m_Query_portIsSet;
|
||||
int32_t m_Server_count;
|
||||
bool m_Server_countIsSet;
|
||||
|
||||
int32_t m_Rcon_port;
|
||||
bool m_Rcon_portIsSet;
|
||||
int32_t m_Steam_app_id;
|
||||
bool m_Steam_app_idIsSet;
|
||||
|
||||
int32_t m_Server_count;
|
||||
bool m_Server_countIsSet;
|
||||
int32_t m_Steam_server_app_id;
|
||||
bool m_Steam_server_app_idIsSet;
|
||||
|
||||
int32_t m_Steam_app_id;
|
||||
bool m_Steam_app_idIsSet;
|
||||
bool m_Enable_servers;
|
||||
bool m_Enable_serversIsSet;
|
||||
|
||||
int32_t m_Steam_server_app_id;
|
||||
bool m_Steam_server_app_idIsSet;
|
||||
utility::string_t m_Rust_gamedig_id;
|
||||
bool m_Rust_gamedig_idIsSet;
|
||||
|
||||
bool m_Enable_servers;
|
||||
bool m_Enable_serversIsSet;
|
||||
utility::string_t m_Node_gamedig_id;
|
||||
bool m_Node_gamedig_idIsSet;
|
||||
|
||||
utility::string_t m_Rust_gamedig_id;
|
||||
bool m_Rust_gamedig_idIsSet;
|
||||
utility::string_t m_Server_connect_url;
|
||||
bool m_Server_connect_urlIsSet;
|
||||
|
||||
utility::string_t m_Node_gamedig_id;
|
||||
bool m_Node_gamedig_idIsSet;
|
||||
utility::string_t m_Server_tags;
|
||||
bool m_Server_tagsIsSet;
|
||||
|
||||
utility::string_t m_Server_connect_url;
|
||||
bool m_Server_connect_urlIsSet;
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Server_tags;
|
||||
bool m_Server_tagsIsSet;
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
std::shared_ptr<ApplicationType> m_Type;
|
||||
bool m_TypeIsSet;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
utility::string_t m_Organization_id;
|
||||
bool m_Organization_idIsSet;
|
||||
|
||||
std::shared_ptr<ApplicationType> m_Type;
|
||||
bool m_TypeIsSet;
|
||||
utility::string_t m_Icon_url;
|
||||
bool m_Icon_urlIsSet;
|
||||
|
||||
utility::string_t m_Organization_id;
|
||||
bool m_Organization_idIsSet;
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::string_t m_Icon_url;
|
||||
bool m_Icon_urlIsSet;
|
||||
utility::string_t m_Capsule_image_url;
|
||||
bool m_Capsule_image_urlIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
utility::string_t m_Library_image_url;
|
||||
bool m_Library_image_urlIsSet;
|
||||
|
||||
utility::string_t m_Capsule_image_url;
|
||||
bool m_Capsule_image_urlIsSet;
|
||||
utility::string_t m_Parent_id;
|
||||
bool m_Parent_idIsSet;
|
||||
|
||||
utility::string_t m_Library_image_url;
|
||||
bool m_Library_image_urlIsSet;
|
||||
utility::string_t m_Slug;
|
||||
bool m_SlugIsSet;
|
||||
|
||||
utility::string_t m_Parent_id;
|
||||
bool m_Parent_idIsSet;
|
||||
int32_t m_Visibility;
|
||||
bool m_VisibilityIsSet;
|
||||
|
||||
utility::string_t m_Slug;
|
||||
bool m_SlugIsSet;
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
|
||||
int32_t m_Visibility;
|
||||
bool m_VisibilityIsSet;
|
||||
int32_t m_Primary;
|
||||
bool m_PrimaryIsSet;
|
||||
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
int32_t m_User_count;
|
||||
bool m_User_countIsSet;
|
||||
|
||||
int32_t m_Primary;
|
||||
bool m_PrimaryIsSet;
|
||||
int32_t m_Achievement_count;
|
||||
bool m_Achievement_countIsSet;
|
||||
|
||||
int32_t m_User_count;
|
||||
bool m_User_countIsSet;
|
||||
int32_t m_Badge_count;
|
||||
bool m_Badge_countIsSet;
|
||||
|
||||
int32_t m_Achievement_count;
|
||||
bool m_Achievement_countIsSet;
|
||||
int32_t m_Download_count;
|
||||
bool m_Download_countIsSet;
|
||||
|
||||
int32_t m_Badge_count;
|
||||
bool m_Badge_countIsSet;
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
int32_t m_Download_count;
|
||||
bool m_Download_countIsSet;
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
};
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Game_H_ */
|
||||
|
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* GameServer.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_GameServer_H_
|
||||
@ -23,291 +23,287 @@
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/ServerStatus.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class GameServer
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
GameServer();
|
||||
virtual ~GameServer();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// GameServer members
|
||||
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t& value);
|
||||
|
||||
utility::string_t getAddress() const;
|
||||
bool addressIsSet() const;
|
||||
void unsetAddress();
|
||||
void setAddress(const utility::string_t& value);
|
||||
|
||||
int32_t getGamePort() const;
|
||||
bool gamePortIsSet() const;
|
||||
void unsetGame_port();
|
||||
void setGamePort(int32_t value);
|
||||
|
||||
int32_t getQueryPort() const;
|
||||
bool queryPortIsSet() const;
|
||||
void unsetQuery_port();
|
||||
void setQueryPort(int32_t value);
|
||||
|
||||
utility::string_t getGameId() const;
|
||||
bool gameIdIsSet() const;
|
||||
void unsetGame_id();
|
||||
void setGameId(const utility::string_t& value);
|
||||
|
||||
utility::string_t getGameIconUrl() const;
|
||||
bool gameIconUrlIsSet() const;
|
||||
void unsetGame_icon_url();
|
||||
void setGameIconUrl(const utility::string_t& value);
|
||||
|
||||
utility::string_t getVersion() const;
|
||||
bool versionIsSet() const;
|
||||
void unsetVersion();
|
||||
void setVersion(const utility::string_t& value);
|
||||
|
||||
bool isFeatured() const;
|
||||
bool featuredIsSet() const;
|
||||
void unsetFeatured();
|
||||
void setFeatured(bool value);
|
||||
|
||||
utility::string_t getClusterId() const;
|
||||
bool clusterIdIsSet() const;
|
||||
void unsetCluster_id();
|
||||
void setClusterId(const utility::string_t& value);
|
||||
|
||||
utility::string_t getWebsiteUrl() const;
|
||||
bool websiteUrlIsSet() const;
|
||||
void unsetWebsite_url();
|
||||
void setWebsiteUrl(const utility::string_t& value);
|
||||
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t& value);
|
||||
|
||||
utility::string_t getOwnerId() const;
|
||||
bool ownerIdIsSet() const;
|
||||
void unsetOwner_id();
|
||||
void setOwnerId(const utility::string_t& value);
|
||||
|
||||
double getUptime() const;
|
||||
bool uptimeIsSet() const;
|
||||
void unsetUptime();
|
||||
void setUptime(double value);
|
||||
|
||||
std::shared_ptr<ServerStatus> getStatus() const;
|
||||
bool statusIsSet() const;
|
||||
void unsetStatus();
|
||||
void setStatus(const std::shared_ptr<ServerStatus>& value);
|
||||
|
||||
int32_t getPing() const;
|
||||
bool pingIsSet() const;
|
||||
void unsetPing();
|
||||
void setPing(int32_t value);
|
||||
|
||||
utility::string_t getMap() const;
|
||||
bool mapIsSet() const;
|
||||
void unsetmap();
|
||||
void setMap(const utility::string_t& value);
|
||||
|
||||
int32_t getUsedSlots() const;
|
||||
bool usedSlotsIsSet() const;
|
||||
void unsetUsed_slots();
|
||||
void setUsedSlots(int32_t value);
|
||||
|
||||
int32_t getMaxSlots() const;
|
||||
bool maxSlotsIsSet() const;
|
||||
void unsetMax_slots();
|
||||
void setMaxSlots(int32_t value);
|
||||
|
||||
utility::string_t getMotd() const;
|
||||
bool motdIsSet() const;
|
||||
void unsetMotd();
|
||||
void setMotd(const utility::string_t& value);
|
||||
|
||||
utility::string_t getPlayers() const;
|
||||
bool playersIsSet() const;
|
||||
void unsetPlayers();
|
||||
void setPlayers(const utility::string_t& value);
|
||||
|
||||
utility::datetime getLastOnline() const;
|
||||
bool lastOnlineIsSet() const;
|
||||
void unsetLast_online();
|
||||
void setLastOnline(const utility::datetime& value);
|
||||
|
||||
utility::string_t getCountry() const;
|
||||
bool countryIsSet() const;
|
||||
void unsetCountry();
|
||||
void setCountry(const utility::string_t& value);
|
||||
namespace models
|
||||
{
|
||||
|
||||
class GameServer : public ModelBase
|
||||
{
|
||||
public:
|
||||
GameServer();
|
||||
virtual ~GameServer();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// GameServer members
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t &value);
|
||||
|
||||
utility::string_t getAddress() const;
|
||||
bool addressIsSet() const;
|
||||
void unsetAddress();
|
||||
void setAddress(const utility::string_t &value);
|
||||
|
||||
int32_t getGamePort() const;
|
||||
bool gamePortIsSet() const;
|
||||
void unsetGame_port();
|
||||
void setGamePort(int32_t value);
|
||||
|
||||
int32_t getQueryPort() const;
|
||||
bool queryPortIsSet() const;
|
||||
void unsetQuery_port();
|
||||
void setQueryPort(int32_t value);
|
||||
|
||||
utility::string_t getGameId() const;
|
||||
bool gameIdIsSet() const;
|
||||
void unsetGame_id();
|
||||
void setGameId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getGameIconUrl() const;
|
||||
bool gameIconUrlIsSet() const;
|
||||
void unsetGame_icon_url();
|
||||
void setGameIconUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getVersion() const;
|
||||
bool versionIsSet() const;
|
||||
void unsetVersion();
|
||||
void setVersion(const utility::string_t &value);
|
||||
|
||||
bool isFeatured() const;
|
||||
bool featuredIsSet() const;
|
||||
void unsetFeatured();
|
||||
void setFeatured(bool value);
|
||||
|
||||
utility::string_t getClusterId() const;
|
||||
bool clusterIdIsSet() const;
|
||||
void unsetCluster_id();
|
||||
void setClusterId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getWebsiteUrl() const;
|
||||
bool websiteUrlIsSet() const;
|
||||
void unsetWebsite_url();
|
||||
void setWebsiteUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getOwnerId() const;
|
||||
bool ownerIdIsSet() const;
|
||||
void unsetOwner_id();
|
||||
void setOwnerId(const utility::string_t &value);
|
||||
|
||||
double getUptime() const;
|
||||
bool uptimeIsSet() const;
|
||||
void unsetUptime();
|
||||
void setUptime(double value);
|
||||
|
||||
std::shared_ptr<ServerStatus> getStatus() const;
|
||||
bool statusIsSet() const;
|
||||
void unsetStatus();
|
||||
void setStatus(const std::shared_ptr<ServerStatus> &value);
|
||||
|
||||
int32_t getPing() const;
|
||||
bool pingIsSet() const;
|
||||
void unsetPing();
|
||||
void setPing(int32_t value);
|
||||
|
||||
utility::string_t getMap() const;
|
||||
bool mapIsSet() const;
|
||||
void unsetmap();
|
||||
void setMap(const utility::string_t &value);
|
||||
|
||||
int32_t getUsedSlots() const;
|
||||
bool usedSlotsIsSet() const;
|
||||
void unsetUsed_slots();
|
||||
void setUsedSlots(int32_t value);
|
||||
|
||||
int32_t getMaxSlots() const;
|
||||
bool maxSlotsIsSet() const;
|
||||
void unsetMax_slots();
|
||||
void setMaxSlots(int32_t value);
|
||||
|
||||
utility::string_t getMotd() const;
|
||||
bool motdIsSet() const;
|
||||
void unsetMotd();
|
||||
void setMotd(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPlayers() const;
|
||||
bool playersIsSet() const;
|
||||
void unsetPlayers();
|
||||
void setPlayers(const utility::string_t &value);
|
||||
|
||||
utility::datetime getLastOnline() const;
|
||||
bool lastOnlineIsSet() const;
|
||||
void unsetLast_online();
|
||||
void setLastOnline(const utility::datetime &value);
|
||||
|
||||
utility::string_t getCountry() const;
|
||||
bool countryIsSet() const;
|
||||
void unsetCountry();
|
||||
void setCountry(const utility::string_t &value);
|
||||
|
||||
bool isSteam() const;
|
||||
bool steamIsSet() const;
|
||||
void unsetSteam();
|
||||
void setSteam(bool value);
|
||||
|
||||
bool isSteam() const;
|
||||
bool steamIsSet() const;
|
||||
void unsetSteam();
|
||||
void setSteam(bool value);
|
||||
utility::string_t getDiscordServerId() const;
|
||||
bool discordServerIdIsSet() const;
|
||||
void unsetDiscord_server_id();
|
||||
void setDiscordServerId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDiscordServerId() const;
|
||||
bool discordServerIdIsSet() const;
|
||||
void unsetDiscord_server_id();
|
||||
void setDiscordServerId(const utility::string_t& value);
|
||||
utility::string_t getYoutubeVideoUrl() const;
|
||||
bool youtubeVideoUrlIsSet() const;
|
||||
void unsetYoutube_video_url();
|
||||
void setYoutubeVideoUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getYoutubeVideoUrl() const;
|
||||
bool youtubeVideoUrlIsSet() const;
|
||||
void unsetYoutube_video_url();
|
||||
void setYoutubeVideoUrl(const utility::string_t& value);
|
||||
utility::string_t getTags() const;
|
||||
bool tagsIsSet() const;
|
||||
void unsetTags();
|
||||
void setTags(const utility::string_t &value);
|
||||
|
||||
utility::string_t getTags() const;
|
||||
bool tagsIsSet() const;
|
||||
void unsetTags();
|
||||
void setTags(const utility::string_t& value);
|
||||
int32_t getCommentCount() const;
|
||||
bool commentCountIsSet() const;
|
||||
void unsetComment_count();
|
||||
void setCommentCount(int32_t value);
|
||||
|
||||
int32_t getCommentCount() const;
|
||||
bool commentCountIsSet() const;
|
||||
void unsetComment_count();
|
||||
void setCommentCount(int32_t value);
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime& value);
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime& value);
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
utility::string_t m_Address;
|
||||
bool m_AddressIsSet;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
int32_t m_Game_port;
|
||||
bool m_Game_portIsSet;
|
||||
|
||||
utility::string_t m_Address;
|
||||
bool m_AddressIsSet;
|
||||
int32_t m_Query_port;
|
||||
bool m_Query_portIsSet;
|
||||
|
||||
int32_t m_Game_port;
|
||||
bool m_Game_portIsSet;
|
||||
utility::string_t m_Game_id;
|
||||
bool m_Game_idIsSet;
|
||||
|
||||
int32_t m_Query_port;
|
||||
bool m_Query_portIsSet;
|
||||
utility::string_t m_Game_icon_url;
|
||||
bool m_Game_icon_urlIsSet;
|
||||
|
||||
utility::string_t m_Game_id;
|
||||
bool m_Game_idIsSet;
|
||||
utility::string_t m_Version;
|
||||
bool m_VersionIsSet;
|
||||
|
||||
utility::string_t m_Game_icon_url;
|
||||
bool m_Game_icon_urlIsSet;
|
||||
bool m_Featured;
|
||||
bool m_FeaturedIsSet;
|
||||
|
||||
utility::string_t m_Version;
|
||||
bool m_VersionIsSet;
|
||||
utility::string_t m_Cluster_id;
|
||||
bool m_Cluster_idIsSet;
|
||||
|
||||
bool m_Featured;
|
||||
bool m_FeaturedIsSet;
|
||||
utility::string_t m_Website_url;
|
||||
bool m_Website_urlIsSet;
|
||||
|
||||
utility::string_t m_Cluster_id;
|
||||
bool m_Cluster_idIsSet;
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::string_t m_Website_url;
|
||||
bool m_Website_urlIsSet;
|
||||
utility::string_t m_Owner_id;
|
||||
bool m_Owner_idIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
double m_Uptime;
|
||||
bool m_UptimeIsSet;
|
||||
|
||||
utility::string_t m_Owner_id;
|
||||
bool m_Owner_idIsSet;
|
||||
std::shared_ptr<ServerStatus> m_Status;
|
||||
bool m_StatusIsSet;
|
||||
|
||||
double m_Uptime;
|
||||
bool m_UptimeIsSet;
|
||||
int32_t m_Ping;
|
||||
bool m_PingIsSet;
|
||||
|
||||
std::shared_ptr<ServerStatus> m_Status;
|
||||
bool m_StatusIsSet;
|
||||
utility::string_t m_map;
|
||||
bool m_mapIsSet;
|
||||
|
||||
int32_t m_Ping;
|
||||
bool m_PingIsSet;
|
||||
int32_t m_Used_slots;
|
||||
bool m_Used_slotsIsSet;
|
||||
|
||||
utility::string_t m_map;
|
||||
bool m_mapIsSet;
|
||||
int32_t m_Max_slots;
|
||||
bool m_Max_slotsIsSet;
|
||||
|
||||
int32_t m_Used_slots;
|
||||
bool m_Used_slotsIsSet;
|
||||
utility::string_t m_Motd;
|
||||
bool m_MotdIsSet;
|
||||
|
||||
int32_t m_Max_slots;
|
||||
bool m_Max_slotsIsSet;
|
||||
utility::string_t m_Players;
|
||||
bool m_PlayersIsSet;
|
||||
|
||||
utility::string_t m_Motd;
|
||||
bool m_MotdIsSet;
|
||||
utility::datetime m_Last_online;
|
||||
bool m_Last_onlineIsSet;
|
||||
|
||||
utility::string_t m_Players;
|
||||
bool m_PlayersIsSet;
|
||||
utility::string_t m_Country;
|
||||
bool m_CountryIsSet;
|
||||
|
||||
utility::datetime m_Last_online;
|
||||
bool m_Last_onlineIsSet;
|
||||
bool m_Steam;
|
||||
bool m_SteamIsSet;
|
||||
|
||||
utility::string_t m_Country;
|
||||
bool m_CountryIsSet;
|
||||
utility::string_t m_Discord_server_id;
|
||||
bool m_Discord_server_idIsSet;
|
||||
|
||||
bool m_Steam;
|
||||
bool m_SteamIsSet;
|
||||
utility::string_t m_Youtube_video_url;
|
||||
bool m_Youtube_video_urlIsSet;
|
||||
|
||||
utility::string_t m_Discord_server_id;
|
||||
bool m_Discord_server_idIsSet;
|
||||
utility::string_t m_Tags;
|
||||
bool m_TagsIsSet;
|
||||
|
||||
utility::string_t m_Youtube_video_url;
|
||||
bool m_Youtube_video_urlIsSet;
|
||||
int32_t m_Comment_count;
|
||||
bool m_Comment_countIsSet;
|
||||
|
||||
utility::string_t m_Tags;
|
||||
bool m_TagsIsSet;
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
int32_t m_Comment_count;
|
||||
bool m_Comment_countIsSet;
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
};
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_GameServer_H_ */
|
||||
|
@ -13,163 +13,158 @@
|
||||
/*
|
||||
* GameServerCluster.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_GameServerCluster_H_
|
||||
#define TRIBUFU_MODELS_GameServerCluster_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class GameServerCluster
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
GameServerCluster();
|
||||
virtual ~GameServerCluster();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class GameServerCluster : public ModelBase
|
||||
{
|
||||
public:
|
||||
GameServerCluster();
|
||||
virtual ~GameServerCluster();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// GameServerCluster members
|
||||
/////////////////////////////////////////////
|
||||
/// GameServerCluster members
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t& value);
|
||||
utility::string_t getGameId() const;
|
||||
bool gameIdIsSet() const;
|
||||
void unsetGame_id();
|
||||
void setGameId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getGameId() const;
|
||||
bool gameIdIsSet() const;
|
||||
void unsetGame_id();
|
||||
void setGameId(const utility::string_t& value);
|
||||
utility::string_t getWebsiteUrl() const;
|
||||
bool websiteUrlIsSet() const;
|
||||
void unsetWebsite_url();
|
||||
void setWebsiteUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getWebsiteUrl() const;
|
||||
bool websiteUrlIsSet() const;
|
||||
void unsetWebsite_url();
|
||||
void setWebsiteUrl(const utility::string_t& value);
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t& value);
|
||||
utility::string_t getOwnerId() const;
|
||||
bool ownerIdIsSet() const;
|
||||
void unsetOwner_id();
|
||||
void setOwnerId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getOwnerId() const;
|
||||
bool ownerIdIsSet() const;
|
||||
void unsetOwner_id();
|
||||
void setOwnerId(const utility::string_t& value);
|
||||
utility::string_t getDiscordServerId() const;
|
||||
bool discordServerIdIsSet() const;
|
||||
void unsetDiscord_server_id();
|
||||
void setDiscordServerId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDiscordServerId() const;
|
||||
bool discordServerIdIsSet() const;
|
||||
void unsetDiscord_server_id();
|
||||
void setDiscordServerId(const utility::string_t& value);
|
||||
utility::string_t getYoutubeVideoUrl() const;
|
||||
bool youtubeVideoUrlIsSet() const;
|
||||
void unsetYoutube_video_url();
|
||||
void setYoutubeVideoUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getYoutubeVideoUrl() const;
|
||||
bool youtubeVideoUrlIsSet() const;
|
||||
void unsetYoutube_video_url();
|
||||
void setYoutubeVideoUrl(const utility::string_t& value);
|
||||
utility::string_t getTags() const;
|
||||
bool tagsIsSet() const;
|
||||
void unsetTags();
|
||||
void setTags(const utility::string_t &value);
|
||||
|
||||
utility::string_t getTags() const;
|
||||
bool tagsIsSet() const;
|
||||
void unsetTags();
|
||||
void setTags(const utility::string_t& value);
|
||||
int32_t getCommentCount() const;
|
||||
bool commentCountIsSet() const;
|
||||
void unsetComment_count();
|
||||
void setCommentCount(int32_t value);
|
||||
|
||||
int32_t getCommentCount() const;
|
||||
bool commentCountIsSet() const;
|
||||
void unsetComment_count();
|
||||
void setCommentCount(int32_t value);
|
||||
int32_t getServerCount() const;
|
||||
bool serverCountIsSet() const;
|
||||
void unsetServer_count();
|
||||
void setServerCount(int32_t value);
|
||||
|
||||
int32_t getServerCount() const;
|
||||
bool serverCountIsSet() const;
|
||||
void unsetServer_count();
|
||||
void setServerCount(int32_t value);
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime& value);
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime& value);
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
utility::string_t m_Game_id;
|
||||
bool m_Game_idIsSet;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
utility::string_t m_Website_url;
|
||||
bool m_Website_urlIsSet;
|
||||
|
||||
utility::string_t m_Game_id;
|
||||
bool m_Game_idIsSet;
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::string_t m_Website_url;
|
||||
bool m_Website_urlIsSet;
|
||||
utility::string_t m_Owner_id;
|
||||
bool m_Owner_idIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
utility::string_t m_Discord_server_id;
|
||||
bool m_Discord_server_idIsSet;
|
||||
|
||||
utility::string_t m_Owner_id;
|
||||
bool m_Owner_idIsSet;
|
||||
utility::string_t m_Youtube_video_url;
|
||||
bool m_Youtube_video_urlIsSet;
|
||||
|
||||
utility::string_t m_Discord_server_id;
|
||||
bool m_Discord_server_idIsSet;
|
||||
utility::string_t m_Tags;
|
||||
bool m_TagsIsSet;
|
||||
|
||||
utility::string_t m_Youtube_video_url;
|
||||
bool m_Youtube_video_urlIsSet;
|
||||
int32_t m_Comment_count;
|
||||
bool m_Comment_countIsSet;
|
||||
|
||||
utility::string_t m_Tags;
|
||||
bool m_TagsIsSet;
|
||||
int32_t m_Server_count;
|
||||
bool m_Server_countIsSet;
|
||||
|
||||
int32_t m_Comment_count;
|
||||
bool m_Comment_countIsSet;
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
int32_t m_Server_count;
|
||||
bool m_Server_countIsSet;
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
};
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_GameServerCluster_H_ */
|
||||
|
@ -13,54 +13,54 @@
|
||||
/*
|
||||
* GrantType.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_GrantType_H_
|
||||
#define TRIBUFU_MODELS_GrantType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class GrantType
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
GrantType();
|
||||
virtual ~GrantType();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
enum class eGrantType
|
||||
namespace models
|
||||
{
|
||||
GrantType_AUTHORIZATION_CODE,
|
||||
GrantType_CLIENT_CREDENTIALS,
|
||||
GrantType_PASSWORD,
|
||||
GrantType_REFRESH_TOKEN,
|
||||
};
|
||||
|
||||
eGrantType getValue() const;
|
||||
void setValue(eGrantType const value);
|
||||
class GrantType : public ModelBase
|
||||
{
|
||||
public:
|
||||
GrantType();
|
||||
virtual ~GrantType();
|
||||
|
||||
protected:
|
||||
eGrantType m_value;
|
||||
};
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
}
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
enum class eGrantType
|
||||
{
|
||||
GrantType_AUTHORIZATION_CODE,
|
||||
GrantType_CLIENT_CREDENTIALS,
|
||||
GrantType_PASSWORD,
|
||||
GrantType_REFRESH_TOKEN,
|
||||
};
|
||||
|
||||
eGrantType getValue() const;
|
||||
void setValue(eGrantType const value);
|
||||
|
||||
protected:
|
||||
eGrantType m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_GrantType_H_ */
|
||||
|
@ -13,179 +13,174 @@
|
||||
/*
|
||||
* Group.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_Group_H_
|
||||
#define TRIBUFU_MODELS_Group_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class Group
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
Group();
|
||||
virtual ~Group();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class Group : public ModelBase
|
||||
{
|
||||
public:
|
||||
Group();
|
||||
virtual ~Group();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Group members
|
||||
/////////////////////////////////////////////
|
||||
/// Group members
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
utility::string_t getUuid() const;
|
||||
bool uuidIsSet() const;
|
||||
void unsetUuid();
|
||||
void setUuid(const utility::string_t &value);
|
||||
|
||||
utility::string_t getUuid() const;
|
||||
bool uuidIsSet() const;
|
||||
void unsetUuid();
|
||||
void setUuid(const utility::string_t& value);
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
utility::string_t getTag() const;
|
||||
bool tagIsSet() const;
|
||||
void unsetTag();
|
||||
void setTag(const utility::string_t &value);
|
||||
|
||||
utility::string_t getTag() const;
|
||||
bool tagIsSet() const;
|
||||
void unsetTag();
|
||||
void setTag(const utility::string_t& value);
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t& value);
|
||||
int32_t getType() const;
|
||||
bool typeIsSet() const;
|
||||
void unsetType();
|
||||
void setType(int32_t value);
|
||||
|
||||
int32_t getType() const;
|
||||
bool typeIsSet() const;
|
||||
void unsetType();
|
||||
void setType(int32_t value);
|
||||
int32_t getPrivacy() const;
|
||||
bool privacyIsSet() const;
|
||||
void unsetPrivacy();
|
||||
void setPrivacy(int32_t value);
|
||||
|
||||
int32_t getPrivacy() const;
|
||||
bool privacyIsSet() const;
|
||||
void unsetPrivacy();
|
||||
void setPrivacy(int32_t value);
|
||||
utility::string_t getOwnerId() const;
|
||||
bool ownerIdIsSet() const;
|
||||
void unsetOwner_id();
|
||||
void setOwnerId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getOwnerId() const;
|
||||
bool ownerIdIsSet() const;
|
||||
void unsetOwner_id();
|
||||
void setOwnerId(const utility::string_t& value);
|
||||
bool isVerified() const;
|
||||
bool verifiedIsSet() const;
|
||||
void unsetVerified();
|
||||
void setVerified(bool value);
|
||||
|
||||
bool isVerified() const;
|
||||
bool verifiedIsSet() const;
|
||||
void unsetVerified();
|
||||
void setVerified(bool value);
|
||||
utility::string_t getPhotoUrl() const;
|
||||
bool photoUrlIsSet() const;
|
||||
void unsetPhoto_url();
|
||||
void setPhotoUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPhotoUrl() const;
|
||||
bool photoUrlIsSet() const;
|
||||
void unsetPhoto_url();
|
||||
void setPhotoUrl(const utility::string_t& value);
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t& value);
|
||||
int32_t getMemberCount() const;
|
||||
bool memberCountIsSet() const;
|
||||
void unsetMember_count();
|
||||
void setMemberCount(int32_t value);
|
||||
|
||||
int32_t getMemberCount() const;
|
||||
bool memberCountIsSet() const;
|
||||
void unsetMember_count();
|
||||
void setMemberCount(int32_t value);
|
||||
int32_t getFollowerCount() const;
|
||||
bool followerCountIsSet() const;
|
||||
void unsetFollower_count();
|
||||
void setFollowerCount(int32_t value);
|
||||
|
||||
int32_t getFollowerCount() const;
|
||||
bool followerCountIsSet() const;
|
||||
void unsetFollower_count();
|
||||
void setFollowerCount(int32_t value);
|
||||
int32_t getViewCount() const;
|
||||
bool viewCountIsSet() const;
|
||||
void unsetView_count();
|
||||
void setViewCount(int32_t value);
|
||||
|
||||
int32_t getViewCount() const;
|
||||
bool viewCountIsSet() const;
|
||||
void unsetView_count();
|
||||
void setViewCount(int32_t value);
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime& value);
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime& value);
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
utility::string_t m_Tag;
|
||||
bool m_TagIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
utility::string_t m_Tag;
|
||||
bool m_TagIsSet;
|
||||
int32_t m_Type;
|
||||
bool m_TypeIsSet;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
int32_t m_Privacy;
|
||||
bool m_PrivacyIsSet;
|
||||
|
||||
int32_t m_Type;
|
||||
bool m_TypeIsSet;
|
||||
utility::string_t m_Owner_id;
|
||||
bool m_Owner_idIsSet;
|
||||
|
||||
int32_t m_Privacy;
|
||||
bool m_PrivacyIsSet;
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
|
||||
utility::string_t m_Owner_id;
|
||||
bool m_Owner_idIsSet;
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
int32_t m_Member_count;
|
||||
bool m_Member_countIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
int32_t m_Follower_count;
|
||||
bool m_Follower_countIsSet;
|
||||
|
||||
int32_t m_Member_count;
|
||||
bool m_Member_countIsSet;
|
||||
int32_t m_View_count;
|
||||
bool m_View_countIsSet;
|
||||
|
||||
int32_t m_Follower_count;
|
||||
bool m_Follower_countIsSet;
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
int32_t m_View_count;
|
||||
bool m_View_countIsSet;
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
};
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Group_H_ */
|
||||
|
@ -13,112 +13,108 @@
|
||||
/*
|
||||
* GroupGame.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_GroupGame_H_
|
||||
#define TRIBUFU_MODELS_GroupGame_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include "tribufu++/model/Application.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/Group.h"
|
||||
#include "tribufu++/AnyType.h"
|
||||
#include "tribufu++/model/Application.h"
|
||||
#include "tribufu++/model/Group.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
class Group;
|
||||
class Application;
|
||||
|
||||
|
||||
class GroupGame
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
GroupGame();
|
||||
virtual ~GroupGame();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class Group;
|
||||
class Application;
|
||||
|
||||
void validate() override;
|
||||
class GroupGame : public ModelBase
|
||||
{
|
||||
public:
|
||||
GroupGame();
|
||||
virtual ~GroupGame();
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// GroupGame members
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// GroupGame members
|
||||
|
||||
utility::string_t getGroupId() const;
|
||||
bool groupIdIsSet() const;
|
||||
void unsetGroup_id();
|
||||
void setGroupId(const utility::string_t& value);
|
||||
utility::string_t getGroupId() const;
|
||||
bool groupIdIsSet() const;
|
||||
void unsetGroup_id();
|
||||
void setGroupId(const utility::string_t &value);
|
||||
|
||||
std::shared_ptr<Group> getGroup() const;
|
||||
bool groupIsSet() const;
|
||||
void unsetGroup();
|
||||
void setGroup(const std::shared_ptr<Group>& value);
|
||||
std::shared_ptr<Group> getGroup() const;
|
||||
bool groupIsSet() const;
|
||||
void unsetGroup();
|
||||
void setGroup(const std::shared_ptr<Group> &value);
|
||||
|
||||
utility::string_t getApplicationId() const;
|
||||
bool applicationIdIsSet() const;
|
||||
void unsetApplication_id();
|
||||
void setApplicationId(const utility::string_t& value);
|
||||
utility::string_t getApplicationId() const;
|
||||
bool applicationIdIsSet() const;
|
||||
void unsetApplication_id();
|
||||
void setApplicationId(const utility::string_t &value);
|
||||
|
||||
std::shared_ptr<Application> getApplication() const;
|
||||
bool applicationIsSet() const;
|
||||
void unsetApplication();
|
||||
void setApplication(const std::shared_ptr<Application>& value);
|
||||
std::shared_ptr<Application> getApplication() const;
|
||||
bool applicationIsSet() const;
|
||||
void unsetApplication();
|
||||
void setApplication(const std::shared_ptr<Application> &value);
|
||||
|
||||
std::shared_ptr<AnyType> getStats() const;
|
||||
bool statsIsSet() const;
|
||||
void unsetStats();
|
||||
void setStats(const std::shared_ptr<AnyType>& value);
|
||||
std::shared_ptr<AnyType> getStats() const;
|
||||
bool statsIsSet() const;
|
||||
void unsetStats();
|
||||
void setStats(const std::shared_ptr<AnyType> &value);
|
||||
|
||||
utility::datetime getAcquired() const;
|
||||
bool acquiredIsSet() const;
|
||||
void unsetAcquired();
|
||||
void setAcquired(const utility::datetime& value);
|
||||
utility::datetime getAcquired() const;
|
||||
bool acquiredIsSet() const;
|
||||
void unsetAcquired();
|
||||
void setAcquired(const utility::datetime &value);
|
||||
|
||||
utility::datetime getLastUsed() const;
|
||||
bool lastUsedIsSet() const;
|
||||
void unsetLast_used();
|
||||
void setLastUsed(const utility::datetime& value);
|
||||
utility::datetime getLastUsed() const;
|
||||
bool lastUsedIsSet() const;
|
||||
void unsetLast_used();
|
||||
void setLastUsed(const utility::datetime &value);
|
||||
|
||||
protected:
|
||||
utility::string_t m_Group_id;
|
||||
bool m_Group_idIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Group_id;
|
||||
bool m_Group_idIsSet;
|
||||
std::shared_ptr<Group> m_Group;
|
||||
bool m_GroupIsSet;
|
||||
|
||||
std::shared_ptr<Group> m_Group;
|
||||
bool m_GroupIsSet;
|
||||
utility::string_t m_Application_id;
|
||||
bool m_Application_idIsSet;
|
||||
|
||||
utility::string_t m_Application_id;
|
||||
bool m_Application_idIsSet;
|
||||
std::shared_ptr<Application> m_Application;
|
||||
bool m_ApplicationIsSet;
|
||||
|
||||
std::shared_ptr<Application> m_Application;
|
||||
bool m_ApplicationIsSet;
|
||||
std::shared_ptr<AnyType> m_Stats;
|
||||
bool m_StatsIsSet;
|
||||
|
||||
std::shared_ptr<AnyType> m_Stats;
|
||||
bool m_StatsIsSet;
|
||||
utility::datetime m_Acquired;
|
||||
bool m_AcquiredIsSet;
|
||||
|
||||
utility::datetime m_Acquired;
|
||||
bool m_AcquiredIsSet;
|
||||
utility::datetime m_Last_used;
|
||||
bool m_Last_usedIsSet;
|
||||
};
|
||||
|
||||
utility::datetime m_Last_used;
|
||||
bool m_Last_usedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_GroupGame_H_ */
|
||||
|
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* GroupMember.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_GroupMember_H_
|
||||
@ -23,115 +23,111 @@
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/GroupRank.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class GroupMember
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
GroupMember();
|
||||
virtual ~GroupMember();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class GroupMember : public ModelBase
|
||||
{
|
||||
public:
|
||||
GroupMember();
|
||||
virtual ~GroupMember();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// GroupMember members
|
||||
/////////////////////////////////////////////
|
||||
/// GroupMember members
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
utility::string_t getUuid() const;
|
||||
bool uuidIsSet() const;
|
||||
void unsetUuid();
|
||||
void setUuid(const utility::string_t &value);
|
||||
|
||||
utility::string_t getUuid() const;
|
||||
bool uuidIsSet() const;
|
||||
void unsetUuid();
|
||||
void setUuid(const utility::string_t& value);
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
utility::string_t getDisplayName() const;
|
||||
bool displayNameIsSet() const;
|
||||
void unsetDisplay_name();
|
||||
void setDisplayName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDisplayName() const;
|
||||
bool displayNameIsSet() const;
|
||||
void unsetDisplay_name();
|
||||
void setDisplayName(const utility::string_t& value);
|
||||
bool isVerified() const;
|
||||
bool verifiedIsSet() const;
|
||||
void unsetVerified();
|
||||
void setVerified(bool value);
|
||||
|
||||
bool isVerified() const;
|
||||
bool verifiedIsSet() const;
|
||||
void unsetVerified();
|
||||
void setVerified(bool value);
|
||||
utility::string_t getPhotoUrl() const;
|
||||
bool photoUrlIsSet() const;
|
||||
void unsetPhoto_url();
|
||||
void setPhotoUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPhotoUrl() const;
|
||||
bool photoUrlIsSet() const;
|
||||
void unsetPhoto_url();
|
||||
void setPhotoUrl(const utility::string_t& value);
|
||||
utility::datetime getLastOnline() const;
|
||||
bool lastOnlineIsSet() const;
|
||||
void unsetLast_online();
|
||||
void setLastOnline(const utility::datetime &value);
|
||||
|
||||
utility::datetime getLastOnline() const;
|
||||
bool lastOnlineIsSet() const;
|
||||
void unsetLast_online();
|
||||
void setLastOnline(const utility::datetime& value);
|
||||
std::shared_ptr<GroupRank> getRank() const;
|
||||
bool rankIsSet() const;
|
||||
void unsetRank();
|
||||
void setRank(const std::shared_ptr<GroupRank> &value);
|
||||
|
||||
std::shared_ptr<GroupRank> getRank() const;
|
||||
bool rankIsSet() const;
|
||||
void unsetRank();
|
||||
void setRank(const std::shared_ptr<GroupRank>& value);
|
||||
utility::datetime getSince() const;
|
||||
bool sinceIsSet() const;
|
||||
void unsetSince();
|
||||
void setSince(const utility::datetime &value);
|
||||
|
||||
utility::datetime getSince() const;
|
||||
bool sinceIsSet() const;
|
||||
void unsetSince();
|
||||
void setSince(const utility::datetime& value);
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
utility::datetime m_Last_online;
|
||||
bool m_Last_onlineIsSet;
|
||||
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
std::shared_ptr<GroupRank> m_Rank;
|
||||
bool m_RankIsSet;
|
||||
|
||||
utility::datetime m_Last_online;
|
||||
bool m_Last_onlineIsSet;
|
||||
utility::datetime m_Since;
|
||||
bool m_SinceIsSet;
|
||||
};
|
||||
|
||||
std::shared_ptr<GroupRank> m_Rank;
|
||||
bool m_RankIsSet;
|
||||
|
||||
utility::datetime m_Since;
|
||||
bool m_SinceIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_GroupMember_H_ */
|
||||
|
@ -13,53 +13,53 @@
|
||||
/*
|
||||
* GroupRank.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_GroupRank_H_
|
||||
#define TRIBUFU_MODELS_GroupRank_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class GroupRank
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
GroupRank();
|
||||
virtual ~GroupRank();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
enum class eGroupRank
|
||||
namespace models
|
||||
{
|
||||
GroupRank_MEMBER,
|
||||
GroupRank_LEADER,
|
||||
GroupRank_OWNER,
|
||||
};
|
||||
|
||||
eGroupRank getValue() const;
|
||||
void setValue(eGroupRank const value);
|
||||
class GroupRank : public ModelBase
|
||||
{
|
||||
public:
|
||||
GroupRank();
|
||||
virtual ~GroupRank();
|
||||
|
||||
protected:
|
||||
eGroupRank m_value;
|
||||
};
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
}
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
enum class eGroupRank
|
||||
{
|
||||
GroupRank_MEMBER,
|
||||
GroupRank_LEADER,
|
||||
GroupRank_OWNER,
|
||||
};
|
||||
|
||||
eGroupRank getValue() const;
|
||||
void setValue(eGroupRank const value);
|
||||
|
||||
protected:
|
||||
eGroupRank m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_GroupRank_H_ */
|
||||
|
@ -13,59 +13,54 @@
|
||||
/*
|
||||
* HashViewModel.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_HashViewModel_H_
|
||||
#define TRIBUFU_MODELS_HashViewModel_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class HashViewModel
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
HashViewModel();
|
||||
virtual ~HashViewModel();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class HashViewModel : public ModelBase
|
||||
{
|
||||
public:
|
||||
HashViewModel();
|
||||
virtual ~HashViewModel();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// HashViewModel members
|
||||
/////////////////////////////////////////////
|
||||
/// HashViewModel members
|
||||
|
||||
utility::string_t getValue() const;
|
||||
bool valueIsSet() const;
|
||||
void unsetValue();
|
||||
void setValue(const utility::string_t &value);
|
||||
|
||||
utility::string_t getValue() const;
|
||||
bool valueIsSet() const;
|
||||
void unsetValue();
|
||||
void setValue(const utility::string_t& value);
|
||||
protected:
|
||||
utility::string_t m_Value;
|
||||
bool m_ValueIsSet;
|
||||
};
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Value;
|
||||
bool m_ValueIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_HashViewModel_H_ */
|
||||
|
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* IntrospectRequest.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_IntrospectRequest_H_
|
||||
@ -23,59 +23,55 @@
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/TokenHintType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class IntrospectRequest
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
IntrospectRequest();
|
||||
virtual ~IntrospectRequest();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class IntrospectRequest : public ModelBase
|
||||
{
|
||||
public:
|
||||
IntrospectRequest();
|
||||
virtual ~IntrospectRequest();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// IntrospectRequest members
|
||||
/////////////////////////////////////////////
|
||||
/// IntrospectRequest members
|
||||
|
||||
utility::string_t getToken() const;
|
||||
bool tokenIsSet() const;
|
||||
void unsetToken();
|
||||
void setToken(const utility::string_t &value);
|
||||
|
||||
utility::string_t getToken() const;
|
||||
bool tokenIsSet() const;
|
||||
void unsetToken();
|
||||
void setToken(const utility::string_t& value);
|
||||
std::shared_ptr<TokenHintType> getTokenTypeHint() const;
|
||||
bool tokenTypeHintIsSet() const;
|
||||
void unsetToken_type_hint();
|
||||
void setTokenTypeHint(const std::shared_ptr<TokenHintType> &value);
|
||||
|
||||
std::shared_ptr<TokenHintType> getTokenTypeHint() const;
|
||||
bool tokenTypeHintIsSet() const;
|
||||
void unsetToken_type_hint();
|
||||
void setTokenTypeHint(const std::shared_ptr<TokenHintType>& value);
|
||||
protected:
|
||||
utility::string_t m_Token;
|
||||
bool m_TokenIsSet;
|
||||
|
||||
std::shared_ptr<TokenHintType> m_Token_type_hint;
|
||||
bool m_Token_type_hintIsSet;
|
||||
};
|
||||
|
||||
protected:
|
||||
utility::string_t m_Token;
|
||||
bool m_TokenIsSet;
|
||||
|
||||
std::shared_ptr<TokenHintType> m_Token_type_hint;
|
||||
bool m_Token_type_hintIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_IntrospectRequest_H_ */
|
||||
|
@ -13,195 +13,190 @@
|
||||
/*
|
||||
* IpAddress.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_IpAddress_H_
|
||||
#define TRIBUFU_MODELS_IpAddress_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class IpAddress
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
IpAddress();
|
||||
virtual ~IpAddress();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class IpAddress : public ModelBase
|
||||
{
|
||||
public:
|
||||
IpAddress();
|
||||
virtual ~IpAddress();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// IpAddress members
|
||||
/////////////////////////////////////////////
|
||||
/// IpAddress members
|
||||
|
||||
utility::string_t getAddress() const;
|
||||
bool addressIsSet() const;
|
||||
void unsetAddress();
|
||||
void setAddress(const utility::string_t &value);
|
||||
|
||||
utility::string_t getAddress() const;
|
||||
bool addressIsSet() const;
|
||||
void unsetAddress();
|
||||
void setAddress(const utility::string_t& value);
|
||||
int32_t getVersion() const;
|
||||
bool versionIsSet() const;
|
||||
void unsetVersion();
|
||||
void setVersion(int32_t value);
|
||||
|
||||
int32_t getVersion() const;
|
||||
bool versionIsSet() const;
|
||||
void unsetVersion();
|
||||
void setVersion(int32_t value);
|
||||
utility::string_t getNetwork() const;
|
||||
bool networkIsSet() const;
|
||||
void unsetNetwork();
|
||||
void setNetwork(const utility::string_t &value);
|
||||
|
||||
utility::string_t getNetwork() const;
|
||||
bool networkIsSet() const;
|
||||
void unsetNetwork();
|
||||
void setNetwork(const utility::string_t& value);
|
||||
bool isReserved() const;
|
||||
bool reservedIsSet() const;
|
||||
void unsetReserved();
|
||||
void setReserved(bool value);
|
||||
|
||||
bool isReserved() const;
|
||||
bool reservedIsSet() const;
|
||||
void unsetReserved();
|
||||
void setReserved(bool value);
|
||||
utility::string_t getAsn() const;
|
||||
bool asnIsSet() const;
|
||||
void unsetAsn();
|
||||
void setAsn(const utility::string_t &value);
|
||||
|
||||
utility::string_t getAsn() const;
|
||||
bool asnIsSet() const;
|
||||
void unsetAsn();
|
||||
void setAsn(const utility::string_t& value);
|
||||
utility::string_t getIsp() const;
|
||||
bool ispIsSet() const;
|
||||
void unsetIsp();
|
||||
void setIsp(const utility::string_t &value);
|
||||
|
||||
utility::string_t getIsp() const;
|
||||
bool ispIsSet() const;
|
||||
void unsetIsp();
|
||||
void setIsp(const utility::string_t& value);
|
||||
utility::string_t getContinent() const;
|
||||
bool continentIsSet() const;
|
||||
void unsetContinent();
|
||||
void setContinent(const utility::string_t &value);
|
||||
|
||||
utility::string_t getContinent() const;
|
||||
bool continentIsSet() const;
|
||||
void unsetContinent();
|
||||
void setContinent(const utility::string_t& value);
|
||||
utility::string_t getCountry() const;
|
||||
bool countryIsSet() const;
|
||||
void unsetCountry();
|
||||
void setCountry(const utility::string_t &value);
|
||||
|
||||
utility::string_t getCountry() const;
|
||||
bool countryIsSet() const;
|
||||
void unsetCountry();
|
||||
void setCountry(const utility::string_t& value);
|
||||
utility::string_t getRegion() const;
|
||||
bool regionIsSet() const;
|
||||
void unsetRegion();
|
||||
void setRegion(const utility::string_t &value);
|
||||
|
||||
utility::string_t getRegion() const;
|
||||
bool regionIsSet() const;
|
||||
void unsetRegion();
|
||||
void setRegion(const utility::string_t& value);
|
||||
utility::string_t getCity() const;
|
||||
bool cityIsSet() const;
|
||||
void unsetCity();
|
||||
void setCity(const utility::string_t &value);
|
||||
|
||||
utility::string_t getCity() const;
|
||||
bool cityIsSet() const;
|
||||
void unsetCity();
|
||||
void setCity(const utility::string_t& value);
|
||||
utility::string_t getPostalCode() const;
|
||||
bool postalCodeIsSet() const;
|
||||
void unsetPostal_code();
|
||||
void setPostalCode(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPostalCode() const;
|
||||
bool postalCodeIsSet() const;
|
||||
void unsetPostal_code();
|
||||
void setPostalCode(const utility::string_t& value);
|
||||
utility::string_t getCallingCode() const;
|
||||
bool callingCodeIsSet() const;
|
||||
void unsetCalling_code();
|
||||
void setCallingCode(const utility::string_t &value);
|
||||
|
||||
utility::string_t getCallingCode() const;
|
||||
bool callingCodeIsSet() const;
|
||||
void unsetCalling_code();
|
||||
void setCallingCode(const utility::string_t& value);
|
||||
utility::string_t getTld() const;
|
||||
bool tldIsSet() const;
|
||||
void unsetTld();
|
||||
void setTld(const utility::string_t &value);
|
||||
|
||||
utility::string_t getTld() const;
|
||||
bool tldIsSet() const;
|
||||
void unsetTld();
|
||||
void setTld(const utility::string_t& value);
|
||||
utility::string_t getLanguage() const;
|
||||
bool languageIsSet() const;
|
||||
void unsetLanguage();
|
||||
void setLanguage(const utility::string_t &value);
|
||||
|
||||
utility::string_t getLanguage() const;
|
||||
bool languageIsSet() const;
|
||||
void unsetLanguage();
|
||||
void setLanguage(const utility::string_t& value);
|
||||
utility::string_t getTimezone() const;
|
||||
bool timezoneIsSet() const;
|
||||
void unsetTimezone();
|
||||
void setTimezone(const utility::string_t &value);
|
||||
|
||||
utility::string_t getTimezone() const;
|
||||
bool timezoneIsSet() const;
|
||||
void unsetTimezone();
|
||||
void setTimezone(const utility::string_t& value);
|
||||
utility::string_t getCurrency() const;
|
||||
bool currencyIsSet() const;
|
||||
void unsetCurrency();
|
||||
void setCurrency(const utility::string_t &value);
|
||||
|
||||
utility::string_t getCurrency() const;
|
||||
bool currencyIsSet() const;
|
||||
void unsetCurrency();
|
||||
void setCurrency(const utility::string_t& value);
|
||||
float getLatitude() const;
|
||||
bool latitudeIsSet() const;
|
||||
void unsetLatitude();
|
||||
void setLatitude(float value);
|
||||
|
||||
float getLatitude() const;
|
||||
bool latitudeIsSet() const;
|
||||
void unsetLatitude();
|
||||
void setLatitude(float value);
|
||||
float getLongitude() const;
|
||||
bool longitudeIsSet() const;
|
||||
void unsetLongitude();
|
||||
void setLongitude(float value);
|
||||
|
||||
float getLongitude() const;
|
||||
bool longitudeIsSet() const;
|
||||
void unsetLongitude();
|
||||
void setLongitude(float value);
|
||||
protected:
|
||||
utility::string_t m_Address;
|
||||
bool m_AddressIsSet;
|
||||
|
||||
int32_t m_Version;
|
||||
bool m_VersionIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Address;
|
||||
bool m_AddressIsSet;
|
||||
utility::string_t m_Network;
|
||||
bool m_NetworkIsSet;
|
||||
|
||||
int32_t m_Version;
|
||||
bool m_VersionIsSet;
|
||||
bool m_Reserved;
|
||||
bool m_ReservedIsSet;
|
||||
|
||||
utility::string_t m_Network;
|
||||
bool m_NetworkIsSet;
|
||||
utility::string_t m_Asn;
|
||||
bool m_AsnIsSet;
|
||||
|
||||
bool m_Reserved;
|
||||
bool m_ReservedIsSet;
|
||||
utility::string_t m_Isp;
|
||||
bool m_IspIsSet;
|
||||
|
||||
utility::string_t m_Asn;
|
||||
bool m_AsnIsSet;
|
||||
utility::string_t m_Continent;
|
||||
bool m_ContinentIsSet;
|
||||
|
||||
utility::string_t m_Isp;
|
||||
bool m_IspIsSet;
|
||||
utility::string_t m_Country;
|
||||
bool m_CountryIsSet;
|
||||
|
||||
utility::string_t m_Continent;
|
||||
bool m_ContinentIsSet;
|
||||
utility::string_t m_Region;
|
||||
bool m_RegionIsSet;
|
||||
|
||||
utility::string_t m_Country;
|
||||
bool m_CountryIsSet;
|
||||
utility::string_t m_City;
|
||||
bool m_CityIsSet;
|
||||
|
||||
utility::string_t m_Region;
|
||||
bool m_RegionIsSet;
|
||||
utility::string_t m_Postal_code;
|
||||
bool m_Postal_codeIsSet;
|
||||
|
||||
utility::string_t m_City;
|
||||
bool m_CityIsSet;
|
||||
utility::string_t m_Calling_code;
|
||||
bool m_Calling_codeIsSet;
|
||||
|
||||
utility::string_t m_Postal_code;
|
||||
bool m_Postal_codeIsSet;
|
||||
utility::string_t m_Tld;
|
||||
bool m_TldIsSet;
|
||||
|
||||
utility::string_t m_Calling_code;
|
||||
bool m_Calling_codeIsSet;
|
||||
utility::string_t m_Language;
|
||||
bool m_LanguageIsSet;
|
||||
|
||||
utility::string_t m_Tld;
|
||||
bool m_TldIsSet;
|
||||
utility::string_t m_Timezone;
|
||||
bool m_TimezoneIsSet;
|
||||
|
||||
utility::string_t m_Language;
|
||||
bool m_LanguageIsSet;
|
||||
utility::string_t m_Currency;
|
||||
bool m_CurrencyIsSet;
|
||||
|
||||
utility::string_t m_Timezone;
|
||||
bool m_TimezoneIsSet;
|
||||
float m_Latitude;
|
||||
bool m_LatitudeIsSet;
|
||||
|
||||
utility::string_t m_Currency;
|
||||
bool m_CurrencyIsSet;
|
||||
float m_Longitude;
|
||||
bool m_LongitudeIsSet;
|
||||
};
|
||||
|
||||
float m_Latitude;
|
||||
bool m_LatitudeIsSet;
|
||||
|
||||
float m_Longitude;
|
||||
bool m_LongitudeIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_IpAddress_H_ */
|
||||
|
@ -13,99 +13,94 @@
|
||||
/*
|
||||
* LeaderboardItem.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_LeaderboardItem_H_
|
||||
#define TRIBUFU_MODELS_LeaderboardItem_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class LeaderboardItem
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
LeaderboardItem();
|
||||
virtual ~LeaderboardItem();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class LeaderboardItem : public ModelBase
|
||||
{
|
||||
public:
|
||||
LeaderboardItem();
|
||||
virtual ~LeaderboardItem();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// LeaderboardItem members
|
||||
/////////////////////////////////////////////
|
||||
/// LeaderboardItem members
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
utility::string_t getDisplayName() const;
|
||||
bool displayNameIsSet() const;
|
||||
void unsetDisplay_name();
|
||||
void setDisplayName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDisplayName() const;
|
||||
bool displayNameIsSet() const;
|
||||
void unsetDisplay_name();
|
||||
void setDisplayName(const utility::string_t& value);
|
||||
utility::string_t getPhotoUrl() const;
|
||||
bool photoUrlIsSet() const;
|
||||
void unsetPhoto_url();
|
||||
void setPhotoUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPhotoUrl() const;
|
||||
bool photoUrlIsSet() const;
|
||||
void unsetPhoto_url();
|
||||
void setPhotoUrl(const utility::string_t& value);
|
||||
int32_t getLevel() const;
|
||||
bool levelIsSet() const;
|
||||
void unsetLevel();
|
||||
void setLevel(int32_t value);
|
||||
|
||||
int32_t getLevel() const;
|
||||
bool levelIsSet() const;
|
||||
void unsetLevel();
|
||||
void setLevel(int32_t value);
|
||||
double getExperience() const;
|
||||
bool experienceIsSet() const;
|
||||
void unsetExperience();
|
||||
void setExperience(double value);
|
||||
|
||||
double getExperience() const;
|
||||
bool experienceIsSet() const;
|
||||
void unsetExperience();
|
||||
void setExperience(double value);
|
||||
double getPoints() const;
|
||||
bool pointsIsSet() const;
|
||||
void unsetPoints();
|
||||
void setPoints(double value);
|
||||
|
||||
double getPoints() const;
|
||||
bool pointsIsSet() const;
|
||||
void unsetPoints();
|
||||
void setPoints(double value);
|
||||
protected:
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
int32_t m_Level;
|
||||
bool m_LevelIsSet;
|
||||
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
double m_Experience;
|
||||
bool m_ExperienceIsSet;
|
||||
|
||||
int32_t m_Level;
|
||||
bool m_LevelIsSet;
|
||||
double m_Points;
|
||||
bool m_PointsIsSet;
|
||||
};
|
||||
|
||||
double m_Experience;
|
||||
bool m_ExperienceIsSet;
|
||||
|
||||
double m_Points;
|
||||
bool m_PointsIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_LeaderboardItem_H_ */
|
||||
|
@ -13,52 +13,52 @@
|
||||
/*
|
||||
* LeaderboardOrder.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_LeaderboardOrder_H_
|
||||
#define TRIBUFU_MODELS_LeaderboardOrder_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class LeaderboardOrder
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
LeaderboardOrder();
|
||||
virtual ~LeaderboardOrder();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
enum class eLeaderboardOrder
|
||||
namespace models
|
||||
{
|
||||
LeaderboardOrder_LEVEL,
|
||||
LeaderboardOrder_POINTS,
|
||||
};
|
||||
|
||||
eLeaderboardOrder getValue() const;
|
||||
void setValue(eLeaderboardOrder const value);
|
||||
class LeaderboardOrder : public ModelBase
|
||||
{
|
||||
public:
|
||||
LeaderboardOrder();
|
||||
virtual ~LeaderboardOrder();
|
||||
|
||||
protected:
|
||||
eLeaderboardOrder m_value;
|
||||
};
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
}
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
enum class eLeaderboardOrder
|
||||
{
|
||||
LeaderboardOrder_LEVEL,
|
||||
LeaderboardOrder_POINTS,
|
||||
};
|
||||
|
||||
eLeaderboardOrder getValue() const;
|
||||
void setValue(eLeaderboardOrder const value);
|
||||
|
||||
protected:
|
||||
eLeaderboardOrder m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_LeaderboardOrder_H_ */
|
||||
|
@ -13,57 +13,57 @@
|
||||
/*
|
||||
* LoginProvider.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_LoginProvider_H_
|
||||
#define TRIBUFU_MODELS_LoginProvider_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class LoginProvider
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
LoginProvider();
|
||||
virtual ~LoginProvider();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
enum class eLoginProvider
|
||||
namespace models
|
||||
{
|
||||
LoginProvider_STEAM,
|
||||
LoginProvider_EPIC,
|
||||
LoginProvider_DISCORD,
|
||||
LoginProvider_MICROSOFT,
|
||||
LoginProvider_PLAYSTATION,
|
||||
LoginProvider_GOOGLE,
|
||||
LoginProvider_APPLE,
|
||||
};
|
||||
|
||||
eLoginProvider getValue() const;
|
||||
void setValue(eLoginProvider const value);
|
||||
class LoginProvider : public ModelBase
|
||||
{
|
||||
public:
|
||||
LoginProvider();
|
||||
virtual ~LoginProvider();
|
||||
|
||||
protected:
|
||||
eLoginProvider m_value;
|
||||
};
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
}
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
enum class eLoginProvider
|
||||
{
|
||||
LoginProvider_STEAM,
|
||||
LoginProvider_EPIC,
|
||||
LoginProvider_DISCORD,
|
||||
LoginProvider_MICROSOFT,
|
||||
LoginProvider_PLAYSTATION,
|
||||
LoginProvider_GOOGLE,
|
||||
LoginProvider_APPLE,
|
||||
};
|
||||
|
||||
eLoginProvider getValue() const;
|
||||
void setValue(eLoginProvider const value);
|
||||
|
||||
protected:
|
||||
eLoginProvider m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_LoginProvider_H_ */
|
||||
|
@ -13,67 +13,62 @@
|
||||
/*
|
||||
* LoginRequest.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_LoginRequest_H_
|
||||
#define TRIBUFU_MODELS_LoginRequest_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class LoginRequest
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
LoginRequest();
|
||||
virtual ~LoginRequest();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class LoginRequest : public ModelBase
|
||||
{
|
||||
public:
|
||||
LoginRequest();
|
||||
virtual ~LoginRequest();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// LoginRequest members
|
||||
/////////////////////////////////////////////
|
||||
/// LoginRequest members
|
||||
|
||||
utility::string_t getLogin() const;
|
||||
bool loginIsSet() const;
|
||||
void unsetLogin();
|
||||
void setLogin(const utility::string_t &value);
|
||||
|
||||
utility::string_t getLogin() const;
|
||||
bool loginIsSet() const;
|
||||
void unsetLogin();
|
||||
void setLogin(const utility::string_t& value);
|
||||
utility::string_t getPassword() const;
|
||||
bool passwordIsSet() const;
|
||||
void unsetPassword();
|
||||
void setPassword(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPassword() const;
|
||||
bool passwordIsSet() const;
|
||||
void unsetPassword();
|
||||
void setPassword(const utility::string_t& value);
|
||||
protected:
|
||||
utility::string_t m_Login;
|
||||
bool m_LoginIsSet;
|
||||
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
};
|
||||
|
||||
protected:
|
||||
utility::string_t m_Login;
|
||||
bool m_LoginIsSet;
|
||||
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_LoginRequest_H_ */
|
||||
|
@ -13,85 +13,81 @@
|
||||
/*
|
||||
* LoginResponse.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_LoginResponse_H_
|
||||
#define TRIBUFU_MODELS_LoginResponse_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include "tribufu++/model/UserInfo.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
class UserInfo;
|
||||
|
||||
|
||||
class LoginResponse
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
LoginResponse();
|
||||
virtual ~LoginResponse();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class UserInfo;
|
||||
|
||||
void validate() override;
|
||||
class LoginResponse : public ModelBase
|
||||
{
|
||||
public:
|
||||
LoginResponse();
|
||||
virtual ~LoginResponse();
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// LoginResponse members
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// LoginResponse members
|
||||
|
||||
std::shared_ptr<UserInfo> getUser() const;
|
||||
bool userIsSet() const;
|
||||
void unsetUser();
|
||||
void setUser(const std::shared_ptr<UserInfo>& value);
|
||||
std::shared_ptr<UserInfo> getUser() const;
|
||||
bool userIsSet() const;
|
||||
void unsetUser();
|
||||
void setUser(const std::shared_ptr<UserInfo> &value);
|
||||
|
||||
utility::string_t getAccessToken() const;
|
||||
bool accessTokenIsSet() const;
|
||||
void unsetAccess_token();
|
||||
void setAccessToken(const utility::string_t& value);
|
||||
utility::string_t getAccessToken() const;
|
||||
bool accessTokenIsSet() const;
|
||||
void unsetAccess_token();
|
||||
void setAccessToken(const utility::string_t &value);
|
||||
|
||||
utility::string_t getRefreshToken() const;
|
||||
bool refreshTokenIsSet() const;
|
||||
void unsetRefresh_token();
|
||||
void setRefreshToken(const utility::string_t& value);
|
||||
utility::string_t getRefreshToken() const;
|
||||
bool refreshTokenIsSet() const;
|
||||
void unsetRefresh_token();
|
||||
void setRefreshToken(const utility::string_t &value);
|
||||
|
||||
int64_t getExpiresIn() const;
|
||||
bool expiresInIsSet() const;
|
||||
void unsetExpires_in();
|
||||
void setExpiresIn(int64_t value);
|
||||
int64_t getExpiresIn() const;
|
||||
bool expiresInIsSet() const;
|
||||
void unsetExpires_in();
|
||||
void setExpiresIn(int64_t value);
|
||||
|
||||
protected:
|
||||
std::shared_ptr<UserInfo> m_User;
|
||||
bool m_UserIsSet;
|
||||
|
||||
protected:
|
||||
std::shared_ptr<UserInfo> m_User;
|
||||
bool m_UserIsSet;
|
||||
utility::string_t m_Access_token;
|
||||
bool m_Access_tokenIsSet;
|
||||
|
||||
utility::string_t m_Access_token;
|
||||
bool m_Access_tokenIsSet;
|
||||
utility::string_t m_Refresh_token;
|
||||
bool m_Refresh_tokenIsSet;
|
||||
|
||||
utility::string_t m_Refresh_token;
|
||||
bool m_Refresh_tokenIsSet;
|
||||
int64_t m_Expires_in;
|
||||
bool m_Expires_inIsSet;
|
||||
};
|
||||
|
||||
int64_t m_Expires_in;
|
||||
bool m_Expires_inIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_LoginResponse_H_ */
|
||||
|
@ -13,147 +13,142 @@
|
||||
/*
|
||||
* Package.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_Package_H_
|
||||
#define TRIBUFU_MODELS_Package_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class Package
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
Package();
|
||||
virtual ~Package();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class Package : public ModelBase
|
||||
{
|
||||
public:
|
||||
Package();
|
||||
virtual ~Package();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Package members
|
||||
/////////////////////////////////////////////
|
||||
/// Package members
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t& value);
|
||||
utility::string_t getImageUrl() const;
|
||||
bool imageUrlIsSet() const;
|
||||
void unsetImage_url();
|
||||
void setImageUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getImageUrl() const;
|
||||
bool imageUrlIsSet() const;
|
||||
void unsetImage_url();
|
||||
void setImageUrl(const utility::string_t& value);
|
||||
utility::string_t getAuthorId() const;
|
||||
bool authorIdIsSet() const;
|
||||
void unsetAuthor_id();
|
||||
void setAuthorId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getAuthorId() const;
|
||||
bool authorIdIsSet() const;
|
||||
void unsetAuthor_id();
|
||||
void setAuthorId(const utility::string_t& value);
|
||||
utility::string_t getVersion() const;
|
||||
bool versionIsSet() const;
|
||||
void unsetVersion();
|
||||
void setVersion(const utility::string_t &value);
|
||||
|
||||
utility::string_t getVersion() const;
|
||||
bool versionIsSet() const;
|
||||
void unsetVersion();
|
||||
void setVersion(const utility::string_t& value);
|
||||
utility::string_t getFileUrl() const;
|
||||
bool fileUrlIsSet() const;
|
||||
void unsetFile_url();
|
||||
void setFileUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getFileUrl() const;
|
||||
bool fileUrlIsSet() const;
|
||||
void unsetFile_url();
|
||||
void setFileUrl(const utility::string_t& value);
|
||||
double getRawSize() const;
|
||||
bool rawSizeIsSet() const;
|
||||
void unsetRaw_size();
|
||||
void setRawSize(double value);
|
||||
|
||||
double getRawSize() const;
|
||||
bool rawSizeIsSet() const;
|
||||
void unsetRaw_size();
|
||||
void setRawSize(double value);
|
||||
int32_t getDownloadCount() const;
|
||||
bool downloadCountIsSet() const;
|
||||
void unsetDownload_count();
|
||||
void setDownloadCount(int32_t value);
|
||||
|
||||
int32_t getDownloadCount() const;
|
||||
bool downloadCountIsSet() const;
|
||||
void unsetDownload_count();
|
||||
void setDownloadCount(int32_t value);
|
||||
utility::datetime getLastDownload() const;
|
||||
bool lastDownloadIsSet() const;
|
||||
void unsetLast_download();
|
||||
void setLastDownload(const utility::datetime &value);
|
||||
|
||||
utility::datetime getLastDownload() const;
|
||||
bool lastDownloadIsSet() const;
|
||||
void unsetLast_download();
|
||||
void setLastDownload(const utility::datetime& value);
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime& value);
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime& value);
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
utility::string_t m_Image_url;
|
||||
bool m_Image_urlIsSet;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
utility::string_t m_Author_id;
|
||||
bool m_Author_idIsSet;
|
||||
|
||||
utility::string_t m_Image_url;
|
||||
bool m_Image_urlIsSet;
|
||||
utility::string_t m_Version;
|
||||
bool m_VersionIsSet;
|
||||
|
||||
utility::string_t m_Author_id;
|
||||
bool m_Author_idIsSet;
|
||||
utility::string_t m_File_url;
|
||||
bool m_File_urlIsSet;
|
||||
|
||||
utility::string_t m_Version;
|
||||
bool m_VersionIsSet;
|
||||
double m_Raw_size;
|
||||
bool m_Raw_sizeIsSet;
|
||||
|
||||
utility::string_t m_File_url;
|
||||
bool m_File_urlIsSet;
|
||||
int32_t m_Download_count;
|
||||
bool m_Download_countIsSet;
|
||||
|
||||
double m_Raw_size;
|
||||
bool m_Raw_sizeIsSet;
|
||||
utility::datetime m_Last_download;
|
||||
bool m_Last_downloadIsSet;
|
||||
|
||||
int32_t m_Download_count;
|
||||
bool m_Download_countIsSet;
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Last_download;
|
||||
bool m_Last_downloadIsSet;
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
};
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Package_H_ */
|
||||
|
@ -13,195 +13,190 @@
|
||||
/*
|
||||
* Profile.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_Profile_H_
|
||||
#define TRIBUFU_MODELS_Profile_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class Profile
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
Profile();
|
||||
virtual ~Profile();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class Profile : public ModelBase
|
||||
{
|
||||
public:
|
||||
Profile();
|
||||
virtual ~Profile();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Profile members
|
||||
/////////////////////////////////////////////
|
||||
/// Profile members
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
utility::string_t getUuid() const;
|
||||
bool uuidIsSet() const;
|
||||
void unsetUuid();
|
||||
void setUuid(const utility::string_t &value);
|
||||
|
||||
utility::string_t getUuid() const;
|
||||
bool uuidIsSet() const;
|
||||
void unsetUuid();
|
||||
void setUuid(const utility::string_t& value);
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
utility::string_t getDisplayName() const;
|
||||
bool displayNameIsSet() const;
|
||||
void unsetDisplay_name();
|
||||
void setDisplayName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDisplayName() const;
|
||||
bool displayNameIsSet() const;
|
||||
void unsetDisplay_name();
|
||||
void setDisplayName(const utility::string_t& value);
|
||||
bool isVerified() const;
|
||||
bool verifiedIsSet() const;
|
||||
void unsetVerified();
|
||||
void setVerified(bool value);
|
||||
|
||||
bool isVerified() const;
|
||||
bool verifiedIsSet() const;
|
||||
void unsetVerified();
|
||||
void setVerified(bool value);
|
||||
int32_t getLevel() const;
|
||||
bool levelIsSet() const;
|
||||
void unsetLevel();
|
||||
void setLevel(int32_t value);
|
||||
|
||||
int32_t getLevel() const;
|
||||
bool levelIsSet() const;
|
||||
void unsetLevel();
|
||||
void setLevel(int32_t value);
|
||||
double getExperience() const;
|
||||
bool experienceIsSet() const;
|
||||
void unsetExperience();
|
||||
void setExperience(double value);
|
||||
|
||||
double getExperience() const;
|
||||
bool experienceIsSet() const;
|
||||
void unsetExperience();
|
||||
void setExperience(double value);
|
||||
bool isPublicBirthday() const;
|
||||
bool publicBirthdayIsSet() const;
|
||||
void unsetPublic_birthday();
|
||||
void setPublicBirthday(bool value);
|
||||
|
||||
bool isPublicBirthday() const;
|
||||
bool publicBirthdayIsSet() const;
|
||||
void unsetPublic_birthday();
|
||||
void setPublicBirthday(bool value);
|
||||
utility::datetime getBirthday() const;
|
||||
bool birthdayIsSet() const;
|
||||
void unsetBirthday();
|
||||
void setBirthday(const utility::datetime &value);
|
||||
|
||||
utility::datetime getBirthday() const;
|
||||
bool birthdayIsSet() const;
|
||||
void unsetBirthday();
|
||||
void setBirthday(const utility::datetime& value);
|
||||
double getPoints() const;
|
||||
bool pointsIsSet() const;
|
||||
void unsetPoints();
|
||||
void setPoints(double value);
|
||||
|
||||
double getPoints() const;
|
||||
bool pointsIsSet() const;
|
||||
void unsetPoints();
|
||||
void setPoints(double value);
|
||||
utility::string_t getLocation() const;
|
||||
bool locationIsSet() const;
|
||||
void unsetLocation();
|
||||
void setLocation(const utility::string_t &value);
|
||||
|
||||
utility::string_t getLocation() const;
|
||||
bool locationIsSet() const;
|
||||
void unsetLocation();
|
||||
void setLocation(const utility::string_t& value);
|
||||
utility::string_t getPhotoUrl() const;
|
||||
bool photoUrlIsSet() const;
|
||||
void unsetPhoto_url();
|
||||
void setPhotoUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPhotoUrl() const;
|
||||
bool photoUrlIsSet() const;
|
||||
void unsetPhoto_url();
|
||||
void setPhotoUrl(const utility::string_t& value);
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t& value);
|
||||
utility::datetime getLastOnline() const;
|
||||
bool lastOnlineIsSet() const;
|
||||
void unsetLast_online();
|
||||
void setLastOnline(const utility::datetime &value);
|
||||
|
||||
utility::datetime getLastOnline() const;
|
||||
bool lastOnlineIsSet() const;
|
||||
void unsetLast_online();
|
||||
void setLastOnline(const utility::datetime& value);
|
||||
utility::string_t getBiography() const;
|
||||
bool biographyIsSet() const;
|
||||
void unsetBiography();
|
||||
void setBiography(const utility::string_t &value);
|
||||
|
||||
utility::string_t getBiography() const;
|
||||
bool biographyIsSet() const;
|
||||
void unsetBiography();
|
||||
void setBiography(const utility::string_t& value);
|
||||
int32_t getViewCount() const;
|
||||
bool viewCountIsSet() const;
|
||||
void unsetView_count();
|
||||
void setViewCount(int32_t value);
|
||||
|
||||
int32_t getViewCount() const;
|
||||
bool viewCountIsSet() const;
|
||||
void unsetView_count();
|
||||
void setViewCount(int32_t value);
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime& value);
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime& value);
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
int32_t m_Level;
|
||||
bool m_LevelIsSet;
|
||||
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
double m_Experience;
|
||||
bool m_ExperienceIsSet;
|
||||
|
||||
int32_t m_Level;
|
||||
bool m_LevelIsSet;
|
||||
bool m_Public_birthday;
|
||||
bool m_Public_birthdayIsSet;
|
||||
|
||||
double m_Experience;
|
||||
bool m_ExperienceIsSet;
|
||||
utility::datetime m_Birthday;
|
||||
bool m_BirthdayIsSet;
|
||||
|
||||
bool m_Public_birthday;
|
||||
bool m_Public_birthdayIsSet;
|
||||
double m_Points;
|
||||
bool m_PointsIsSet;
|
||||
|
||||
utility::datetime m_Birthday;
|
||||
bool m_BirthdayIsSet;
|
||||
utility::string_t m_Location;
|
||||
bool m_LocationIsSet;
|
||||
|
||||
double m_Points;
|
||||
bool m_PointsIsSet;
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
|
||||
utility::string_t m_Location;
|
||||
bool m_LocationIsSet;
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
utility::datetime m_Last_online;
|
||||
bool m_Last_onlineIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
utility::string_t m_Biography;
|
||||
bool m_BiographyIsSet;
|
||||
|
||||
utility::datetime m_Last_online;
|
||||
bool m_Last_onlineIsSet;
|
||||
int32_t m_View_count;
|
||||
bool m_View_countIsSet;
|
||||
|
||||
utility::string_t m_Biography;
|
||||
bool m_BiographyIsSet;
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
int32_t m_View_count;
|
||||
bool m_View_countIsSet;
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
};
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Profile_H_ */
|
||||
|
@ -13,140 +13,135 @@
|
||||
/*
|
||||
* ProfileGame.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_ProfileGame_H_
|
||||
#define TRIBUFU_MODELS_ProfileGame_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/AnyType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class ProfileGame
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
ProfileGame();
|
||||
virtual ~ProfileGame();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class ProfileGame : public ModelBase
|
||||
{
|
||||
public:
|
||||
ProfileGame();
|
||||
virtual ~ProfileGame();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ProfileGame members
|
||||
/////////////////////////////////////////////
|
||||
/// ProfileGame members
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
utility::string_t getCapsuleImageUrl() const;
|
||||
bool capsuleImageUrlIsSet() const;
|
||||
void unsetCapsule_image_url();
|
||||
void setCapsuleImageUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getCapsuleImageUrl() const;
|
||||
bool capsuleImageUrlIsSet() const;
|
||||
void unsetCapsule_image_url();
|
||||
void setCapsuleImageUrl(const utility::string_t& value);
|
||||
utility::string_t getLibraryImageUrl() const;
|
||||
bool libraryImageUrlIsSet() const;
|
||||
void unsetLibrary_image_url();
|
||||
void setLibraryImageUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getLibraryImageUrl() const;
|
||||
bool libraryImageUrlIsSet() const;
|
||||
void unsetLibrary_image_url();
|
||||
void setLibraryImageUrl(const utility::string_t& value);
|
||||
utility::string_t getSlug() const;
|
||||
bool slugIsSet() const;
|
||||
void unsetSlug();
|
||||
void setSlug(const utility::string_t &value);
|
||||
|
||||
utility::string_t getSlug() const;
|
||||
bool slugIsSet() const;
|
||||
void unsetSlug();
|
||||
void setSlug(const utility::string_t& value);
|
||||
double getTimeUsed() const;
|
||||
bool timeUsedIsSet() const;
|
||||
void unsetTime_used();
|
||||
void setTimeUsed(double value);
|
||||
|
||||
double getTimeUsed() const;
|
||||
bool timeUsedIsSet() const;
|
||||
void unsetTime_used();
|
||||
void setTimeUsed(double value);
|
||||
int32_t getUnlockedAchievements() const;
|
||||
bool unlockedAchievementsIsSet() const;
|
||||
void unsetUnlocked_achievements();
|
||||
void setUnlockedAchievements(int32_t value);
|
||||
|
||||
int32_t getUnlockedAchievements() const;
|
||||
bool unlockedAchievementsIsSet() const;
|
||||
void unsetUnlocked_achievements();
|
||||
void setUnlockedAchievements(int32_t value);
|
||||
int32_t getTotalAchievements() const;
|
||||
bool totalAchievementsIsSet() const;
|
||||
void unsetTotal_achievements();
|
||||
void setTotalAchievements(int32_t value);
|
||||
|
||||
int32_t getTotalAchievements() const;
|
||||
bool totalAchievementsIsSet() const;
|
||||
void unsetTotal_achievements();
|
||||
void setTotalAchievements(int32_t value);
|
||||
std::shared_ptr<AnyType> getStats() const;
|
||||
bool statsIsSet() const;
|
||||
void unsetStats();
|
||||
void setStats(const std::shared_ptr<AnyType> &value);
|
||||
|
||||
std::shared_ptr<AnyType> getStats() const;
|
||||
bool statsIsSet() const;
|
||||
void unsetStats();
|
||||
void setStats(const std::shared_ptr<AnyType>& value);
|
||||
utility::datetime getAcquired() const;
|
||||
bool acquiredIsSet() const;
|
||||
void unsetAcquired();
|
||||
void setAcquired(const utility::datetime &value);
|
||||
|
||||
utility::datetime getAcquired() const;
|
||||
bool acquiredIsSet() const;
|
||||
void unsetAcquired();
|
||||
void setAcquired(const utility::datetime& value);
|
||||
utility::datetime getLastUsed() const;
|
||||
bool lastUsedIsSet() const;
|
||||
void unsetLast_used();
|
||||
void setLastUsed(const utility::datetime &value);
|
||||
|
||||
utility::datetime getLastUsed() const;
|
||||
bool lastUsedIsSet() const;
|
||||
void unsetLast_used();
|
||||
void setLastUsed(const utility::datetime& value);
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
utility::string_t m_Capsule_image_url;
|
||||
bool m_Capsule_image_urlIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
utility::string_t m_Library_image_url;
|
||||
bool m_Library_image_urlIsSet;
|
||||
|
||||
utility::string_t m_Capsule_image_url;
|
||||
bool m_Capsule_image_urlIsSet;
|
||||
utility::string_t m_Slug;
|
||||
bool m_SlugIsSet;
|
||||
|
||||
utility::string_t m_Library_image_url;
|
||||
bool m_Library_image_urlIsSet;
|
||||
double m_Time_used;
|
||||
bool m_Time_usedIsSet;
|
||||
|
||||
utility::string_t m_Slug;
|
||||
bool m_SlugIsSet;
|
||||
int32_t m_Unlocked_achievements;
|
||||
bool m_Unlocked_achievementsIsSet;
|
||||
|
||||
double m_Time_used;
|
||||
bool m_Time_usedIsSet;
|
||||
int32_t m_Total_achievements;
|
||||
bool m_Total_achievementsIsSet;
|
||||
|
||||
int32_t m_Unlocked_achievements;
|
||||
bool m_Unlocked_achievementsIsSet;
|
||||
std::shared_ptr<AnyType> m_Stats;
|
||||
bool m_StatsIsSet;
|
||||
|
||||
int32_t m_Total_achievements;
|
||||
bool m_Total_achievementsIsSet;
|
||||
utility::datetime m_Acquired;
|
||||
bool m_AcquiredIsSet;
|
||||
|
||||
std::shared_ptr<AnyType> m_Stats;
|
||||
bool m_StatsIsSet;
|
||||
utility::datetime m_Last_used;
|
||||
bool m_Last_usedIsSet;
|
||||
};
|
||||
|
||||
utility::datetime m_Acquired;
|
||||
bool m_AcquiredIsSet;
|
||||
|
||||
utility::datetime m_Last_used;
|
||||
bool m_Last_usedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ProfileGame_H_ */
|
||||
|
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* ProfileGroup.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_ProfileGroup_H_
|
||||
@ -23,123 +23,119 @@
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/GroupRank.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class ProfileGroup
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
ProfileGroup();
|
||||
virtual ~ProfileGroup();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class ProfileGroup : public ModelBase
|
||||
{
|
||||
public:
|
||||
ProfileGroup();
|
||||
virtual ~ProfileGroup();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ProfileGroup members
|
||||
/////////////////////////////////////////////
|
||||
/// ProfileGroup members
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
utility::string_t getUuid() const;
|
||||
bool uuidIsSet() const;
|
||||
void unsetUuid();
|
||||
void setUuid(const utility::string_t &value);
|
||||
|
||||
utility::string_t getUuid() const;
|
||||
bool uuidIsSet() const;
|
||||
void unsetUuid();
|
||||
void setUuid(const utility::string_t& value);
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
utility::string_t getTag() const;
|
||||
bool tagIsSet() const;
|
||||
void unsetTag();
|
||||
void setTag(const utility::string_t &value);
|
||||
|
||||
utility::string_t getTag() const;
|
||||
bool tagIsSet() const;
|
||||
void unsetTag();
|
||||
void setTag(const utility::string_t& value);
|
||||
int32_t getPrivacy() const;
|
||||
bool privacyIsSet() const;
|
||||
void unsetPrivacy();
|
||||
void setPrivacy(int32_t value);
|
||||
|
||||
int32_t getPrivacy() const;
|
||||
bool privacyIsSet() const;
|
||||
void unsetPrivacy();
|
||||
void setPrivacy(int32_t value);
|
||||
bool isVerified() const;
|
||||
bool verifiedIsSet() const;
|
||||
void unsetVerified();
|
||||
void setVerified(bool value);
|
||||
|
||||
bool isVerified() const;
|
||||
bool verifiedIsSet() const;
|
||||
void unsetVerified();
|
||||
void setVerified(bool value);
|
||||
utility::string_t getPhotoUrl() const;
|
||||
bool photoUrlIsSet() const;
|
||||
void unsetPhoto_url();
|
||||
void setPhotoUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPhotoUrl() const;
|
||||
bool photoUrlIsSet() const;
|
||||
void unsetPhoto_url();
|
||||
void setPhotoUrl(const utility::string_t& value);
|
||||
int32_t getMemberCount() const;
|
||||
bool memberCountIsSet() const;
|
||||
void unsetMember_count();
|
||||
void setMemberCount(int32_t value);
|
||||
|
||||
int32_t getMemberCount() const;
|
||||
bool memberCountIsSet() const;
|
||||
void unsetMember_count();
|
||||
void setMemberCount(int32_t value);
|
||||
std::shared_ptr<GroupRank> getRank() const;
|
||||
bool rankIsSet() const;
|
||||
void unsetRank();
|
||||
void setRank(const std::shared_ptr<GroupRank> &value);
|
||||
|
||||
std::shared_ptr<GroupRank> getRank() const;
|
||||
bool rankIsSet() const;
|
||||
void unsetRank();
|
||||
void setRank(const std::shared_ptr<GroupRank>& value);
|
||||
utility::datetime getSince() const;
|
||||
bool sinceIsSet() const;
|
||||
void unsetSince();
|
||||
void setSince(const utility::datetime &value);
|
||||
|
||||
utility::datetime getSince() const;
|
||||
bool sinceIsSet() const;
|
||||
void unsetSince();
|
||||
void setSince(const utility::datetime& value);
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
utility::string_t m_Tag;
|
||||
bool m_TagIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
int32_t m_Privacy;
|
||||
bool m_PrivacyIsSet;
|
||||
|
||||
utility::string_t m_Tag;
|
||||
bool m_TagIsSet;
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
|
||||
int32_t m_Privacy;
|
||||
bool m_PrivacyIsSet;
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
int32_t m_Member_count;
|
||||
bool m_Member_countIsSet;
|
||||
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
std::shared_ptr<GroupRank> m_Rank;
|
||||
bool m_RankIsSet;
|
||||
|
||||
int32_t m_Member_count;
|
||||
bool m_Member_countIsSet;
|
||||
utility::datetime m_Since;
|
||||
bool m_SinceIsSet;
|
||||
};
|
||||
|
||||
std::shared_ptr<GroupRank> m_Rank;
|
||||
bool m_RankIsSet;
|
||||
|
||||
utility::datetime m_Since;
|
||||
bool m_SinceIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ProfileGroup_H_ */
|
||||
|
@ -13,59 +13,54 @@
|
||||
/*
|
||||
* RefreshRequest.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_RefreshRequest_H_
|
||||
#define TRIBUFU_MODELS_RefreshRequest_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class RefreshRequest
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
RefreshRequest();
|
||||
virtual ~RefreshRequest();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class RefreshRequest : public ModelBase
|
||||
{
|
||||
public:
|
||||
RefreshRequest();
|
||||
virtual ~RefreshRequest();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// RefreshRequest members
|
||||
/////////////////////////////////////////////
|
||||
/// RefreshRequest members
|
||||
|
||||
utility::string_t getRefreshToken() const;
|
||||
bool refreshTokenIsSet() const;
|
||||
void unsetRefresh_token();
|
||||
void setRefreshToken(const utility::string_t &value);
|
||||
|
||||
utility::string_t getRefreshToken() const;
|
||||
bool refreshTokenIsSet() const;
|
||||
void unsetRefresh_token();
|
||||
void setRefreshToken(const utility::string_t& value);
|
||||
protected:
|
||||
utility::string_t m_Refresh_token;
|
||||
bool m_Refresh_tokenIsSet;
|
||||
};
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Refresh_token;
|
||||
bool m_Refresh_tokenIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_RefreshRequest_H_ */
|
||||
|
@ -13,83 +13,78 @@
|
||||
/*
|
||||
* RegisterRequest.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_RegisterRequest_H_
|
||||
#define TRIBUFU_MODELS_RegisterRequest_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class RegisterRequest
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
RegisterRequest();
|
||||
virtual ~RegisterRequest();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class RegisterRequest : public ModelBase
|
||||
{
|
||||
public:
|
||||
RegisterRequest();
|
||||
virtual ~RegisterRequest();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// RegisterRequest members
|
||||
/////////////////////////////////////////////
|
||||
/// RegisterRequest members
|
||||
|
||||
utility::string_t getUuid() const;
|
||||
bool uuidIsSet() const;
|
||||
void unsetUuid();
|
||||
void setUuid(const utility::string_t &value);
|
||||
|
||||
utility::string_t getUuid() const;
|
||||
bool uuidIsSet() const;
|
||||
void unsetUuid();
|
||||
void setUuid(const utility::string_t& value);
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
utility::string_t getEmail() const;
|
||||
bool emailIsSet() const;
|
||||
void unsetEmail();
|
||||
void setEmail(const utility::string_t &value);
|
||||
|
||||
utility::string_t getEmail() const;
|
||||
bool emailIsSet() const;
|
||||
void unsetEmail();
|
||||
void setEmail(const utility::string_t& value);
|
||||
utility::string_t getPassword() const;
|
||||
bool passwordIsSet() const;
|
||||
void unsetPassword();
|
||||
void setPassword(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPassword() const;
|
||||
bool passwordIsSet() const;
|
||||
void unsetPassword();
|
||||
void setPassword(const utility::string_t& value);
|
||||
protected:
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
utility::string_t m_Email;
|
||||
bool m_EmailIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
};
|
||||
|
||||
utility::string_t m_Email;
|
||||
bool m_EmailIsSet;
|
||||
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_RegisterRequest_H_ */
|
||||
|
@ -13,52 +13,52 @@
|
||||
/*
|
||||
* ResponseType.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_ResponseType_H_
|
||||
#define TRIBUFU_MODELS_ResponseType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class ResponseType
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
ResponseType();
|
||||
virtual ~ResponseType();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
enum class eResponseType
|
||||
namespace models
|
||||
{
|
||||
ResponseType_CODE,
|
||||
ResponseType_TOKEN,
|
||||
};
|
||||
|
||||
eResponseType getValue() const;
|
||||
void setValue(eResponseType const value);
|
||||
class ResponseType : public ModelBase
|
||||
{
|
||||
public:
|
||||
ResponseType();
|
||||
virtual ~ResponseType();
|
||||
|
||||
protected:
|
||||
eResponseType m_value;
|
||||
};
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
}
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
enum class eResponseType
|
||||
{
|
||||
ResponseType_CODE,
|
||||
ResponseType_TOKEN,
|
||||
};
|
||||
|
||||
eResponseType getValue() const;
|
||||
void setValue(eResponseType const value);
|
||||
|
||||
protected:
|
||||
eResponseType m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ResponseType_H_ */
|
||||
|
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* RevokeRequest.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_RevokeRequest_H_
|
||||
@ -23,59 +23,55 @@
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/TokenHintType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class RevokeRequest
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
RevokeRequest();
|
||||
virtual ~RevokeRequest();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class RevokeRequest : public ModelBase
|
||||
{
|
||||
public:
|
||||
RevokeRequest();
|
||||
virtual ~RevokeRequest();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// RevokeRequest members
|
||||
/////////////////////////////////////////////
|
||||
/// RevokeRequest members
|
||||
|
||||
utility::string_t getToken() const;
|
||||
bool tokenIsSet() const;
|
||||
void unsetToken();
|
||||
void setToken(const utility::string_t &value);
|
||||
|
||||
utility::string_t getToken() const;
|
||||
bool tokenIsSet() const;
|
||||
void unsetToken();
|
||||
void setToken(const utility::string_t& value);
|
||||
std::shared_ptr<TokenHintType> getTokenTypeHint() const;
|
||||
bool tokenTypeHintIsSet() const;
|
||||
void unsetToken_type_hint();
|
||||
void setTokenTypeHint(const std::shared_ptr<TokenHintType> &value);
|
||||
|
||||
std::shared_ptr<TokenHintType> getTokenTypeHint() const;
|
||||
bool tokenTypeHintIsSet() const;
|
||||
void unsetToken_type_hint();
|
||||
void setTokenTypeHint(const std::shared_ptr<TokenHintType>& value);
|
||||
protected:
|
||||
utility::string_t m_Token;
|
||||
bool m_TokenIsSet;
|
||||
|
||||
std::shared_ptr<TokenHintType> m_Token_type_hint;
|
||||
bool m_Token_type_hintIsSet;
|
||||
};
|
||||
|
||||
protected:
|
||||
utility::string_t m_Token;
|
||||
bool m_TokenIsSet;
|
||||
|
||||
std::shared_ptr<TokenHintType> m_Token_type_hint;
|
||||
bool m_Token_type_hintIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_RevokeRequest_H_ */
|
||||
|
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* SearchRequest.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_SearchRequest_H_
|
||||
@ -26,72 +26,68 @@
|
||||
#include "tribufu++/model/SearchType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class SearchRequest
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
SearchRequest();
|
||||
virtual ~SearchRequest();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class SearchRequest : public ModelBase
|
||||
{
|
||||
public:
|
||||
SearchRequest();
|
||||
virtual ~SearchRequest();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// SearchRequest members
|
||||
/////////////////////////////////////////////
|
||||
/// SearchRequest members
|
||||
|
||||
std::shared_ptr<SearchType> getType() const;
|
||||
bool typeIsSet() const;
|
||||
void unsetType();
|
||||
void setType(const std::shared_ptr<SearchType> &value);
|
||||
|
||||
std::shared_ptr<SearchType> getType() const;
|
||||
bool typeIsSet() const;
|
||||
void unsetType();
|
||||
void setType(const std::shared_ptr<SearchType>& value);
|
||||
utility::string_t getQuery() const;
|
||||
bool queryIsSet() const;
|
||||
void unsetQuery();
|
||||
void setQuery(const utility::string_t &value);
|
||||
|
||||
utility::string_t getQuery() const;
|
||||
bool queryIsSet() const;
|
||||
void unsetQuery();
|
||||
void setQuery(const utility::string_t& value);
|
||||
int32_t getPage() const;
|
||||
bool pageIsSet() const;
|
||||
void unsetPage();
|
||||
void setPage(int32_t value);
|
||||
|
||||
int32_t getPage() const;
|
||||
bool pageIsSet() const;
|
||||
void unsetPage();
|
||||
void setPage(int32_t value);
|
||||
utility::string_t getGameId() const;
|
||||
bool gameIdIsSet() const;
|
||||
void unsetGame_id();
|
||||
void setGameId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getGameId() const;
|
||||
bool gameIdIsSet() const;
|
||||
void unsetGame_id();
|
||||
void setGameId(const utility::string_t& value);
|
||||
protected:
|
||||
std::shared_ptr<SearchType> m_Type;
|
||||
bool m_TypeIsSet;
|
||||
|
||||
utility::string_t m_Query;
|
||||
bool m_QueryIsSet;
|
||||
|
||||
protected:
|
||||
std::shared_ptr<SearchType> m_Type;
|
||||
bool m_TypeIsSet;
|
||||
int32_t m_Page;
|
||||
bool m_PageIsSet;
|
||||
|
||||
utility::string_t m_Query;
|
||||
bool m_QueryIsSet;
|
||||
utility::string_t m_Game_id;
|
||||
bool m_Game_idIsSet;
|
||||
};
|
||||
|
||||
int32_t m_Page;
|
||||
bool m_PageIsSet;
|
||||
|
||||
utility::string_t m_Game_id;
|
||||
bool m_Game_idIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_SearchRequest_H_ */
|
||||
|
@ -13,54 +13,54 @@
|
||||
/*
|
||||
* SearchType.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_SearchType_H_
|
||||
#define TRIBUFU_MODELS_SearchType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class SearchType
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
SearchType();
|
||||
virtual ~SearchType();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
enum class eSearchType
|
||||
namespace models
|
||||
{
|
||||
SearchType_USER,
|
||||
SearchType_GROUP,
|
||||
SearchType_SERVER,
|
||||
SearchType_CLUSTER,
|
||||
};
|
||||
|
||||
eSearchType getValue() const;
|
||||
void setValue(eSearchType const value);
|
||||
class SearchType : public ModelBase
|
||||
{
|
||||
public:
|
||||
SearchType();
|
||||
virtual ~SearchType();
|
||||
|
||||
protected:
|
||||
eSearchType m_value;
|
||||
};
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
}
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
enum class eSearchType
|
||||
{
|
||||
SearchType_USER,
|
||||
SearchType_GROUP,
|
||||
SearchType_SERVER,
|
||||
SearchType_CLUSTER,
|
||||
};
|
||||
|
||||
eSearchType getValue() const;
|
||||
void setValue(eSearchType const value);
|
||||
|
||||
protected:
|
||||
eSearchType m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_SearchType_H_ */
|
||||
|
@ -13,74 +13,68 @@
|
||||
/*
|
||||
* ServerMetrics.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_ServerMetrics_H_
|
||||
#define TRIBUFU_MODELS_ServerMetrics_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class ServerMetrics
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
ServerMetrics();
|
||||
virtual ~ServerMetrics();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class ServerMetrics : public ModelBase
|
||||
{
|
||||
public:
|
||||
ServerMetrics();
|
||||
virtual ~ServerMetrics();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ServerMetrics members
|
||||
/////////////////////////////////////////////
|
||||
/// ServerMetrics members
|
||||
|
||||
int32_t getServerCount() const;
|
||||
bool serverCountIsSet() const;
|
||||
void unsetServer_count();
|
||||
void setServerCount(int32_t value);
|
||||
|
||||
int32_t getServerCount() const;
|
||||
bool serverCountIsSet() const;
|
||||
void unsetServer_count();
|
||||
void setServerCount(int32_t value);
|
||||
int32_t getPackageCount() const;
|
||||
bool packageCountIsSet() const;
|
||||
void unsetPackage_count();
|
||||
void setPackageCount(int32_t value);
|
||||
|
||||
int32_t getPackageCount() const;
|
||||
bool packageCountIsSet() const;
|
||||
void unsetPackage_count();
|
||||
void setPackageCount(int32_t value);
|
||||
int32_t getCountryCount() const;
|
||||
bool countryCountIsSet() const;
|
||||
void unsetCountry_count();
|
||||
void setCountryCount(int32_t value);
|
||||
|
||||
int32_t getCountryCount() const;
|
||||
bool countryCountIsSet() const;
|
||||
void unsetCountry_count();
|
||||
void setCountryCount(int32_t value);
|
||||
protected:
|
||||
int32_t m_Server_count;
|
||||
bool m_Server_countIsSet;
|
||||
|
||||
int32_t m_Package_count;
|
||||
bool m_Package_countIsSet;
|
||||
|
||||
protected:
|
||||
int32_t m_Server_count;
|
||||
bool m_Server_countIsSet;
|
||||
int32_t m_Country_count;
|
||||
bool m_Country_countIsSet;
|
||||
};
|
||||
|
||||
int32_t m_Package_count;
|
||||
bool m_Package_countIsSet;
|
||||
|
||||
int32_t m_Country_count;
|
||||
bool m_Country_countIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ServerMetrics_H_ */
|
||||
|
@ -13,53 +13,53 @@
|
||||
/*
|
||||
* ServerStatus.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_ServerStatus_H_
|
||||
#define TRIBUFU_MODELS_ServerStatus_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class ServerStatus
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
ServerStatus();
|
||||
virtual ~ServerStatus();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
enum class eServerStatus
|
||||
namespace models
|
||||
{
|
||||
ServerStatus_UNKNOWN,
|
||||
ServerStatus_OFFLINE,
|
||||
ServerStatus_ONLINE,
|
||||
};
|
||||
|
||||
eServerStatus getValue() const;
|
||||
void setValue(eServerStatus const value);
|
||||
class ServerStatus : public ModelBase
|
||||
{
|
||||
public:
|
||||
ServerStatus();
|
||||
virtual ~ServerStatus();
|
||||
|
||||
protected:
|
||||
eServerStatus m_value;
|
||||
};
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
}
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
enum class eServerStatus
|
||||
{
|
||||
ServerStatus_UNKNOWN,
|
||||
ServerStatus_OFFLINE,
|
||||
ServerStatus_ONLINE,
|
||||
};
|
||||
|
||||
eServerStatus getValue() const;
|
||||
void setValue(eServerStatus const value);
|
||||
|
||||
protected:
|
||||
eServerStatus m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ServerStatus_H_ */
|
||||
|
@ -13,108 +13,103 @@
|
||||
/*
|
||||
* Subscription.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_Subscription_H_
|
||||
#define TRIBUFU_MODELS_Subscription_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <map>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class Subscription
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
Subscription();
|
||||
virtual ~Subscription();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class Subscription : public ModelBase
|
||||
{
|
||||
public:
|
||||
Subscription();
|
||||
virtual ~Subscription();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Subscription members
|
||||
/////////////////////////////////////////////
|
||||
/// Subscription members
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDescription() const;
|
||||
bool descriptionIsSet() const;
|
||||
void unsetDescription();
|
||||
void setDescription(const utility::string_t& value);
|
||||
utility::string_t getImageUrl() const;
|
||||
bool imageUrlIsSet() const;
|
||||
void unsetImage_url();
|
||||
void setImageUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getImageUrl() const;
|
||||
bool imageUrlIsSet() const;
|
||||
void unsetImage_url();
|
||||
void setImageUrl(const utility::string_t& value);
|
||||
std::map<utility::string_t, double> getPrices() const;
|
||||
bool pricesIsSet() const;
|
||||
void unsetPrices();
|
||||
void setPrices(std::map<utility::string_t, double> value);
|
||||
|
||||
std::map<utility::string_t, double> getPrices() const;
|
||||
bool pricesIsSet() const;
|
||||
void unsetPrices();
|
||||
void setPrices(std::map<utility::string_t, double> value);
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime& value);
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime& value);
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
utility::string_t m_Image_url;
|
||||
bool m_Image_urlIsSet;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
std::map<utility::string_t, double> m_Prices;
|
||||
bool m_PricesIsSet;
|
||||
|
||||
utility::string_t m_Image_url;
|
||||
bool m_Image_urlIsSet;
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
std::map<utility::string_t, double> m_Prices;
|
||||
bool m_PricesIsSet;
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
};
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Subscription_H_ */
|
||||
|
@ -13,52 +13,52 @@
|
||||
/*
|
||||
* TokenHintType.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_TokenHintType_H_
|
||||
#define TRIBUFU_MODELS_TokenHintType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class TokenHintType
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
TokenHintType();
|
||||
virtual ~TokenHintType();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
enum class eTokenHintType
|
||||
namespace models
|
||||
{
|
||||
TokenHintType_ACCESS_TOKEN,
|
||||
TokenHintType_REFRESH_TOKEN,
|
||||
};
|
||||
|
||||
eTokenHintType getValue() const;
|
||||
void setValue(eTokenHintType const value);
|
||||
class TokenHintType : public ModelBase
|
||||
{
|
||||
public:
|
||||
TokenHintType();
|
||||
virtual ~TokenHintType();
|
||||
|
||||
protected:
|
||||
eTokenHintType m_value;
|
||||
};
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
}
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
enum class eTokenHintType
|
||||
{
|
||||
TokenHintType_ACCESS_TOKEN,
|
||||
TokenHintType_REFRESH_TOKEN,
|
||||
};
|
||||
|
||||
eTokenHintType getValue() const;
|
||||
void setValue(eTokenHintType const value);
|
||||
|
||||
protected:
|
||||
eTokenHintType m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_TokenHintType_H_ */
|
||||
|
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* TokenRequest.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_TokenRequest_H_
|
||||
@ -23,107 +23,103 @@
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/GrantType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class TokenRequest
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
TokenRequest();
|
||||
virtual ~TokenRequest();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class TokenRequest : public ModelBase
|
||||
{
|
||||
public:
|
||||
TokenRequest();
|
||||
virtual ~TokenRequest();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// TokenRequest members
|
||||
/////////////////////////////////////////////
|
||||
/// TokenRequest members
|
||||
|
||||
std::shared_ptr<GrantType> getGrantType() const;
|
||||
bool grantTypeIsSet() const;
|
||||
void unsetGrant_type();
|
||||
void setGrantType(const std::shared_ptr<GrantType> &value);
|
||||
|
||||
std::shared_ptr<GrantType> getGrantType() const;
|
||||
bool grantTypeIsSet() const;
|
||||
void unsetGrant_type();
|
||||
void setGrantType(const std::shared_ptr<GrantType>& value);
|
||||
utility::string_t getCode() const;
|
||||
bool codeIsSet() const;
|
||||
void unsetCode();
|
||||
void setCode(const utility::string_t &value);
|
||||
|
||||
utility::string_t getCode() const;
|
||||
bool codeIsSet() const;
|
||||
void unsetCode();
|
||||
void setCode(const utility::string_t& value);
|
||||
utility::string_t getUsername() const;
|
||||
bool usernameIsSet() const;
|
||||
void unsetUsername();
|
||||
void setUsername(const utility::string_t &value);
|
||||
|
||||
utility::string_t getUsername() const;
|
||||
bool usernameIsSet() const;
|
||||
void unsetUsername();
|
||||
void setUsername(const utility::string_t& value);
|
||||
utility::string_t getPassword() const;
|
||||
bool passwordIsSet() const;
|
||||
void unsetPassword();
|
||||
void setPassword(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPassword() const;
|
||||
bool passwordIsSet() const;
|
||||
void unsetPassword();
|
||||
void setPassword(const utility::string_t& value);
|
||||
utility::string_t getRefreshToken() const;
|
||||
bool refreshTokenIsSet() const;
|
||||
void unsetRefresh_token();
|
||||
void setRefreshToken(const utility::string_t &value);
|
||||
|
||||
utility::string_t getRefreshToken() const;
|
||||
bool refreshTokenIsSet() const;
|
||||
void unsetRefresh_token();
|
||||
void setRefreshToken(const utility::string_t& value);
|
||||
utility::string_t getClientId() const;
|
||||
bool clientIdIsSet() const;
|
||||
void unsetClient_id();
|
||||
void setClientId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getClientId() const;
|
||||
bool clientIdIsSet() const;
|
||||
void unsetClient_id();
|
||||
void setClientId(const utility::string_t& value);
|
||||
utility::string_t getRedirectUri() const;
|
||||
bool redirectUriIsSet() const;
|
||||
void unsetRedirect_uri();
|
||||
void setRedirectUri(const utility::string_t &value);
|
||||
|
||||
utility::string_t getRedirectUri() const;
|
||||
bool redirectUriIsSet() const;
|
||||
void unsetRedirect_uri();
|
||||
void setRedirectUri(const utility::string_t& value);
|
||||
utility::string_t getCodeVerifier() const;
|
||||
bool codeVerifierIsSet() const;
|
||||
void unsetCode_verifier();
|
||||
void setCodeVerifier(const utility::string_t &value);
|
||||
|
||||
utility::string_t getCodeVerifier() const;
|
||||
bool codeVerifierIsSet() const;
|
||||
void unsetCode_verifier();
|
||||
void setCodeVerifier(const utility::string_t& value);
|
||||
protected:
|
||||
std::shared_ptr<GrantType> m_Grant_type;
|
||||
bool m_Grant_typeIsSet;
|
||||
|
||||
utility::string_t m_Code;
|
||||
bool m_CodeIsSet;
|
||||
|
||||
protected:
|
||||
std::shared_ptr<GrantType> m_Grant_type;
|
||||
bool m_Grant_typeIsSet;
|
||||
utility::string_t m_Username;
|
||||
bool m_UsernameIsSet;
|
||||
|
||||
utility::string_t m_Code;
|
||||
bool m_CodeIsSet;
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
|
||||
utility::string_t m_Username;
|
||||
bool m_UsernameIsSet;
|
||||
utility::string_t m_Refresh_token;
|
||||
bool m_Refresh_tokenIsSet;
|
||||
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
utility::string_t m_Client_id;
|
||||
bool m_Client_idIsSet;
|
||||
|
||||
utility::string_t m_Refresh_token;
|
||||
bool m_Refresh_tokenIsSet;
|
||||
utility::string_t m_Redirect_uri;
|
||||
bool m_Redirect_uriIsSet;
|
||||
|
||||
utility::string_t m_Client_id;
|
||||
bool m_Client_idIsSet;
|
||||
utility::string_t m_Code_verifier;
|
||||
bool m_Code_verifierIsSet;
|
||||
};
|
||||
|
||||
utility::string_t m_Redirect_uri;
|
||||
bool m_Redirect_uriIsSet;
|
||||
|
||||
utility::string_t m_Code_verifier;
|
||||
bool m_Code_verifierIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_TokenRequest_H_ */
|
||||
|
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* TokenResponse.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_TokenResponse_H_
|
||||
@ -26,88 +26,84 @@
|
||||
#include "tribufu++/model/TokenType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class TokenResponse
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
TokenResponse();
|
||||
virtual ~TokenResponse();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class TokenResponse : public ModelBase
|
||||
{
|
||||
public:
|
||||
TokenResponse();
|
||||
virtual ~TokenResponse();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// TokenResponse members
|
||||
/////////////////////////////////////////////
|
||||
/// TokenResponse members
|
||||
|
||||
std::shared_ptr<TokenType> getTokenType() const;
|
||||
bool tokenTypeIsSet() const;
|
||||
void unsetToken_type();
|
||||
void setTokenType(const std::shared_ptr<TokenType> &value);
|
||||
|
||||
std::shared_ptr<TokenType> getTokenType() const;
|
||||
bool tokenTypeIsSet() const;
|
||||
void unsetToken_type();
|
||||
void setTokenType(const std::shared_ptr<TokenType>& value);
|
||||
utility::string_t getAccessToken() const;
|
||||
bool accessTokenIsSet() const;
|
||||
void unsetAccess_token();
|
||||
void setAccessToken(const utility::string_t &value);
|
||||
|
||||
utility::string_t getAccessToken() const;
|
||||
bool accessTokenIsSet() const;
|
||||
void unsetAccess_token();
|
||||
void setAccessToken(const utility::string_t& value);
|
||||
utility::string_t getRefreshToken() const;
|
||||
bool refreshTokenIsSet() const;
|
||||
void unsetRefresh_token();
|
||||
void setRefreshToken(const utility::string_t &value);
|
||||
|
||||
utility::string_t getRefreshToken() const;
|
||||
bool refreshTokenIsSet() const;
|
||||
void unsetRefresh_token();
|
||||
void setRefreshToken(const utility::string_t& value);
|
||||
utility::string_t getScope() const;
|
||||
bool scopeIsSet() const;
|
||||
void unsetScope();
|
||||
void setScope(const utility::string_t &value);
|
||||
|
||||
utility::string_t getScope() const;
|
||||
bool scopeIsSet() const;
|
||||
void unsetScope();
|
||||
void setScope(const utility::string_t& value);
|
||||
utility::string_t getState() const;
|
||||
bool stateIsSet() const;
|
||||
void unsetState();
|
||||
void setState(const utility::string_t &value);
|
||||
|
||||
utility::string_t getState() const;
|
||||
bool stateIsSet() const;
|
||||
void unsetState();
|
||||
void setState(const utility::string_t& value);
|
||||
int64_t getExpiresIn() const;
|
||||
bool expiresInIsSet() const;
|
||||
void unsetExpires_in();
|
||||
void setExpiresIn(int64_t value);
|
||||
|
||||
int64_t getExpiresIn() const;
|
||||
bool expiresInIsSet() const;
|
||||
void unsetExpires_in();
|
||||
void setExpiresIn(int64_t value);
|
||||
protected:
|
||||
std::shared_ptr<TokenType> m_Token_type;
|
||||
bool m_Token_typeIsSet;
|
||||
|
||||
utility::string_t m_Access_token;
|
||||
bool m_Access_tokenIsSet;
|
||||
|
||||
protected:
|
||||
std::shared_ptr<TokenType> m_Token_type;
|
||||
bool m_Token_typeIsSet;
|
||||
utility::string_t m_Refresh_token;
|
||||
bool m_Refresh_tokenIsSet;
|
||||
|
||||
utility::string_t m_Access_token;
|
||||
bool m_Access_tokenIsSet;
|
||||
utility::string_t m_Scope;
|
||||
bool m_ScopeIsSet;
|
||||
|
||||
utility::string_t m_Refresh_token;
|
||||
bool m_Refresh_tokenIsSet;
|
||||
utility::string_t m_State;
|
||||
bool m_StateIsSet;
|
||||
|
||||
utility::string_t m_Scope;
|
||||
bool m_ScopeIsSet;
|
||||
int64_t m_Expires_in;
|
||||
bool m_Expires_inIsSet;
|
||||
};
|
||||
|
||||
utility::string_t m_State;
|
||||
bool m_StateIsSet;
|
||||
|
||||
int64_t m_Expires_in;
|
||||
bool m_Expires_inIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_TokenResponse_H_ */
|
||||
|
@ -13,51 +13,51 @@
|
||||
/*
|
||||
* TokenType.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_TokenType_H_
|
||||
#define TRIBUFU_MODELS_TokenType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class TokenType
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
TokenType();
|
||||
virtual ~TokenType();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
enum class eTokenType
|
||||
namespace models
|
||||
{
|
||||
TokenType_BEARER,
|
||||
};
|
||||
|
||||
eTokenType getValue() const;
|
||||
void setValue(eTokenType const value);
|
||||
class TokenType : public ModelBase
|
||||
{
|
||||
public:
|
||||
TokenType();
|
||||
virtual ~TokenType();
|
||||
|
||||
protected:
|
||||
eTokenType m_value;
|
||||
};
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
}
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
enum class eTokenType
|
||||
{
|
||||
TokenType_BEARER,
|
||||
};
|
||||
|
||||
eTokenType getValue() const;
|
||||
void setValue(eTokenType const value);
|
||||
|
||||
protected:
|
||||
eTokenType m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_TokenType_H_ */
|
||||
|
@ -13,67 +13,62 @@
|
||||
/*
|
||||
* UpdateProfile.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_UpdateProfile_H_
|
||||
#define TRIBUFU_MODELS_UpdateProfile_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class UpdateProfile
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
UpdateProfile();
|
||||
virtual ~UpdateProfile();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class UpdateProfile : public ModelBase
|
||||
{
|
||||
public:
|
||||
UpdateProfile();
|
||||
virtual ~UpdateProfile();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// UpdateProfile members
|
||||
/////////////////////////////////////////////
|
||||
/// UpdateProfile members
|
||||
|
||||
utility::string_t getDisplayName() const;
|
||||
bool displayNameIsSet() const;
|
||||
void unsetDisplay_name();
|
||||
void setDisplayName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDisplayName() const;
|
||||
bool displayNameIsSet() const;
|
||||
void unsetDisplay_name();
|
||||
void setDisplayName(const utility::string_t& value);
|
||||
utility::string_t getBiography() const;
|
||||
bool biographyIsSet() const;
|
||||
void unsetBiography();
|
||||
void setBiography(const utility::string_t &value);
|
||||
|
||||
utility::string_t getBiography() const;
|
||||
bool biographyIsSet() const;
|
||||
void unsetBiography();
|
||||
void setBiography(const utility::string_t& value);
|
||||
protected:
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
|
||||
utility::string_t m_Biography;
|
||||
bool m_BiographyIsSet;
|
||||
};
|
||||
|
||||
protected:
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
|
||||
utility::string_t m_Biography;
|
||||
bool m_BiographyIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_UpdateProfile_H_ */
|
||||
|
@ -13,7 +13,7 @@
|
||||
/*
|
||||
* UserInfo.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_UserInfo_H_
|
||||
@ -26,240 +26,236 @@
|
||||
#include "tribufu++/model/UserType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class UserInfo
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
UserInfo();
|
||||
virtual ~UserInfo();
|
||||
namespace models
|
||||
{
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
class UserInfo : public ModelBase
|
||||
{
|
||||
public:
|
||||
UserInfo();
|
||||
virtual ~UserInfo();
|
||||
|
||||
void validate() override;
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
void validate() override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// UserInfo members
|
||||
/////////////////////////////////////////////
|
||||
/// UserInfo members
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t &value);
|
||||
|
||||
utility::string_t getId() const;
|
||||
bool idIsSet() const;
|
||||
void unsetId();
|
||||
void setId(const utility::string_t& value);
|
||||
utility::string_t getUuid() const;
|
||||
bool uuidIsSet() const;
|
||||
void unsetUuid();
|
||||
void setUuid(const utility::string_t &value);
|
||||
|
||||
utility::string_t getUuid() const;
|
||||
bool uuidIsSet() const;
|
||||
void unsetUuid();
|
||||
void setUuid(const utility::string_t& value);
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getName() const;
|
||||
bool nameIsSet() const;
|
||||
void unsetName();
|
||||
void setName(const utility::string_t& value);
|
||||
utility::string_t getDisplayName() const;
|
||||
bool displayNameIsSet() const;
|
||||
void unsetDisplay_name();
|
||||
void setDisplayName(const utility::string_t &value);
|
||||
|
||||
utility::string_t getDisplayName() const;
|
||||
bool displayNameIsSet() const;
|
||||
void unsetDisplay_name();
|
||||
void setDisplayName(const utility::string_t& value);
|
||||
utility::string_t getEmail() const;
|
||||
bool emailIsSet() const;
|
||||
void unsetEmail();
|
||||
void setEmail(const utility::string_t &value);
|
||||
|
||||
utility::string_t getEmail() const;
|
||||
bool emailIsSet() const;
|
||||
void unsetEmail();
|
||||
void setEmail(const utility::string_t& value);
|
||||
std::shared_ptr<UserType> getType() const;
|
||||
bool typeIsSet() const;
|
||||
void unsetType();
|
||||
void setType(const std::shared_ptr<UserType> &value);
|
||||
|
||||
std::shared_ptr<UserType> getType() const;
|
||||
bool typeIsSet() const;
|
||||
void unsetType();
|
||||
void setType(const std::shared_ptr<UserType>& value);
|
||||
utility::string_t getFlags() const;
|
||||
bool flagsIsSet() const;
|
||||
void unsetFlags();
|
||||
void setFlags(const utility::string_t &value);
|
||||
|
||||
utility::string_t getFlags() const;
|
||||
bool flagsIsSet() const;
|
||||
void unsetFlags();
|
||||
void setFlags(const utility::string_t& value);
|
||||
utility::string_t getPermissions() const;
|
||||
bool permissionsIsSet() const;
|
||||
void unsetPermissions();
|
||||
void setPermissions(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPermissions() const;
|
||||
bool permissionsIsSet() const;
|
||||
void unsetPermissions();
|
||||
void setPermissions(const utility::string_t& value);
|
||||
bool isVerified() const;
|
||||
bool verifiedIsSet() const;
|
||||
void unsetVerified();
|
||||
void setVerified(bool value);
|
||||
|
||||
bool isVerified() const;
|
||||
bool verifiedIsSet() const;
|
||||
void unsetVerified();
|
||||
void setVerified(bool value);
|
||||
int32_t getLevel() const;
|
||||
bool levelIsSet() const;
|
||||
void unsetLevel();
|
||||
void setLevel(int32_t value);
|
||||
|
||||
int32_t getLevel() const;
|
||||
bool levelIsSet() const;
|
||||
void unsetLevel();
|
||||
void setLevel(int32_t value);
|
||||
double getExperience() const;
|
||||
bool experienceIsSet() const;
|
||||
void unsetExperience();
|
||||
void setExperience(double value);
|
||||
|
||||
double getExperience() const;
|
||||
bool experienceIsSet() const;
|
||||
void unsetExperience();
|
||||
void setExperience(double value);
|
||||
bool isPublicBirthday() const;
|
||||
bool publicBirthdayIsSet() const;
|
||||
void unsetPublic_birthday();
|
||||
void setPublicBirthday(bool value);
|
||||
|
||||
bool isPublicBirthday() const;
|
||||
bool publicBirthdayIsSet() const;
|
||||
void unsetPublic_birthday();
|
||||
void setPublicBirthday(bool value);
|
||||
utility::datetime getBirthday() const;
|
||||
bool birthdayIsSet() const;
|
||||
void unsetBirthday();
|
||||
void setBirthday(const utility::datetime &value);
|
||||
|
||||
utility::datetime getBirthday() const;
|
||||
bool birthdayIsSet() const;
|
||||
void unsetBirthday();
|
||||
void setBirthday(const utility::datetime& value);
|
||||
double getPoints() const;
|
||||
bool pointsIsSet() const;
|
||||
void unsetPoints();
|
||||
void setPoints(double value);
|
||||
|
||||
double getPoints() const;
|
||||
bool pointsIsSet() const;
|
||||
void unsetPoints();
|
||||
void setPoints(double value);
|
||||
utility::string_t getLocation() const;
|
||||
bool locationIsSet() const;
|
||||
void unsetLocation();
|
||||
void setLocation(const utility::string_t &value);
|
||||
|
||||
utility::string_t getLocation() const;
|
||||
bool locationIsSet() const;
|
||||
void unsetLocation();
|
||||
void setLocation(const utility::string_t& value);
|
||||
utility::string_t getLanguage() const;
|
||||
bool languageIsSet() const;
|
||||
void unsetLanguage();
|
||||
void setLanguage(const utility::string_t &value);
|
||||
|
||||
utility::string_t getLanguage() const;
|
||||
bool languageIsSet() const;
|
||||
void unsetLanguage();
|
||||
void setLanguage(const utility::string_t& value);
|
||||
utility::string_t getTimezone() const;
|
||||
bool timezoneIsSet() const;
|
||||
void unsetTimezone();
|
||||
void setTimezone(const utility::string_t &value);
|
||||
|
||||
utility::string_t getTimezone() const;
|
||||
bool timezoneIsSet() const;
|
||||
void unsetTimezone();
|
||||
void setTimezone(const utility::string_t& value);
|
||||
utility::string_t getCurrency() const;
|
||||
bool currencyIsSet() const;
|
||||
void unsetCurrency();
|
||||
void setCurrency(const utility::string_t &value);
|
||||
|
||||
utility::string_t getCurrency() const;
|
||||
bool currencyIsSet() const;
|
||||
void unsetCurrency();
|
||||
void setCurrency(const utility::string_t& value);
|
||||
utility::string_t getPhotoUrl() const;
|
||||
bool photoUrlIsSet() const;
|
||||
void unsetPhoto_url();
|
||||
void setPhotoUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getPhotoUrl() const;
|
||||
bool photoUrlIsSet() const;
|
||||
void unsetPhoto_url();
|
||||
void setPhotoUrl(const utility::string_t& value);
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t &value);
|
||||
|
||||
utility::string_t getBannerUrl() const;
|
||||
bool bannerUrlIsSet() const;
|
||||
void unsetBanner_url();
|
||||
void setBannerUrl(const utility::string_t& value);
|
||||
utility::datetime getLastOnline() const;
|
||||
bool lastOnlineIsSet() const;
|
||||
void unsetLast_online();
|
||||
void setLastOnline(const utility::datetime &value);
|
||||
|
||||
utility::datetime getLastOnline() const;
|
||||
bool lastOnlineIsSet() const;
|
||||
void unsetLast_online();
|
||||
void setLastOnline(const utility::datetime& value);
|
||||
utility::string_t getBiography() const;
|
||||
bool biographyIsSet() const;
|
||||
void unsetBiography();
|
||||
void setBiography(const utility::string_t &value);
|
||||
|
||||
utility::string_t getBiography() const;
|
||||
bool biographyIsSet() const;
|
||||
void unsetBiography();
|
||||
void setBiography(const utility::string_t& value);
|
||||
int32_t getViewCount() const;
|
||||
bool viewCountIsSet() const;
|
||||
void unsetView_count();
|
||||
void setViewCount(int32_t value);
|
||||
|
||||
int32_t getViewCount() const;
|
||||
bool viewCountIsSet() const;
|
||||
void unsetView_count();
|
||||
void setViewCount(int32_t value);
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getCreated() const;
|
||||
bool createdIsSet() const;
|
||||
void unsetCreated();
|
||||
void setCreated(const utility::datetime& value);
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime &value);
|
||||
|
||||
utility::datetime getUpdated() const;
|
||||
bool updatedIsSet() const;
|
||||
void unsetUpdated();
|
||||
void setUpdated(const utility::datetime& value);
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
utility::string_t m_Email;
|
||||
bool m_EmailIsSet;
|
||||
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
std::shared_ptr<UserType> m_Type;
|
||||
bool m_TypeIsSet;
|
||||
|
||||
utility::string_t m_Email;
|
||||
bool m_EmailIsSet;
|
||||
utility::string_t m_Flags;
|
||||
bool m_FlagsIsSet;
|
||||
|
||||
std::shared_ptr<UserType> m_Type;
|
||||
bool m_TypeIsSet;
|
||||
utility::string_t m_Permissions;
|
||||
bool m_PermissionsIsSet;
|
||||
|
||||
utility::string_t m_Flags;
|
||||
bool m_FlagsIsSet;
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
|
||||
utility::string_t m_Permissions;
|
||||
bool m_PermissionsIsSet;
|
||||
int32_t m_Level;
|
||||
bool m_LevelIsSet;
|
||||
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
double m_Experience;
|
||||
bool m_ExperienceIsSet;
|
||||
|
||||
int32_t m_Level;
|
||||
bool m_LevelIsSet;
|
||||
bool m_Public_birthday;
|
||||
bool m_Public_birthdayIsSet;
|
||||
|
||||
double m_Experience;
|
||||
bool m_ExperienceIsSet;
|
||||
utility::datetime m_Birthday;
|
||||
bool m_BirthdayIsSet;
|
||||
|
||||
bool m_Public_birthday;
|
||||
bool m_Public_birthdayIsSet;
|
||||
double m_Points;
|
||||
bool m_PointsIsSet;
|
||||
|
||||
utility::datetime m_Birthday;
|
||||
bool m_BirthdayIsSet;
|
||||
utility::string_t m_Location;
|
||||
bool m_LocationIsSet;
|
||||
|
||||
double m_Points;
|
||||
bool m_PointsIsSet;
|
||||
utility::string_t m_Language;
|
||||
bool m_LanguageIsSet;
|
||||
|
||||
utility::string_t m_Location;
|
||||
bool m_LocationIsSet;
|
||||
utility::string_t m_Timezone;
|
||||
bool m_TimezoneIsSet;
|
||||
|
||||
utility::string_t m_Language;
|
||||
bool m_LanguageIsSet;
|
||||
utility::string_t m_Currency;
|
||||
bool m_CurrencyIsSet;
|
||||
|
||||
utility::string_t m_Timezone;
|
||||
bool m_TimezoneIsSet;
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
|
||||
utility::string_t m_Currency;
|
||||
bool m_CurrencyIsSet;
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
utility::datetime m_Last_online;
|
||||
bool m_Last_onlineIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
utility::string_t m_Biography;
|
||||
bool m_BiographyIsSet;
|
||||
|
||||
utility::datetime m_Last_online;
|
||||
bool m_Last_onlineIsSet;
|
||||
int32_t m_View_count;
|
||||
bool m_View_countIsSet;
|
||||
|
||||
utility::string_t m_Biography;
|
||||
bool m_BiographyIsSet;
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
int32_t m_View_count;
|
||||
bool m_View_countIsSet;
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
};
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_UserInfo_H_ */
|
||||
|
@ -13,52 +13,52 @@
|
||||
/*
|
||||
* UserType.h
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_UserType_H_
|
||||
#define TRIBUFU_MODELS_UserType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class UserType
|
||||
: public ModelBase
|
||||
namespace tribufu
|
||||
{
|
||||
public:
|
||||
UserType();
|
||||
virtual ~UserType();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value& json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
||||
|
||||
enum class eUserType
|
||||
namespace models
|
||||
{
|
||||
UserType_USER,
|
||||
UserType_BOT,
|
||||
};
|
||||
|
||||
eUserType getValue() const;
|
||||
void setValue(eUserType const value);
|
||||
class UserType : public ModelBase
|
||||
{
|
||||
public:
|
||||
UserType();
|
||||
virtual ~UserType();
|
||||
|
||||
protected:
|
||||
eUserType m_value;
|
||||
};
|
||||
/////////////////////////////////////////////
|
||||
/// ModelBase overrides
|
||||
|
||||
}
|
||||
void validate() override;
|
||||
|
||||
web::json::value toJson() const override;
|
||||
bool fromJson(const web::json::value &json) override;
|
||||
|
||||
void toMultipart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) const override;
|
||||
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart,
|
||||
const utility::string_t &namePrefix) override;
|
||||
|
||||
enum class eUserType
|
||||
{
|
||||
UserType_USER,
|
||||
UserType_BOT,
|
||||
};
|
||||
|
||||
eUserType getValue() const;
|
||||
void setValue(eUserType const value);
|
||||
|
||||
protected:
|
||||
eUserType m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_UserType_H_ */
|
||||
|
Reference in New Issue
Block a user