mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-15 20:14:18 +00:00
Generate project with openapi generator
This commit is contained in:
55
include/tribufu++/AnyType.h
Normal file
55
include/tribufu++/AnyType.h
Normal file
@ -0,0 +1,55 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* AnyType.h
|
||||
*
|
||||
* This is the implementation of an any JSON type.
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_AnyType_H_
|
||||
#define TRIBUFU_MODELS_AnyType_H_
|
||||
|
||||
|
||||
#include "tribufu++/Object.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/json.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
class AnyType : public Object {
|
||||
public:
|
||||
AnyType();
|
||||
virtual ~AnyType();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
private:
|
||||
web::json::value m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_AnyType_H_ */
|
111
include/tribufu++/ApiClient.h
Normal file
111
include/tribufu++/ApiClient.h
Normal file
@ -0,0 +1,111 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ApiClient.h
|
||||
*
|
||||
* This is an API client responsible for stating the HTTP calls
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_API_ApiClient_H_
|
||||
#define TRIBUFU_API_ApiClient_H_
|
||||
|
||||
|
||||
#include "tribufu++/ApiConfiguration.h"
|
||||
#include "tribufu++/ApiException.h"
|
||||
#include "tribufu++/IHttpBody.h"
|
||||
#include "tribufu++/HttpContent.h"
|
||||
|
||||
#if defined (_WIN32) || defined (_WIN64)
|
||||
#undef U
|
||||
#endif
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/http_client.h>
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
|
||||
namespace tribufu {
|
||||
namespace api {
|
||||
|
||||
using namespace tribufu::models;
|
||||
|
||||
class ApiClient
|
||||
{
|
||||
public:
|
||||
ApiClient( std::shared_ptr<const ApiConfiguration> configuration = nullptr );
|
||||
virtual ~ApiClient();
|
||||
|
||||
typedef std::function<void(web::http::status_code, const web::http::http_headers&)> ResponseHandlerType;
|
||||
|
||||
const ResponseHandlerType& getResponseHandler() const;
|
||||
void setResponseHandler(const ResponseHandlerType& responseHandler);
|
||||
|
||||
std::shared_ptr<const ApiConfiguration> getConfiguration() const;
|
||||
void setConfiguration(std::shared_ptr<const ApiConfiguration> configuration);
|
||||
|
||||
static utility::string_t parameterToString(utility::string_t value);
|
||||
static utility::string_t parameterToString(int32_t value);
|
||||
static utility::string_t parameterToString(int64_t value);
|
||||
static utility::string_t parameterToString(float value);
|
||||
static utility::string_t parameterToString(double value);
|
||||
static utility::string_t parameterToString(const utility::datetime &value);
|
||||
static utility::string_t parameterToString(bool value);
|
||||
template<class T>
|
||||
static utility::string_t parameterToString(const std::vector<T>& value);
|
||||
template<class T>
|
||||
static utility::string_t parameterToString(const std::shared_ptr<T>& value);
|
||||
|
||||
pplx::task<web::http::http_response> callApi(
|
||||
const utility::string_t& path,
|
||||
const utility::string_t& method,
|
||||
const std::map<utility::string_t, utility::string_t>& queryParams,
|
||||
const std::shared_ptr<IHttpBody> postBody,
|
||||
const std::map<utility::string_t, utility::string_t>& headerParams,
|
||||
const std::map<utility::string_t, utility::string_t>& formParams,
|
||||
const std::map<utility::string_t, std::shared_ptr<HttpContent>>& fileParams,
|
||||
const utility::string_t& contentType
|
||||
) const;
|
||||
|
||||
protected:
|
||||
|
||||
ResponseHandlerType m_ResponseHandler;
|
||||
std::shared_ptr<const ApiConfiguration> m_Configuration;
|
||||
};
|
||||
|
||||
template<class T>
|
||||
utility::string_t ApiClient::parameterToString(const std::vector<T>& value)
|
||||
{
|
||||
utility::stringstream_t ss;
|
||||
|
||||
for( size_t i = 0; i < value.size(); i++)
|
||||
{
|
||||
if( i > 0) ss << utility::conversions::to_string_t(", ");
|
||||
ss << ApiClient::parameterToString(value[i]);
|
||||
}
|
||||
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
template<class T>
|
||||
utility::string_t ApiClient::parameterToString(const std::shared_ptr<T>& value)
|
||||
{
|
||||
return parameterToString(*value.get());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_API_ApiClient_H_ */
|
63
include/tribufu++/ApiConfiguration.h
Normal file
63
include/tribufu++/ApiConfiguration.h
Normal file
@ -0,0 +1,63 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ApiConfiguration.h
|
||||
*
|
||||
* This class represents a single item of a multipart-formdata request.
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_API_ApiConfiguration_H_
|
||||
#define TRIBUFU_API_ApiConfiguration_H_
|
||||
|
||||
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/http_client.h>
|
||||
|
||||
#include <map>
|
||||
|
||||
namespace tribufu {
|
||||
namespace api {
|
||||
|
||||
class ApiConfiguration
|
||||
{
|
||||
public:
|
||||
ApiConfiguration();
|
||||
virtual ~ApiConfiguration();
|
||||
|
||||
const web::http::client::http_client_config& getHttpConfig() const;
|
||||
void setHttpConfig( web::http::client::http_client_config& value );
|
||||
|
||||
utility::string_t getBaseUrl() const;
|
||||
void setBaseUrl( const utility::string_t value );
|
||||
|
||||
utility::string_t getUserAgent() const;
|
||||
void setUserAgent( const utility::string_t value );
|
||||
|
||||
std::map<utility::string_t, utility::string_t>& getDefaultHeaders();
|
||||
const std::map<utility::string_t, utility::string_t>& getDefaultHeaders() const;
|
||||
|
||||
utility::string_t getApiKey( const utility::string_t& prefix) const;
|
||||
void setApiKey( const utility::string_t& prefix, const utility::string_t& apiKey );
|
||||
|
||||
protected:
|
||||
utility::string_t m_BaseUrl;
|
||||
std::map<utility::string_t, utility::string_t> m_DefaultHeaders;
|
||||
std::map<utility::string_t, utility::string_t> m_ApiKeys;
|
||||
web::http::client::http_client_config m_HttpConfig;
|
||||
utility::string_t m_UserAgent;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
#endif /* TRIBUFU_API_ApiConfiguration_H_ */
|
57
include/tribufu++/ApiException.h
Normal file
57
include/tribufu++/ApiException.h
Normal file
@ -0,0 +1,57 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ApiException.h
|
||||
*
|
||||
* This is the exception being thrown in case the api call was not successful
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_API_ApiException_H_
|
||||
#define TRIBUFU_API_ApiException_H_
|
||||
|
||||
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/http_msg.h>
|
||||
|
||||
#include <memory>
|
||||
#include <map>
|
||||
|
||||
namespace tribufu {
|
||||
namespace api {
|
||||
|
||||
class ApiException
|
||||
: public web::http::http_exception
|
||||
{
|
||||
public:
|
||||
ApiException( int errorCode
|
||||
, const utility::string_t& message
|
||||
, std::shared_ptr<std::istream> content = nullptr );
|
||||
ApiException( int errorCode
|
||||
, const utility::string_t& message
|
||||
, std::map<utility::string_t, utility::string_t>& headers
|
||||
, std::shared_ptr<std::istream> content = nullptr );
|
||||
virtual ~ApiException();
|
||||
|
||||
std::map<utility::string_t, utility::string_t>& getHeaders();
|
||||
std::shared_ptr<std::istream> getContent() const;
|
||||
|
||||
protected:
|
||||
std::shared_ptr<std::istream> m_Content;
|
||||
std::map<utility::string_t, utility::string_t> m_Headers;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_API_ApiBase_H_ */
|
66
include/tribufu++/HttpContent.h
Normal file
66
include/tribufu++/HttpContent.h
Normal file
@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* HttpContent.h
|
||||
*
|
||||
* This class represents a single item of a multipart-formdata request.
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_HttpContent_H_
|
||||
#define TRIBUFU_MODELS_HttpContent_H_
|
||||
|
||||
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
class HttpContent
|
||||
{
|
||||
public:
|
||||
HttpContent();
|
||||
virtual ~HttpContent();
|
||||
|
||||
virtual utility::string_t getContentDisposition() const;
|
||||
virtual void setContentDisposition( const utility::string_t& value );
|
||||
|
||||
virtual utility::string_t getName() const;
|
||||
virtual void setName( const utility::string_t& value );
|
||||
|
||||
virtual utility::string_t getFileName() const;
|
||||
virtual void setFileName( const utility::string_t& value );
|
||||
|
||||
virtual utility::string_t getContentType() const;
|
||||
virtual void setContentType( const utility::string_t& value );
|
||||
|
||||
virtual std::shared_ptr<std::istream> getData() const;
|
||||
virtual void setData( std::shared_ptr<std::istream> value );
|
||||
|
||||
virtual void writeTo( std::ostream& stream );
|
||||
|
||||
protected:
|
||||
// NOTE: no utility::string_t here because those strings can only contain ascii
|
||||
utility::string_t m_ContentDisposition;
|
||||
utility::string_t m_Name;
|
||||
utility::string_t m_FileName;
|
||||
utility::string_t m_ContentType;
|
||||
std::shared_ptr<std::istream> m_Data;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_HttpContent_H_ */
|
39
include/tribufu++/IHttpBody.h
Normal file
39
include/tribufu++/IHttpBody.h
Normal file
@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* IHttpBody.h
|
||||
*
|
||||
* This is the interface for contents that can be sent to a remote HTTP server.
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_IHttpBody_H_
|
||||
#define TRIBUFU_MODELS_IHttpBody_H_
|
||||
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
class IHttpBody
|
||||
{
|
||||
public:
|
||||
virtual ~IHttpBody() { }
|
||||
|
||||
virtual void writeTo( std::ostream& stream ) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_IHttpBody_H_ */
|
46
include/tribufu++/JsonBody.h
Normal file
46
include/tribufu++/JsonBody.h
Normal file
@ -0,0 +1,46 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* JsonBody.h
|
||||
*
|
||||
* This is a JSON http body which can be submitted via http
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_JsonBody_H_
|
||||
#define TRIBUFU_MODELS_JsonBody_H_
|
||||
|
||||
|
||||
#include "tribufu++/IHttpBody.h"
|
||||
|
||||
#include <cpprest/json.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
class JsonBody
|
||||
: public IHttpBody
|
||||
{
|
||||
public:
|
||||
JsonBody( const web::json::value& value );
|
||||
virtual ~JsonBody();
|
||||
|
||||
void writeTo( std::ostream& target ) override;
|
||||
|
||||
protected:
|
||||
web::json::value m_Json;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_JsonBody_H_ */
|
502
include/tribufu++/ModelBase.h
Normal file
502
include/tribufu++/ModelBase.h
Normal file
@ -0,0 +1,502 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ModelBase.h
|
||||
*
|
||||
* This is the base class for all model classes
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_ModelBase_H_
|
||||
#define TRIBUFU_MODELS_ModelBase_H_
|
||||
|
||||
|
||||
|
||||
#include "tribufu++/HttpContent.h"
|
||||
#include "tribufu++/MultipartFormData.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/json.h>
|
||||
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
class ModelBase
|
||||
{
|
||||
public:
|
||||
ModelBase();
|
||||
virtual ~ModelBase();
|
||||
|
||||
virtual void validate() = 0;
|
||||
|
||||
virtual web::json::value toJson() const = 0;
|
||||
virtual bool fromJson( const web::json::value& json ) = 0;
|
||||
|
||||
virtual void toMultipart( std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix ) const = 0;
|
||||
virtual bool fromMultiPart( std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix ) = 0;
|
||||
|
||||
virtual bool isSet() const;
|
||||
|
||||
static utility::string_t toString( const bool val );
|
||||
static utility::string_t toString( const float val );
|
||||
static utility::string_t toString( const double val );
|
||||
static utility::string_t toString( const int32_t val );
|
||||
static utility::string_t toString( const int64_t val );
|
||||
static utility::string_t toString( const utility::string_t &val );
|
||||
static utility::string_t toString( const utility::datetime &val );
|
||||
static utility::string_t toString( const web::json::value &val );
|
||||
static utility::string_t toString( const std::shared_ptr<HttpContent>& val );
|
||||
template <typename T>
|
||||
static utility::string_t toString( const std::shared_ptr<T>& val );
|
||||
template <typename T>
|
||||
static utility::string_t toString( const std::vector<T> & val );
|
||||
template <typename T>
|
||||
static utility::string_t toString( const std::set<T> & val );
|
||||
|
||||
static web::json::value toJson( bool val );
|
||||
static web::json::value toJson( float val );
|
||||
static web::json::value toJson( double val );
|
||||
static web::json::value toJson( int32_t val );
|
||||
static web::json::value toJson( int64_t val );
|
||||
static web::json::value toJson( const utility::string_t& val );
|
||||
static web::json::value toJson( const utility::datetime& val );
|
||||
static web::json::value toJson( const web::json::value& val );
|
||||
static web::json::value toJson( const std::shared_ptr<HttpContent>& val );
|
||||
template<typename T>
|
||||
static web::json::value toJson( const std::shared_ptr<T>& val );
|
||||
static web::json::value toJson( const std::shared_ptr<utility::datetime>& val );
|
||||
template<typename T>
|
||||
static web::json::value toJson( const std::vector<T>& val );
|
||||
template<typename T>
|
||||
static web::json::value toJson( const std::set<T>& val );
|
||||
template<typename T>
|
||||
static web::json::value toJson( const std::map<utility::string_t, T>& val );
|
||||
|
||||
static bool fromString( const utility::string_t& val, bool & );
|
||||
static bool fromString( const utility::string_t& val, float & );
|
||||
static bool fromString( const utility::string_t& val, double & );
|
||||
static bool fromString( const utility::string_t& val, int32_t & );
|
||||
static bool fromString( const utility::string_t& val, int64_t & );
|
||||
static bool fromString( const utility::string_t& val, utility::string_t & );
|
||||
static bool fromString( const utility::string_t& val, utility::datetime & );
|
||||
static bool fromString( const utility::string_t& val, web::json::value & );
|
||||
static bool fromString( const utility::string_t& val, std::shared_ptr<HttpContent> & );
|
||||
template<typename T>
|
||||
static bool fromString( const utility::string_t& val, std::shared_ptr<T>& );
|
||||
static bool fromString( const utility::string_t& val, std::shared_ptr<utility::datetime>& outVal );
|
||||
template<typename T>
|
||||
static bool fromString( const utility::string_t& val, std::vector<T> & );
|
||||
template<typename T>
|
||||
static bool fromString( const utility::string_t& val, std::set<T> & );
|
||||
template<typename T>
|
||||
static bool fromString( const utility::string_t& val, std::map<utility::string_t, T> & );
|
||||
|
||||
static bool fromJson( const web::json::value& val, bool & );
|
||||
static bool fromJson( const web::json::value& val, float & );
|
||||
static bool fromJson( const web::json::value& val, double & );
|
||||
static bool fromJson( const web::json::value& val, int32_t & );
|
||||
static bool fromJson( const web::json::value& val, int64_t & );
|
||||
static bool fromJson( const web::json::value& val, utility::string_t & );
|
||||
static bool fromJson( const web::json::value& val, utility::datetime & );
|
||||
static bool fromJson( const web::json::value& val, web::json::value & );
|
||||
static bool fromJson( const web::json::value& val, std::shared_ptr<HttpContent> & );
|
||||
template<typename T>
|
||||
static bool fromJson( const web::json::value& val, std::shared_ptr<T>& );
|
||||
static bool fromJson( const web::json::value& val, std::shared_ptr<utility::datetime> &outVal );
|
||||
template<typename T>
|
||||
static bool fromJson( const web::json::value& val, std::vector<T> & );
|
||||
template<typename T>
|
||||
static bool fromJson( const web::json::value& val, std::set<T> & );
|
||||
template<typename T>
|
||||
static bool fromJson( const web::json::value& val, std::map<utility::string_t, T> & );
|
||||
|
||||
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, bool value, const utility::string_t& contentType = utility::conversions::to_string_t("") );
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, float value, const utility::string_t& contentType = utility::conversions::to_string_t("") );
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, double value, const utility::string_t& contentType = utility::conversions::to_string_t("") );
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, int32_t value, const utility::string_t& contentType = utility::conversions::to_string_t("") );
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, int64_t value, const utility::string_t& contentType = utility::conversions::to_string_t("") );
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, const utility::string_t& value, const utility::string_t& contentType = utility::conversions::to_string_t(""));
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, const utility::datetime& value, const utility::string_t& contentType = utility::conversions::to_string_t(""));
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, const web::json::value& value, const utility::string_t& contentType = utility::conversions::to_string_t("application/json") );
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, const std::shared_ptr<HttpContent>& );
|
||||
template <typename T>
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, const std::shared_ptr<T>& , const utility::string_t& contentType = utility::conversions::to_string_t("application/json") );
|
||||
static std::shared_ptr<HttpContent> toHttpContent(const utility::string_t& name, const std::shared_ptr<utility::datetime>& value , const utility::string_t& contentType = utility::conversions::to_string_t("application/json") );
|
||||
template <typename T>
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, const std::vector<T>& value, const utility::string_t& contentType = utility::conversions::to_string_t("") );
|
||||
template <typename T>
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, const std::set<T>& value, const utility::string_t& contentType = utility::conversions::to_string_t("") );
|
||||
template <typename T>
|
||||
static std::shared_ptr<HttpContent> toHttpContent( const utility::string_t& name, const std::map<utility::string_t, T>& value, const utility::string_t& contentType = utility::conversions::to_string_t("") );
|
||||
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, bool & );
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, float & );
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, double & );
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, int64_t & );
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, int32_t & );
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, utility::string_t & );
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, utility::datetime & );
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, web::json::value & );
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, std::shared_ptr<HttpContent>& );
|
||||
template <typename T>
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, std::shared_ptr<T>& );
|
||||
template <typename T>
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, std::vector<T> & );
|
||||
template <typename T>
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, std::set<T> & );
|
||||
template <typename T>
|
||||
static bool fromHttpContent( std::shared_ptr<HttpContent> val, std::map<utility::string_t, T> & );
|
||||
|
||||
static utility::string_t toBase64( utility::string_t value );
|
||||
static utility::string_t toBase64( std::shared_ptr<std::istream> value );
|
||||
static std::shared_ptr<std::istream> fromBase64( const utility::string_t& encoded );
|
||||
protected:
|
||||
bool m_IsSet;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
utility::string_t ModelBase::toString( const std::shared_ptr<T>& val )
|
||||
{
|
||||
utility::stringstream_t ss;
|
||||
if( val != nullptr )
|
||||
{
|
||||
val->toJson().serialize(ss);
|
||||
}
|
||||
return utility::string_t(ss.str());
|
||||
}
|
||||
|
||||
// std::vector to string
|
||||
template<typename T>
|
||||
utility::string_t ModelBase::toString( const std::vector<T> & val )
|
||||
{
|
||||
utility::string_t strArray;
|
||||
for ( const auto &item : val )
|
||||
{
|
||||
strArray.append( toString(item) + "," );
|
||||
}
|
||||
if (val.count() > 0)
|
||||
{
|
||||
strArray.pop_back();
|
||||
}
|
||||
return strArray;
|
||||
}
|
||||
|
||||
// std::set to string
|
||||
template<typename T>
|
||||
utility::string_t ModelBase::toString( const std::set<T> & val )
|
||||
{
|
||||
utility::string_t strArray;
|
||||
for ( const auto &item : val )
|
||||
{
|
||||
strArray.append( toString(item) + "," );
|
||||
}
|
||||
if (val.count() > 0)
|
||||
{
|
||||
strArray.pop_back();
|
||||
}
|
||||
return strArray;
|
||||
}
|
||||
|
||||
|
||||
template<typename T>
|
||||
web::json::value ModelBase::toJson( const std::shared_ptr<T>& val )
|
||||
{
|
||||
web::json::value retVal;
|
||||
if(val != nullptr)
|
||||
{
|
||||
retVal = val->toJson();
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
||||
// std::vector to json
|
||||
template<typename T>
|
||||
web::json::value ModelBase::toJson( const std::vector<T>& value )
|
||||
{
|
||||
std::vector<web::json::value> ret;
|
||||
for ( const auto& x : value )
|
||||
{
|
||||
ret.push_back( toJson(x) );
|
||||
}
|
||||
return web::json::value::array(ret);
|
||||
}
|
||||
|
||||
// std::set to json
|
||||
template<typename T>
|
||||
web::json::value ModelBase::toJson( const std::set<T>& value )
|
||||
{
|
||||
// There's no prototype web::json::value::array(...) taking a std::set parameter. Converting to std::vector to get an array.
|
||||
std::vector<web::json::value> ret;
|
||||
for ( const auto& x : value )
|
||||
{
|
||||
ret.push_back( toJson(x) );
|
||||
}
|
||||
return web::json::value::array(ret);
|
||||
}
|
||||
|
||||
|
||||
template<typename T>
|
||||
web::json::value ModelBase::toJson( const std::map<utility::string_t, T>& val )
|
||||
{
|
||||
web::json::value obj;
|
||||
for ( const auto &itemkey : val )
|
||||
{
|
||||
obj[itemkey.first] = toJson( itemkey.second );
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
template<typename T>
|
||||
bool ModelBase::fromString( const utility::string_t& val, std::shared_ptr<T>& outVal )
|
||||
{
|
||||
bool ok = false;
|
||||
if(outVal == nullptr)
|
||||
{
|
||||
outVal = std::make_shared<T>();
|
||||
}
|
||||
if( outVal != nullptr )
|
||||
{
|
||||
ok = outVal->fromJson(web::json::value::parse(val));
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
template<typename T>
|
||||
bool ModelBase::fromString(const utility::string_t& val, std::vector<T>& outVal )
|
||||
{
|
||||
bool ok = true;
|
||||
web::json::value jsonValue = web::json::value::parse(val);
|
||||
if (jsonValue.is_array())
|
||||
{
|
||||
for (const web::json::value& jitem : jsonValue.as_array())
|
||||
{
|
||||
T item;
|
||||
ok &= fromJson(jitem, item);
|
||||
outVal.push_back(item);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
T item;
|
||||
ok = fromJson(jsonValue, item);
|
||||
outVal.push_back(item);
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
template<typename T>
|
||||
bool ModelBase::fromString(const utility::string_t& val, std::set<T>& outVal )
|
||||
{
|
||||
bool ok = true;
|
||||
web::json::value jsonValue = web::json::value::parse(val);
|
||||
if (jsonValue.is_array())
|
||||
{
|
||||
for (const web::json::value& jitem : jsonValue.as_array())
|
||||
{
|
||||
T item;
|
||||
ok &= fromJson(jitem, item);
|
||||
outVal.insert(item);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
T item;
|
||||
ok = fromJson(jsonValue, item);
|
||||
outVal.insert(item);
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
template<typename T>
|
||||
bool ModelBase::fromString(const utility::string_t& val, std::map<utility::string_t, T>& outVal )
|
||||
{
|
||||
bool ok = false;
|
||||
web::json::value jsonValue = web::json::value::parse(val);
|
||||
if (jsonValue.is_array())
|
||||
{
|
||||
for (const web::json::value& jitem : jsonValue.as_array())
|
||||
{
|
||||
T item;
|
||||
ok &= fromJson(jitem, item);
|
||||
outVal.insert({ val, item });
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
T item;
|
||||
ok = fromJson(jsonValue, item);
|
||||
outVal.insert({ val, item });
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
template<typename T>
|
||||
bool ModelBase::fromJson( const web::json::value& val, std::shared_ptr<T> &outVal )
|
||||
{
|
||||
bool ok = false;
|
||||
if(outVal == nullptr)
|
||||
{
|
||||
outVal = std::make_shared<T>();
|
||||
}
|
||||
if( outVal != nullptr )
|
||||
{
|
||||
ok = outVal->fromJson(val);
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
template<typename T>
|
||||
bool ModelBase::fromJson( const web::json::value& val, std::vector<T> &outVal )
|
||||
{
|
||||
bool ok = true;
|
||||
if (val.is_array())
|
||||
{
|
||||
for (const web::json::value & jitem : val.as_array())
|
||||
{
|
||||
T item;
|
||||
ok &= fromJson(jitem, item);
|
||||
outVal.push_back(item);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ok = false;
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
template<typename T>
|
||||
bool ModelBase::fromJson(const web::json::value& val, std::set<T>& outVal )
|
||||
{
|
||||
bool ok = true;
|
||||
if (val.is_array())
|
||||
{
|
||||
for (const web::json::value& jitem : val.as_array())
|
||||
{
|
||||
T item;
|
||||
ok &= fromJson(jitem, item);
|
||||
outVal.insert(item);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
T item;
|
||||
ok = fromJson(val, item);
|
||||
outVal.insert(item);
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
template<typename T>
|
||||
bool ModelBase::fromJson( const web::json::value& jval, std::map<utility::string_t, T> &outVal )
|
||||
{
|
||||
bool ok = true;
|
||||
if ( jval.is_object() )
|
||||
{
|
||||
auto obj = jval.as_object();
|
||||
for( auto objItr = obj.begin() ; objItr != obj.end() ; objItr++ )
|
||||
{
|
||||
T itemVal;
|
||||
ok &= fromJson(objItr->second, itemVal);
|
||||
outVal.insert(std::pair<utility::string_t, T>(objItr->first, itemVal));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ok = false;
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
template <typename T>
|
||||
std::shared_ptr<HttpContent> ModelBase::toHttpContent(const utility::string_t& name, const std::shared_ptr<T>& value , const utility::string_t& contentType )
|
||||
{
|
||||
std::shared_ptr<HttpContent> content = std::make_shared<HttpContent>();
|
||||
if (value != nullptr )
|
||||
{
|
||||
content->setName( name );
|
||||
content->setContentDisposition( utility::conversions::to_string_t("form-data") );
|
||||
content->setContentType( contentType );
|
||||
content->setData( std::make_shared<std::stringstream>( utility::conversions::to_utf8string(value->toJson().serialize()) ) );
|
||||
}
|
||||
return content;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
std::shared_ptr<HttpContent> ModelBase::toHttpContent( const utility::string_t& name, const std::vector<T>& value, const utility::string_t& contentType )
|
||||
{
|
||||
web::json::value json_array = ModelBase::toJson(value);
|
||||
std::shared_ptr<HttpContent> content = std::make_shared<HttpContent>();
|
||||
content->setName( name );
|
||||
content->setContentDisposition( utility::conversions::to_string_t("form-data") );
|
||||
content->setContentType( contentType );
|
||||
content->setData( std::make_shared<std::stringstream>( utility::conversions::to_utf8string(json_array.serialize()) ) );
|
||||
return content;
|
||||
}
|
||||
template <typename T>
|
||||
std::shared_ptr<HttpContent> ModelBase::toHttpContent( const utility::string_t& name, const std::set<T>& value, const utility::string_t& contentType )
|
||||
{
|
||||
web::json::value json_array = ModelBase::toJson(value);
|
||||
std::shared_ptr<HttpContent> content = std::make_shared<HttpContent>();
|
||||
content->setName(name);
|
||||
content->setContentDisposition(utility::conversions::to_string_t("form-data"));
|
||||
content->setContentType(contentType);
|
||||
content->setData( std::make_shared<std::stringstream>( utility::conversions::to_utf8string(json_array.serialize()) ) );
|
||||
return content;
|
||||
}
|
||||
template <typename T>
|
||||
std::shared_ptr<HttpContent> ModelBase::toHttpContent( const utility::string_t& name, const std::map<utility::string_t, T>& value, const utility::string_t& contentType )
|
||||
{
|
||||
web::json::value jobj = ModelBase::toJson(value);
|
||||
std::shared_ptr<HttpContent> content = std::make_shared<HttpContent>();
|
||||
content->setName( name );
|
||||
content->setContentDisposition( utility::conversions::to_string_t("form-data") );
|
||||
content->setContentType( contentType );
|
||||
content->setData( std::make_shared<std::stringstream>( utility::conversions::to_utf8string(jobj.serialize()) ) );
|
||||
return content;
|
||||
}
|
||||
template <typename T>
|
||||
bool ModelBase::fromHttpContent( std::shared_ptr<HttpContent> val, std::shared_ptr<T>& outVal )
|
||||
{
|
||||
utility::string_t str;
|
||||
if(val == nullptr) return false;
|
||||
if( outVal == nullptr )
|
||||
{
|
||||
outVal = std::make_shared<T>();
|
||||
}
|
||||
ModelBase::fromHttpContent(val, str);
|
||||
return fromString(str, outVal);
|
||||
}
|
||||
template <typename T>
|
||||
bool ModelBase::fromHttpContent( std::shared_ptr<HttpContent> val, std::vector<T> & outVal )
|
||||
{
|
||||
utility::string_t str;
|
||||
if (val == nullptr) return false;
|
||||
ModelBase::fromHttpContent(val, str);
|
||||
return fromString(str, outVal);
|
||||
}
|
||||
template <typename T>
|
||||
bool ModelBase::fromHttpContent(std::shared_ptr<HttpContent> val, std::set<T>& outVal )
|
||||
{
|
||||
utility::string_t str;
|
||||
if (val == nullptr) return false;
|
||||
ModelBase::fromHttpContent(val, str);
|
||||
return fromString(str, outVal);
|
||||
}
|
||||
template <typename T>
|
||||
bool ModelBase::fromHttpContent( std::shared_ptr<HttpContent> val, std::map<utility::string_t, T> & outVal )
|
||||
{
|
||||
utility::string_t str;
|
||||
if (val == nullptr) return false;
|
||||
ModelBase::fromHttpContent(val, str);
|
||||
return fromString(str, outVal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ModelBase_H_ */
|
58
include/tribufu++/MultipartFormData.h
Normal file
58
include/tribufu++/MultipartFormData.h
Normal file
@ -0,0 +1,58 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* MultipartFormData.h
|
||||
*
|
||||
* This class represents a container for building application/x-multipart-formdata requests.
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_MultipartFormData_H_
|
||||
#define TRIBUFU_MODELS_MultipartFormData_H_
|
||||
|
||||
|
||||
#include "tribufu++/IHttpBody.h"
|
||||
#include "tribufu++/HttpContent.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
class MultipartFormData
|
||||
: public IHttpBody
|
||||
{
|
||||
public:
|
||||
MultipartFormData();
|
||||
MultipartFormData(const utility::string_t& boundary);
|
||||
virtual ~MultipartFormData();
|
||||
|
||||
virtual void add( std::shared_ptr<HttpContent> content );
|
||||
virtual utility::string_t getBoundary();
|
||||
virtual std::shared_ptr<HttpContent> getContent(const utility::string_t& name) const;
|
||||
virtual bool hasContent(const utility::string_t& name) const;
|
||||
virtual void writeTo( std::ostream& target );
|
||||
|
||||
protected:
|
||||
std::vector<std::shared_ptr<HttpContent>> m_Contents;
|
||||
utility::string_t m_Boundary;
|
||||
std::map<utility::string_t, std::shared_ptr<HttpContent>> m_ContentLookup;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_MultipartFormData_H_ */
|
59
include/tribufu++/Object.h
Normal file
59
include/tribufu++/Object.h
Normal file
@ -0,0 +1,59 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Object.h
|
||||
*
|
||||
* This is the implementation of a JSON object.
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_Object_H_
|
||||
#define TRIBUFU_MODELS_Object_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <cpprest/json.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
class Object : public ModelBase
|
||||
{
|
||||
public:
|
||||
Object();
|
||||
virtual ~Object();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Object manipulation
|
||||
web::json::value getValue(const utility::string_t& key) const;
|
||||
void setValue(const utility::string_t& key, const web::json::value& value);
|
||||
|
||||
private:
|
||||
web::json::value m_object;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Object_H_ */
|
844
include/tribufu++/api/TribufuGeneratedApi.h
Normal file
844
include/tribufu++/api/TribufuGeneratedApi.h
Normal file
@ -0,0 +1,844 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* TribufuGeneratedApi.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_API_TribufuGeneratedApi_H_
|
||||
#define TRIBUFU_API_TribufuGeneratedApi_H_
|
||||
|
||||
|
||||
|
||||
#include "tribufu++/ApiClient.h"
|
||||
|
||||
#include "tribufu++/model/Account.h"
|
||||
#include "tribufu++/AnyType.h"
|
||||
#include "tribufu++/model/AuthorizeRequest.h"
|
||||
#include "tribufu++/model/CryptoViewModel.h"
|
||||
#include "tribufu++/model/Game.h"
|
||||
#include "tribufu++/model/GameServer.h"
|
||||
#include "tribufu++/model/GameServerCluster.h"
|
||||
#include "tribufu++/model/Group.h"
|
||||
#include "tribufu++/model/GroupGame.h"
|
||||
#include "tribufu++/model/GroupMember.h"
|
||||
#include "tribufu++/model/HashViewModel.h"
|
||||
#include "tribufu++/model/IntrospectRequest.h"
|
||||
#include "tribufu++/model/IpAddress.h"
|
||||
#include "tribufu++/model/LeaderboardItem.h"
|
||||
#include "tribufu++/model/LeaderboardOrder.h"
|
||||
#include "tribufu++/model/LoginRequest.h"
|
||||
#include "tribufu++/model/LoginResponse.h"
|
||||
#include "tribufu++/model/Package.h"
|
||||
#include "tribufu++/model/Profile.h"
|
||||
#include "tribufu++/model/ProfileGame.h"
|
||||
#include "tribufu++/model/ProfileGroup.h"
|
||||
#include "tribufu++/model/RefreshRequest.h"
|
||||
#include "tribufu++/model/RegisterRequest.h"
|
||||
#include "tribufu++/model/RevokeRequest.h"
|
||||
#include "tribufu++/model/SearchRequest.h"
|
||||
#include "tribufu++/model/ServerMetrics.h"
|
||||
#include "tribufu++/model/Subscription.h"
|
||||
#include "tribufu++/model/TokenRequest.h"
|
||||
#include "tribufu++/model/TokenResponse.h"
|
||||
#include "tribufu++/model/UpdateProfile.h"
|
||||
#include "tribufu++/model/UserInfo.h"
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
namespace tribufu {
|
||||
namespace api {
|
||||
|
||||
using namespace tribufu::models;
|
||||
|
||||
|
||||
|
||||
class TribufuGeneratedApi
|
||||
{
|
||||
public:
|
||||
|
||||
explicit TribufuGeneratedApi( std::shared_ptr<const ApiClient> apiClient );
|
||||
|
||||
virtual ~TribufuGeneratedApi();
|
||||
|
||||
/// <summary>
|
||||
/// Authorize the client to access the user information.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.authorize</code>
|
||||
/// </remarks>
|
||||
/// <param name="authorizeRequest"> (optional)</param>
|
||||
pplx::task<void> authorize(
|
||||
boost::optional<std::shared_ptr<AuthorizeRequest>> authorizeRequest
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Change the email of a user.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.email.update</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="body"> (optional)</param>
|
||||
pplx::task<void> changeEmail(
|
||||
utility::string_t id,
|
||||
boost::optional<std::shared_ptr<AnyType>> body
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Change the password of a user.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.identity.user.password.update</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="body"> (optional)</param>
|
||||
pplx::task<void> changePassword(
|
||||
utility::string_t id,
|
||||
boost::optional<std::shared_ptr<AnyType>> body
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Claim a game server.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This endpoint is not available with an api key, only with a bearer token.<br/><br/><b>🔒 Required permissions:</b> <code>tribufu.community.game.server.claim</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="body"> (optional)</param>
|
||||
pplx::task<void> claimGameServer(
|
||||
utility::string_t id,
|
||||
boost::optional<std::shared_ptr<AnyType>> body
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Convert a string to base64 or vice versa.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.utils.convert.base64</code>
|
||||
/// </remarks>
|
||||
/// <param name="cryptoViewModel"> (optional)</param>
|
||||
pplx::task<std::shared_ptr<CryptoViewModel>> convertBase64(
|
||||
boost::optional<std::shared_ptr<CryptoViewModel>> cryptoViewModel
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Create a new game server.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.create</code>
|
||||
/// </remarks>
|
||||
/// <param name="body"> (optional)</param>
|
||||
pplx::task<void> createGameServer(
|
||||
boost::optional<std::shared_ptr<AnyType>> body
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Create a new game server cluster.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.create</code>
|
||||
/// </remarks>
|
||||
/// <param name="body"> (optional)</param>
|
||||
pplx::task<void> createGameServerCluster(
|
||||
boost::optional<std::shared_ptr<AnyType>> body
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Create a new group.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.group.create</code>
|
||||
/// </remarks>
|
||||
/// <param name="body"> (optional)</param>
|
||||
pplx::task<void> createGroup(
|
||||
boost::optional<std::shared_ptr<AnyType>> body
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Create a new token with grant type.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
/// <param name="tokenRequest"> (optional)</param>
|
||||
pplx::task<std::shared_ptr<TokenResponse>> createToken(
|
||||
boost::optional<std::shared_ptr<TokenRequest>> tokenRequest
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Delete a game server.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.delete</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<void> deleteGameServer(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Delete a game server cluster.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.delete</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<void> deleteGameServerCluster(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Delete a group.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.group.delete</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<void> deleteGroup(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Generate one or more flake ids.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake</code>
|
||||
/// </remarks>
|
||||
/// <param name="amount"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<utility::string_t>> generateFlakeId(
|
||||
boost::optional<int32_t> amount
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Generate one or more flake ids from a timestamp.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.flake.timestamp</code>
|
||||
/// </remarks>
|
||||
/// <param name="timestamp"></param>
|
||||
/// <param name="amount"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<utility::string_t>> generateFlakeIdFromTimestamp(
|
||||
utility::string_t timestamp,
|
||||
boost::optional<int32_t> amount
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Generate a random password.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.password</code>
|
||||
/// </remarks>
|
||||
/// <param name="length"> (optional, default to 0)</param>
|
||||
/// <param name="symbols"> (optional, default to false)</param>
|
||||
pplx::task<std::shared_ptr<HashViewModel>> generatePassword(
|
||||
boost::optional<int32_t> length,
|
||||
boost::optional<bool> symbols
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Generate one or more uuids with a specific version.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.utils.generate.uuid</code>
|
||||
/// </remarks>
|
||||
/// <param name="version"> (optional, default to 0)</param>
|
||||
/// <param name="amount"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<utility::string_t>> generateUuid(
|
||||
boost::optional<int32_t> version,
|
||||
boost::optional<int32_t> amount
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get current client information.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
pplx::task<void> getClientInfo(
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get current ip address location.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.geoip.current</code>
|
||||
/// </remarks>
|
||||
pplx::task<std::vector<std::shared_ptr<IpAddress>>> getCurrentIpAddress(
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a game by id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.get</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::shared_ptr<Game>> getGameById(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of game server clusters of a game.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="page"> (optional, default to 0)</param>
|
||||
/// <param name="limit"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<GameServerCluster>>> getGameClustersByGameId(
|
||||
utility::string_t id,
|
||||
boost::optional<int32_t> page,
|
||||
boost::optional<int32_t> limit
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of game items.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.item.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="page"> (optional, default to 0)</param>
|
||||
/// <param name="limit"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<AnyType>>> getGameItems(
|
||||
utility::string_t id,
|
||||
boost::optional<int32_t> page,
|
||||
boost::optional<int32_t> limit
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a game server by address and query port.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get.address</code>
|
||||
/// </remarks>
|
||||
/// <param name="address"></param>
|
||||
/// <param name="port"></param>
|
||||
pplx::task<std::shared_ptr<GameServer>> getGameServerByAddressAndQueryPort(
|
||||
utility::string_t address,
|
||||
int32_t port
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a game server by id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.get</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::shared_ptr<GameServer>> getGameServerById(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a game server cluster by id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.get</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::shared_ptr<GameServerCluster>> getGameServerClusterById(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of game server clusters.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="page"> (optional, default to 0)</param>
|
||||
/// <param name="limit"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<GameServerCluster>>> getGameServerClusters(
|
||||
boost::optional<int32_t> page,
|
||||
boost::optional<int32_t> limit
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of game servers.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="page"> (optional, default to 0)</param>
|
||||
/// <param name="limit"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<GameServer>>> getGameServers(
|
||||
boost::optional<int32_t> page,
|
||||
boost::optional<int32_t> limit
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of game servers from a country.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list.country</code>
|
||||
/// </remarks>
|
||||
/// <param name="country"></param>
|
||||
/// <param name="page"> (optional, default to 0)</param>
|
||||
/// <param name="limit"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<GameServer>>> getGameServersByCountry(
|
||||
utility::string_t country,
|
||||
boost::optional<int32_t> page,
|
||||
boost::optional<int32_t> limit
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of game servers of a game.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="page"> (optional, default to 0)</param>
|
||||
/// <param name="limit"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<GameServer>>> getGameServersByGameId(
|
||||
utility::string_t id,
|
||||
boost::optional<int32_t> page,
|
||||
boost::optional<int32_t> limit
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of countries with the number of game servers.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.country.list</code>
|
||||
/// </remarks>
|
||||
pplx::task<std::map<utility::string_t, int32_t>> getGameServersCountries(
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get metrics about the tracked game servers.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.metric.get</code>
|
||||
/// </remarks>
|
||||
pplx::task<std::shared_ptr<ServerMetrics>> getGameServersMetrics(
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of games.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.list</code>
|
||||
/// </remarks>
|
||||
pplx::task<std::vector<std::shared_ptr<Game>>> getGames(
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a group by id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::shared_ptr<Group>> getGroupById(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a group by tag.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.tag</code>
|
||||
/// </remarks>
|
||||
/// <param name="tag"></param>
|
||||
pplx::task<std::shared_ptr<Group>> getGroupByTag(
|
||||
utility::string_t tag
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a group by uuid.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.group.get.uuid</code>
|
||||
/// </remarks>
|
||||
/// <param name="uuid"></param>
|
||||
pplx::task<std::shared_ptr<Group>> getGroupByUuid(
|
||||
utility::string_t uuid
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of games of a group.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.group.game.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::vector<std::shared_ptr<GroupGame>>> getGroupGames(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of members in a group.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.group.member.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::vector<std::shared_ptr<GroupMember>>> getGroupMembers(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of groups.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.group.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="page"> (optional, default to 0)</param>
|
||||
/// <param name="limit"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<Group>>> getGroups(
|
||||
boost::optional<int32_t> page,
|
||||
boost::optional<int32_t> limit
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a ip address location.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.get</code>
|
||||
/// </remarks>
|
||||
/// <param name="address"></param>
|
||||
pplx::task<std::shared_ptr<IpAddress>> getIpAddress(
|
||||
utility::string_t address
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of ip addresses.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.geoip.address.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="page"> (optional, default to 0)</param>
|
||||
/// <param name="limit"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<IpAddress>>> getIpAddresses(
|
||||
boost::optional<int32_t> page,
|
||||
boost::optional<int32_t> limit
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get the top 20 leaderboard users.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.leaderboard.get</code>
|
||||
/// </remarks>
|
||||
/// <param name="order"> (optional, default to new LeaderboardOrder())</param>
|
||||
pplx::task<std::vector<std::shared_ptr<LeaderboardItem>>> getLeaderboard(
|
||||
boost::optional<std::shared_ptr<LeaderboardOrder>> order
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get current user information.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
pplx::task<std::shared_ptr<UserInfo>> getMe(
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a package by id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.package.get</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::shared_ptr<Package>> getPackageById(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of packages.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.package.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="page"> (optional, default to 0)</param>
|
||||
/// <param name="limit"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<Package>>> getPackages(
|
||||
boost::optional<int32_t> page,
|
||||
boost::optional<int32_t> limit
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get the public keys for the client.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.client.keys</code>
|
||||
/// </remarks>
|
||||
pplx::task<void> getPublicKeys(
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a subscription by id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.get</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::shared_ptr<Subscription>> getSubscriptionById(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of subscriptions.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.store.subscription.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="page"> (optional, default to 0)</param>
|
||||
/// <param name="limit"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<Subscription>>> getSubscriptions(
|
||||
boost::optional<int32_t> page,
|
||||
boost::optional<int32_t> limit
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of connected accounts of the user.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.account.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::vector<std::shared_ptr<Account>>> getUserAccounts(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a user profile by id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::shared_ptr<Profile>> getUserById(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a user profile by name.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.name</code>
|
||||
/// </remarks>
|
||||
/// <param name="name"></param>
|
||||
pplx::task<std::shared_ptr<Profile>> getUserByName(
|
||||
utility::string_t name
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a user profile by uuid.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.get.uuid</code>
|
||||
/// </remarks>
|
||||
/// <param name="uuid"></param>
|
||||
pplx::task<std::shared_ptr<Profile>> getUserByUuid(
|
||||
utility::string_t uuid
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of friends of the user.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.friend.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::vector<std::shared_ptr<AnyType>>> getUserFriends(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of games the user has played.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::vector<std::shared_ptr<ProfileGame>>> getUserGames(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of groups the user is a member of.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.group.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::vector<std::shared_ptr<ProfileGroup>>> getUserGroups(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get current user information.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.user.info</code>
|
||||
/// </remarks>
|
||||
pplx::task<std::shared_ptr<UserInfo>> getUserInfo(
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of punishments the user has received.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.punishment.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
pplx::task<std::vector<std::shared_ptr<AnyType>>> getUserPunishments(
|
||||
utility::string_t id
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of servers the user is owner of.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.game.server.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="page"> (optional, default to 0)</param>
|
||||
/// <param name="limit"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<GameServer>>> getUserServers(
|
||||
utility::string_t id,
|
||||
boost::optional<int32_t> page,
|
||||
boost::optional<int32_t> limit
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Get a list of user profiles.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.list</code>
|
||||
/// </remarks>
|
||||
/// <param name="page"> (optional, default to 0)</param>
|
||||
/// <param name="limit"> (optional, default to 0)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<Profile>>> getUsers(
|
||||
boost::optional<int32_t> page,
|
||||
boost::optional<int32_t> limit
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Hash a string using argon2.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.argon2</code>
|
||||
/// </remarks>
|
||||
/// <param name="hashViewModel"> (optional)</param>
|
||||
pplx::task<std::shared_ptr<HashViewModel>> hashArgon2(
|
||||
boost::optional<std::shared_ptr<HashViewModel>> hashViewModel
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Hash a string using bcrypt.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.bcrypt</code>
|
||||
/// </remarks>
|
||||
/// <param name="hashViewModel"> (optional)</param>
|
||||
pplx::task<std::shared_ptr<HashViewModel>> hashBcrypt(
|
||||
boost::optional<std::shared_ptr<HashViewModel>> hashViewModel
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Hash a string using md5.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.md5</code>
|
||||
/// </remarks>
|
||||
/// <param name="hashViewModel"> (optional)</param>
|
||||
pplx::task<std::shared_ptr<HashViewModel>> hashMd5(
|
||||
boost::optional<std::shared_ptr<HashViewModel>> hashViewModel
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Hash a string using sha256.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.utils.hash.sha256</code>
|
||||
/// </remarks>
|
||||
/// <param name="hashViewModel"> (optional)</param>
|
||||
pplx::task<std::shared_ptr<HashViewModel>> hashSha256(
|
||||
boost::optional<std::shared_ptr<HashViewModel>> hashViewModel
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Introspect a token.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.introspect</code>
|
||||
/// </remarks>
|
||||
/// <param name="introspectRequest"> (optional)</param>
|
||||
pplx::task<void> introspectToken(
|
||||
boost::optional<std::shared_ptr<IntrospectRequest>> introspectRequest
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Login with name or email and password.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.create</code>
|
||||
/// </remarks>
|
||||
/// <param name="loginRequest"> (optional)</param>
|
||||
pplx::task<std::shared_ptr<LoginResponse>> login(
|
||||
boost::optional<std::shared_ptr<LoginRequest>> loginRequest
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Invalidate credentials.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.revoke</code>
|
||||
/// </remarks>
|
||||
pplx::task<void> logout(
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Create a new user.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.identity.user.create</code>
|
||||
/// </remarks>
|
||||
/// <param name="registerRequest"> (optional)</param>
|
||||
pplx::task<std::shared_ptr<LoginResponse>> r_register(
|
||||
boost::optional<std::shared_ptr<RegisterRequest>> registerRequest
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Refresh credentials.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.identity.token.refresh</code>
|
||||
/// </remarks>
|
||||
/// <param name="refreshRequest"> (optional)</param>
|
||||
pplx::task<std::shared_ptr<LoginResponse>> refresh(
|
||||
boost::optional<std::shared_ptr<RefreshRequest>> refreshRequest
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Revoke a token.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.identity.oauth2.token.revoke</code>
|
||||
/// </remarks>
|
||||
/// <param name="revokeRequest"> (optional)</param>
|
||||
pplx::task<void> revokeToken(
|
||||
boost::optional<std::shared_ptr<RevokeRequest>> revokeRequest
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Advanced search for servers or players.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.search</code>
|
||||
/// </remarks>
|
||||
/// <param name="searchRequest"> (optional)</param>
|
||||
pplx::task<std::vector<std::shared_ptr<AnyType>>> search(
|
||||
boost::optional<std::shared_ptr<SearchRequest>> searchRequest
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Update a game server.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.update</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="body"> (optional)</param>
|
||||
pplx::task<void> updateGameServer(
|
||||
utility::string_t id,
|
||||
boost::optional<std::shared_ptr<AnyType>> body
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Update a game server cluster.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.game.server.cluster.update</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="body"> (optional)</param>
|
||||
pplx::task<void> updateGameServerCluster(
|
||||
utility::string_t id,
|
||||
boost::optional<std::shared_ptr<AnyType>> body
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Update a group.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.group.update</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="body"> (optional)</param>
|
||||
pplx::task<void> updateGroup(
|
||||
utility::string_t id,
|
||||
boost::optional<std::shared_ptr<AnyType>> body
|
||||
) const;
|
||||
/// <summary>
|
||||
/// Update a user profile.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <b>🔒 Required permissions:</b> <code>tribufu.community.profile.update</code>
|
||||
/// </remarks>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="updateProfile"> (optional)</param>
|
||||
pplx::task<std::shared_ptr<Profile>> updateUserProfile(
|
||||
utility::string_t id,
|
||||
boost::optional<std::shared_ptr<UpdateProfile>> updateProfile
|
||||
) const;
|
||||
|
||||
protected:
|
||||
std::shared_ptr<const ApiClient> m_ApiClient;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_API_TribufuGeneratedApi_H_ */
|
||||
|
130
include/tribufu++/model/Account.h
Normal file
130
include/tribufu++/model/Account.h
Normal file
@ -0,0 +1,130 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Account.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_Account_H_
|
||||
#define TRIBUFU_MODELS_Account_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/AnyType.h"
|
||||
#include "tribufu++/model/LoginProvider.h"
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class Account
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
Account();
|
||||
virtual ~Account();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Account 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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
std::shared_ptr<LoginProvider> m_Provider;
|
||||
bool m_ProviderIsSet;
|
||||
|
||||
utility::string_t m_User_id;
|
||||
bool m_User_idIsSet;
|
||||
|
||||
bool m_Authorized;
|
||||
bool m_AuthorizedIsSet;
|
||||
|
||||
std::shared_ptr<AnyType> m_Fields;
|
||||
bool m_FieldsIsSet;
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Account_H_ */
|
225
include/tribufu++/model/Application.h
Normal file
225
include/tribufu++/model/Application.h
Normal file
@ -0,0 +1,225 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Application.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_Application_H_
|
||||
#define TRIBUFU_MODELS_Application_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/ApplicationType.h"
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class Application
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
Application();
|
||||
virtual ~Application();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Application 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);
|
||||
|
||||
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 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 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);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
std::shared_ptr<ApplicationType> m_Type;
|
||||
bool m_TypeIsSet;
|
||||
|
||||
utility::string_t m_Organization_id;
|
||||
bool m_Organization_idIsSet;
|
||||
|
||||
utility::string_t m_Icon_url;
|
||||
bool m_Icon_urlIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::string_t m_Capsule_image_url;
|
||||
bool m_Capsule_image_urlIsSet;
|
||||
|
||||
utility::string_t m_Library_image_url;
|
||||
bool m_Library_image_urlIsSet;
|
||||
|
||||
utility::string_t m_Parent_id;
|
||||
bool m_Parent_idIsSet;
|
||||
|
||||
utility::string_t m_Slug;
|
||||
bool m_SlugIsSet;
|
||||
|
||||
int32_t m_Visibility;
|
||||
bool m_VisibilityIsSet;
|
||||
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
|
||||
int32_t m_Primary;
|
||||
bool m_PrimaryIsSet;
|
||||
|
||||
int32_t m_User_count;
|
||||
bool m_User_countIsSet;
|
||||
|
||||
int32_t m_Achievement_count;
|
||||
bool m_Achievement_countIsSet;
|
||||
|
||||
int32_t m_Badge_count;
|
||||
bool m_Badge_countIsSet;
|
||||
|
||||
int32_t m_Download_count;
|
||||
bool m_Download_countIsSet;
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Application_H_ */
|
64
include/tribufu++/model/ApplicationType.h
Normal file
64
include/tribufu++/model/ApplicationType.h
Normal file
@ -0,0 +1,64 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ApplicationType.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_ApplicationType_H_
|
||||
#define TRIBUFU_MODELS_ApplicationType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class ApplicationType
|
||||
: public ModelBase
|
||||
{
|
||||
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
|
||||
{
|
||||
ApplicationType_APPLICATION,
|
||||
ApplicationType_GAME,
|
||||
};
|
||||
|
||||
eApplicationType getValue() const;
|
||||
void setValue(eApplicationType const value);
|
||||
|
||||
protected:
|
||||
eApplicationType m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ApplicationType_H_ */
|
122
include/tribufu++/model/AuthorizeRequest.h
Normal file
122
include/tribufu++/model/AuthorizeRequest.h
Normal file
@ -0,0 +1,122 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* AuthorizeRequest.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_AuthorizeRequest_H_
|
||||
#define TRIBUFU_MODELS_AuthorizeRequest_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.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
|
||||
{
|
||||
public:
|
||||
AuthorizeRequest();
|
||||
virtual ~AuthorizeRequest();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// AuthorizeRequest members
|
||||
|
||||
|
||||
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 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);
|
||||
|
||||
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 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;
|
||||
|
||||
utility::string_t m_Code_challenge;
|
||||
bool m_Code_challengeIsSet;
|
||||
|
||||
std::shared_ptr<CodeChallengeMethod> m_Code_challenge_method;
|
||||
bool m_Code_challenge_methodIsSet;
|
||||
|
||||
utility::string_t m_Redirect_uri;
|
||||
bool m_Redirect_uriIsSet;
|
||||
|
||||
utility::string_t m_Scope;
|
||||
bool m_ScopeIsSet;
|
||||
|
||||
utility::string_t m_State;
|
||||
bool m_StateIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_AuthorizeRequest_H_ */
|
64
include/tribufu++/model/CodeChallengeMethod.h
Normal file
64
include/tribufu++/model/CodeChallengeMethod.h
Normal file
@ -0,0 +1,64 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* CodeChallengeMethod.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_CodeChallengeMethod_H_
|
||||
#define TRIBUFU_MODELS_CodeChallengeMethod_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class CodeChallengeMethod
|
||||
: public ModelBase
|
||||
{
|
||||
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
|
||||
{
|
||||
CodeChallengeMethod_PLAIN,
|
||||
CodeChallengeMethod_S256,
|
||||
};
|
||||
|
||||
eCodeChallengeMethod getValue() const;
|
||||
void setValue(eCodeChallengeMethod const value);
|
||||
|
||||
protected:
|
||||
eCodeChallengeMethod m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_CodeChallengeMethod_H_ */
|
79
include/tribufu++/model/CryptoViewModel.h
Normal file
79
include/tribufu++/model/CryptoViewModel.h
Normal file
@ -0,0 +1,79 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
CryptoViewModel();
|
||||
virtual ~CryptoViewModel();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// CryptoViewModel members
|
||||
|
||||
|
||||
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);
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Encoded;
|
||||
bool m_EncodedIsSet;
|
||||
|
||||
utility::string_t m_Decoded;
|
||||
bool m_DecodedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_CryptoViewModel_H_ */
|
313
include/tribufu++/model/Game.h
Normal file
313
include/tribufu++/model/Game.h
Normal file
@ -0,0 +1,313 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Game.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_Game_H_
|
||||
#define TRIBUFU_MODELS_Game_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/ApplicationType.h"
|
||||
|
||||
namespace tribufu {
|
||||
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 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 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);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
protected:
|
||||
int32_t m_Game_port;
|
||||
bool m_Game_portIsSet;
|
||||
|
||||
int32_t m_Query_port;
|
||||
bool m_Query_portIsSet;
|
||||
|
||||
int32_t m_Rcon_port;
|
||||
bool m_Rcon_portIsSet;
|
||||
|
||||
int32_t m_Server_count;
|
||||
bool m_Server_countIsSet;
|
||||
|
||||
int32_t m_Steam_app_id;
|
||||
bool m_Steam_app_idIsSet;
|
||||
|
||||
int32_t m_Steam_server_app_id;
|
||||
bool m_Steam_server_app_idIsSet;
|
||||
|
||||
bool m_Enable_servers;
|
||||
bool m_Enable_serversIsSet;
|
||||
|
||||
utility::string_t m_Rust_gamedig_id;
|
||||
bool m_Rust_gamedig_idIsSet;
|
||||
|
||||
utility::string_t m_Node_gamedig_id;
|
||||
bool m_Node_gamedig_idIsSet;
|
||||
|
||||
utility::string_t m_Server_connect_url;
|
||||
bool m_Server_connect_urlIsSet;
|
||||
|
||||
utility::string_t m_Server_tags;
|
||||
bool m_Server_tagsIsSet;
|
||||
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
std::shared_ptr<ApplicationType> m_Type;
|
||||
bool m_TypeIsSet;
|
||||
|
||||
utility::string_t m_Organization_id;
|
||||
bool m_Organization_idIsSet;
|
||||
|
||||
utility::string_t m_Icon_url;
|
||||
bool m_Icon_urlIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::string_t m_Capsule_image_url;
|
||||
bool m_Capsule_image_urlIsSet;
|
||||
|
||||
utility::string_t m_Library_image_url;
|
||||
bool m_Library_image_urlIsSet;
|
||||
|
||||
utility::string_t m_Parent_id;
|
||||
bool m_Parent_idIsSet;
|
||||
|
||||
utility::string_t m_Slug;
|
||||
bool m_SlugIsSet;
|
||||
|
||||
int32_t m_Visibility;
|
||||
bool m_VisibilityIsSet;
|
||||
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
|
||||
int32_t m_Primary;
|
||||
bool m_PrimaryIsSet;
|
||||
|
||||
int32_t m_User_count;
|
||||
bool m_User_countIsSet;
|
||||
|
||||
int32_t m_Achievement_count;
|
||||
bool m_Achievement_countIsSet;
|
||||
|
||||
int32_t m_Badge_count;
|
||||
bool m_Badge_countIsSet;
|
||||
|
||||
int32_t m_Download_count;
|
||||
bool m_Download_countIsSet;
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Game_H_ */
|
313
include/tribufu++/model/GameServer.h
Normal file
313
include/tribufu++/model/GameServer.h
Normal file
@ -0,0 +1,313 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* GameServer.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_GameServer_H_
|
||||
#define TRIBUFU_MODELS_GameServer_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/ServerStatus.h"
|
||||
|
||||
namespace tribufu {
|
||||
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);
|
||||
|
||||
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 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);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
utility::string_t m_Address;
|
||||
bool m_AddressIsSet;
|
||||
|
||||
int32_t m_Game_port;
|
||||
bool m_Game_portIsSet;
|
||||
|
||||
int32_t m_Query_port;
|
||||
bool m_Query_portIsSet;
|
||||
|
||||
utility::string_t m_Game_id;
|
||||
bool m_Game_idIsSet;
|
||||
|
||||
utility::string_t m_Game_icon_url;
|
||||
bool m_Game_icon_urlIsSet;
|
||||
|
||||
utility::string_t m_Version;
|
||||
bool m_VersionIsSet;
|
||||
|
||||
bool m_Featured;
|
||||
bool m_FeaturedIsSet;
|
||||
|
||||
utility::string_t m_Cluster_id;
|
||||
bool m_Cluster_idIsSet;
|
||||
|
||||
utility::string_t m_Website_url;
|
||||
bool m_Website_urlIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::string_t m_Owner_id;
|
||||
bool m_Owner_idIsSet;
|
||||
|
||||
double m_Uptime;
|
||||
bool m_UptimeIsSet;
|
||||
|
||||
std::shared_ptr<ServerStatus> m_Status;
|
||||
bool m_StatusIsSet;
|
||||
|
||||
int32_t m_Ping;
|
||||
bool m_PingIsSet;
|
||||
|
||||
utility::string_t m_map;
|
||||
bool m_mapIsSet;
|
||||
|
||||
int32_t m_Used_slots;
|
||||
bool m_Used_slotsIsSet;
|
||||
|
||||
int32_t m_Max_slots;
|
||||
bool m_Max_slotsIsSet;
|
||||
|
||||
utility::string_t m_Motd;
|
||||
bool m_MotdIsSet;
|
||||
|
||||
utility::string_t m_Players;
|
||||
bool m_PlayersIsSet;
|
||||
|
||||
utility::datetime m_Last_online;
|
||||
bool m_Last_onlineIsSet;
|
||||
|
||||
utility::string_t m_Country;
|
||||
bool m_CountryIsSet;
|
||||
|
||||
bool m_Steam;
|
||||
bool m_SteamIsSet;
|
||||
|
||||
utility::string_t m_Discord_server_id;
|
||||
bool m_Discord_server_idIsSet;
|
||||
|
||||
utility::string_t m_Youtube_video_url;
|
||||
bool m_Youtube_video_urlIsSet;
|
||||
|
||||
utility::string_t m_Tags;
|
||||
bool m_TagsIsSet;
|
||||
|
||||
int32_t m_Comment_count;
|
||||
bool m_Comment_countIsSet;
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_GameServer_H_ */
|
175
include/tribufu++/model/GameServerCluster.h
Normal file
175
include/tribufu++/model/GameServerCluster.h
Normal file
@ -0,0 +1,175 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
GameServerCluster();
|
||||
virtual ~GameServerCluster();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// GameServerCluster 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 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 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 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 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 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 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;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
utility::string_t m_Game_id;
|
||||
bool m_Game_idIsSet;
|
||||
|
||||
utility::string_t m_Website_url;
|
||||
bool m_Website_urlIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::string_t m_Owner_id;
|
||||
bool m_Owner_idIsSet;
|
||||
|
||||
utility::string_t m_Discord_server_id;
|
||||
bool m_Discord_server_idIsSet;
|
||||
|
||||
utility::string_t m_Youtube_video_url;
|
||||
bool m_Youtube_video_urlIsSet;
|
||||
|
||||
utility::string_t m_Tags;
|
||||
bool m_TagsIsSet;
|
||||
|
||||
int32_t m_Comment_count;
|
||||
bool m_Comment_countIsSet;
|
||||
|
||||
int32_t m_Server_count;
|
||||
bool m_Server_countIsSet;
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_GameServerCluster_H_ */
|
66
include/tribufu++/model/GrantType.h
Normal file
66
include/tribufu++/model/GrantType.h
Normal file
@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* GrantType.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_GrantType_H_
|
||||
#define TRIBUFU_MODELS_GrantType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class GrantType
|
||||
: public ModelBase
|
||||
{
|
||||
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
|
||||
{
|
||||
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_ */
|
191
include/tribufu++/model/Group.h
Normal file
191
include/tribufu++/model/Group.h
Normal file
@ -0,0 +1,191 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
Group();
|
||||
virtual ~Group();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Group members
|
||||
|
||||
|
||||
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 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 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 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);
|
||||
|
||||
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 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 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);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Tag;
|
||||
bool m_TagIsSet;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
int32_t m_Type;
|
||||
bool m_TypeIsSet;
|
||||
|
||||
int32_t m_Privacy;
|
||||
bool m_PrivacyIsSet;
|
||||
|
||||
utility::string_t m_Owner_id;
|
||||
bool m_Owner_idIsSet;
|
||||
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
int32_t m_Member_count;
|
||||
bool m_Member_countIsSet;
|
||||
|
||||
int32_t m_Follower_count;
|
||||
bool m_Follower_countIsSet;
|
||||
|
||||
int32_t m_View_count;
|
||||
bool m_View_countIsSet;
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Group_H_ */
|
124
include/tribufu++/model/GroupGame.h
Normal file
124
include/tribufu++/model/GroupGame.h
Normal file
@ -0,0 +1,124 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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"
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
class Group;
|
||||
class Application;
|
||||
|
||||
|
||||
class GroupGame
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
GroupGame();
|
||||
virtual ~GroupGame();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// GroupGame members
|
||||
|
||||
|
||||
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);
|
||||
|
||||
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<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 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;
|
||||
|
||||
std::shared_ptr<Group> m_Group;
|
||||
bool m_GroupIsSet;
|
||||
|
||||
utility::string_t m_Application_id;
|
||||
bool m_Application_idIsSet;
|
||||
|
||||
std::shared_ptr<Application> m_Application;
|
||||
bool m_ApplicationIsSet;
|
||||
|
||||
std::shared_ptr<AnyType> m_Stats;
|
||||
bool m_StatsIsSet;
|
||||
|
||||
utility::datetime m_Acquired;
|
||||
bool m_AcquiredIsSet;
|
||||
|
||||
utility::datetime m_Last_used;
|
||||
bool m_Last_usedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_GroupGame_H_ */
|
137
include/tribufu++/model/GroupMember.h
Normal file
137
include/tribufu++/model/GroupMember.h
Normal file
@ -0,0 +1,137 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* GroupMember.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_GroupMember_H_
|
||||
#define TRIBUFU_MODELS_GroupMember_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/GroupRank.h"
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class GroupMember
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
GroupMember();
|
||||
virtual ~GroupMember();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// GroupMember members
|
||||
|
||||
|
||||
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 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);
|
||||
|
||||
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::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);
|
||||
|
||||
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;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
|
||||
utility::datetime m_Last_online;
|
||||
bool m_Last_onlineIsSet;
|
||||
|
||||
std::shared_ptr<GroupRank> m_Rank;
|
||||
bool m_RankIsSet;
|
||||
|
||||
utility::datetime m_Since;
|
||||
bool m_SinceIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_GroupMember_H_ */
|
65
include/tribufu++/model/GroupRank.h
Normal file
65
include/tribufu++/model/GroupRank.h
Normal file
@ -0,0 +1,65 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* GroupRank.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_GroupRank_H_
|
||||
#define TRIBUFU_MODELS_GroupRank_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class GroupRank
|
||||
: public ModelBase
|
||||
{
|
||||
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
|
||||
{
|
||||
GroupRank_MEMBER,
|
||||
GroupRank_LEADER,
|
||||
GroupRank_OWNER,
|
||||
};
|
||||
|
||||
eGroupRank getValue() const;
|
||||
void setValue(eGroupRank const value);
|
||||
|
||||
protected:
|
||||
eGroupRank m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_GroupRank_H_ */
|
71
include/tribufu++/model/HashViewModel.h
Normal file
71
include/tribufu++/model/HashViewModel.h
Normal file
@ -0,0 +1,71 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
HashViewModel();
|
||||
virtual ~HashViewModel();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// HashViewModel members
|
||||
|
||||
|
||||
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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_HashViewModel_H_ */
|
81
include/tribufu++/model/IntrospectRequest.h
Normal file
81
include/tribufu++/model/IntrospectRequest.h
Normal file
@ -0,0 +1,81 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* IntrospectRequest.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_IntrospectRequest_H_
|
||||
#define TRIBUFU_MODELS_IntrospectRequest_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/TokenHintType.h"
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class IntrospectRequest
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
IntrospectRequest();
|
||||
virtual ~IntrospectRequest();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// IntrospectRequest members
|
||||
|
||||
|
||||
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);
|
||||
|
||||
|
||||
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_ */
|
207
include/tribufu++/model/IpAddress.h
Normal file
207
include/tribufu++/model/IpAddress.h
Normal file
@ -0,0 +1,207 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
IpAddress();
|
||||
virtual ~IpAddress();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// IpAddress members
|
||||
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
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 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 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 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 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 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);
|
||||
|
||||
float getLatitude() const;
|
||||
bool latitudeIsSet() const;
|
||||
void unsetLatitude();
|
||||
void setLatitude(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;
|
||||
|
||||
utility::string_t m_Network;
|
||||
bool m_NetworkIsSet;
|
||||
|
||||
bool m_Reserved;
|
||||
bool m_ReservedIsSet;
|
||||
|
||||
utility::string_t m_Asn;
|
||||
bool m_AsnIsSet;
|
||||
|
||||
utility::string_t m_Isp;
|
||||
bool m_IspIsSet;
|
||||
|
||||
utility::string_t m_Continent;
|
||||
bool m_ContinentIsSet;
|
||||
|
||||
utility::string_t m_Country;
|
||||
bool m_CountryIsSet;
|
||||
|
||||
utility::string_t m_Region;
|
||||
bool m_RegionIsSet;
|
||||
|
||||
utility::string_t m_City;
|
||||
bool m_CityIsSet;
|
||||
|
||||
utility::string_t m_Postal_code;
|
||||
bool m_Postal_codeIsSet;
|
||||
|
||||
utility::string_t m_Calling_code;
|
||||
bool m_Calling_codeIsSet;
|
||||
|
||||
utility::string_t m_Tld;
|
||||
bool m_TldIsSet;
|
||||
|
||||
utility::string_t m_Language;
|
||||
bool m_LanguageIsSet;
|
||||
|
||||
utility::string_t m_Timezone;
|
||||
bool m_TimezoneIsSet;
|
||||
|
||||
utility::string_t m_Currency;
|
||||
bool m_CurrencyIsSet;
|
||||
|
||||
float m_Latitude;
|
||||
bool m_LatitudeIsSet;
|
||||
|
||||
float m_Longitude;
|
||||
bool m_LongitudeIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_IpAddress_H_ */
|
111
include/tribufu++/model/LeaderboardItem.h
Normal file
111
include/tribufu++/model/LeaderboardItem.h
Normal file
@ -0,0 +1,111 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
LeaderboardItem();
|
||||
virtual ~LeaderboardItem();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// LeaderboardItem members
|
||||
|
||||
|
||||
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 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);
|
||||
|
||||
double getExperience() const;
|
||||
bool experienceIsSet() const;
|
||||
void unsetExperience();
|
||||
void setExperience(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;
|
||||
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
|
||||
int32_t m_Level;
|
||||
bool m_LevelIsSet;
|
||||
|
||||
double m_Experience;
|
||||
bool m_ExperienceIsSet;
|
||||
|
||||
double m_Points;
|
||||
bool m_PointsIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_LeaderboardItem_H_ */
|
64
include/tribufu++/model/LeaderboardOrder.h
Normal file
64
include/tribufu++/model/LeaderboardOrder.h
Normal file
@ -0,0 +1,64 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* LeaderboardOrder.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_LeaderboardOrder_H_
|
||||
#define TRIBUFU_MODELS_LeaderboardOrder_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class LeaderboardOrder
|
||||
: public ModelBase
|
||||
{
|
||||
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
|
||||
{
|
||||
LeaderboardOrder_LEVEL,
|
||||
LeaderboardOrder_POINTS,
|
||||
};
|
||||
|
||||
eLeaderboardOrder getValue() const;
|
||||
void setValue(eLeaderboardOrder const value);
|
||||
|
||||
protected:
|
||||
eLeaderboardOrder m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_LeaderboardOrder_H_ */
|
69
include/tribufu++/model/LoginProvider.h
Normal file
69
include/tribufu++/model/LoginProvider.h
Normal file
@ -0,0 +1,69 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* LoginProvider.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_LoginProvider_H_
|
||||
#define TRIBUFU_MODELS_LoginProvider_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class LoginProvider
|
||||
: public ModelBase
|
||||
{
|
||||
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
|
||||
{
|
||||
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_ */
|
79
include/tribufu++/model/LoginRequest.h
Normal file
79
include/tribufu++/model/LoginRequest.h
Normal file
@ -0,0 +1,79 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
LoginRequest();
|
||||
virtual ~LoginRequest();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// LoginRequest members
|
||||
|
||||
|
||||
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);
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Login;
|
||||
bool m_LoginIsSet;
|
||||
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_LoginRequest_H_ */
|
97
include/tribufu++/model/LoginResponse.h
Normal file
97
include/tribufu++/model/LoginResponse.h
Normal file
@ -0,0 +1,97 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
LoginResponse();
|
||||
virtual ~LoginResponse();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// LoginResponse members
|
||||
|
||||
|
||||
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 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);
|
||||
|
||||
|
||||
protected:
|
||||
std::shared_ptr<UserInfo> m_User;
|
||||
bool m_UserIsSet;
|
||||
|
||||
utility::string_t m_Access_token;
|
||||
bool m_Access_tokenIsSet;
|
||||
|
||||
utility::string_t m_Refresh_token;
|
||||
bool m_Refresh_tokenIsSet;
|
||||
|
||||
int64_t m_Expires_in;
|
||||
bool m_Expires_inIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_LoginResponse_H_ */
|
159
include/tribufu++/model/Package.h
Normal file
159
include/tribufu++/model/Package.h
Normal file
@ -0,0 +1,159 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
Package();
|
||||
virtual ~Package();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Package 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 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 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);
|
||||
|
||||
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);
|
||||
|
||||
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 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;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
utility::string_t m_Image_url;
|
||||
bool m_Image_urlIsSet;
|
||||
|
||||
utility::string_t m_Author_id;
|
||||
bool m_Author_idIsSet;
|
||||
|
||||
utility::string_t m_Version;
|
||||
bool m_VersionIsSet;
|
||||
|
||||
utility::string_t m_File_url;
|
||||
bool m_File_urlIsSet;
|
||||
|
||||
double m_Raw_size;
|
||||
bool m_Raw_sizeIsSet;
|
||||
|
||||
int32_t m_Download_count;
|
||||
bool m_Download_countIsSet;
|
||||
|
||||
utility::datetime m_Last_download;
|
||||
bool m_Last_downloadIsSet;
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Package_H_ */
|
207
include/tribufu++/model/Profile.h
Normal file
207
include/tribufu++/model/Profile.h
Normal file
@ -0,0 +1,207 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
Profile();
|
||||
virtual ~Profile();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Profile members
|
||||
|
||||
|
||||
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 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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
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 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::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);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
|
||||
int32_t m_Level;
|
||||
bool m_LevelIsSet;
|
||||
|
||||
double m_Experience;
|
||||
bool m_ExperienceIsSet;
|
||||
|
||||
bool m_Public_birthday;
|
||||
bool m_Public_birthdayIsSet;
|
||||
|
||||
utility::datetime m_Birthday;
|
||||
bool m_BirthdayIsSet;
|
||||
|
||||
double m_Points;
|
||||
bool m_PointsIsSet;
|
||||
|
||||
utility::string_t m_Location;
|
||||
bool m_LocationIsSet;
|
||||
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::datetime m_Last_online;
|
||||
bool m_Last_onlineIsSet;
|
||||
|
||||
utility::string_t m_Biography;
|
||||
bool m_BiographyIsSet;
|
||||
|
||||
int32_t m_View_count;
|
||||
bool m_View_countIsSet;
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Profile_H_ */
|
152
include/tribufu++/model/ProfileGame.h
Normal file
152
include/tribufu++/model/ProfileGame.h
Normal file
@ -0,0 +1,152 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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"
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class ProfileGame
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
ProfileGame();
|
||||
virtual ~ProfileGame();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ProfileGame 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 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 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);
|
||||
|
||||
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);
|
||||
|
||||
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 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;
|
||||
|
||||
utility::string_t m_Capsule_image_url;
|
||||
bool m_Capsule_image_urlIsSet;
|
||||
|
||||
utility::string_t m_Library_image_url;
|
||||
bool m_Library_image_urlIsSet;
|
||||
|
||||
utility::string_t m_Slug;
|
||||
bool m_SlugIsSet;
|
||||
|
||||
double m_Time_used;
|
||||
bool m_Time_usedIsSet;
|
||||
|
||||
int32_t m_Unlocked_achievements;
|
||||
bool m_Unlocked_achievementsIsSet;
|
||||
|
||||
int32_t m_Total_achievements;
|
||||
bool m_Total_achievementsIsSet;
|
||||
|
||||
std::shared_ptr<AnyType> m_Stats;
|
||||
bool m_StatsIsSet;
|
||||
|
||||
utility::datetime m_Acquired;
|
||||
bool m_AcquiredIsSet;
|
||||
|
||||
utility::datetime m_Last_used;
|
||||
bool m_Last_usedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ProfileGame_H_ */
|
145
include/tribufu++/model/ProfileGroup.h
Normal file
145
include/tribufu++/model/ProfileGroup.h
Normal file
@ -0,0 +1,145 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ProfileGroup.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_ProfileGroup_H_
|
||||
#define TRIBUFU_MODELS_ProfileGroup_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/GroupRank.h"
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class ProfileGroup
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
ProfileGroup();
|
||||
virtual ~ProfileGroup();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ProfileGroup members
|
||||
|
||||
|
||||
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 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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Tag;
|
||||
bool m_TagIsSet;
|
||||
|
||||
int32_t m_Privacy;
|
||||
bool m_PrivacyIsSet;
|
||||
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
|
||||
int32_t m_Member_count;
|
||||
bool m_Member_countIsSet;
|
||||
|
||||
std::shared_ptr<GroupRank> m_Rank;
|
||||
bool m_RankIsSet;
|
||||
|
||||
utility::datetime m_Since;
|
||||
bool m_SinceIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ProfileGroup_H_ */
|
71
include/tribufu++/model/RefreshRequest.h
Normal file
71
include/tribufu++/model/RefreshRequest.h
Normal file
@ -0,0 +1,71 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
RefreshRequest();
|
||||
virtual ~RefreshRequest();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// RefreshRequest members
|
||||
|
||||
|
||||
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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_RefreshRequest_H_ */
|
95
include/tribufu++/model/RegisterRequest.h
Normal file
95
include/tribufu++/model/RegisterRequest.h
Normal file
@ -0,0 +1,95 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
RegisterRequest();
|
||||
virtual ~RegisterRequest();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// RegisterRequest members
|
||||
|
||||
|
||||
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 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);
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Uuid;
|
||||
bool m_UuidIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Email;
|
||||
bool m_EmailIsSet;
|
||||
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_RegisterRequest_H_ */
|
64
include/tribufu++/model/ResponseType.h
Normal file
64
include/tribufu++/model/ResponseType.h
Normal file
@ -0,0 +1,64 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ResponseType.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_ResponseType_H_
|
||||
#define TRIBUFU_MODELS_ResponseType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class ResponseType
|
||||
: public ModelBase
|
||||
{
|
||||
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
|
||||
{
|
||||
ResponseType_CODE,
|
||||
ResponseType_TOKEN,
|
||||
};
|
||||
|
||||
eResponseType getValue() const;
|
||||
void setValue(eResponseType const value);
|
||||
|
||||
protected:
|
||||
eResponseType m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ResponseType_H_ */
|
81
include/tribufu++/model/RevokeRequest.h
Normal file
81
include/tribufu++/model/RevokeRequest.h
Normal file
@ -0,0 +1,81 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* RevokeRequest.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_RevokeRequest_H_
|
||||
#define TRIBUFU_MODELS_RevokeRequest_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/TokenHintType.h"
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class RevokeRequest
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
RevokeRequest();
|
||||
virtual ~RevokeRequest();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// RevokeRequest members
|
||||
|
||||
|
||||
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);
|
||||
|
||||
|
||||
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_ */
|
97
include/tribufu++/model/SearchRequest.h
Normal file
97
include/tribufu++/model/SearchRequest.h
Normal file
@ -0,0 +1,97 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SearchRequest.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_SearchRequest_H_
|
||||
#define TRIBUFU_MODELS_SearchRequest_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include "tribufu++/model/SearchType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class SearchRequest
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
SearchRequest();
|
||||
virtual ~SearchRequest();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// SearchRequest members
|
||||
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
protected:
|
||||
std::shared_ptr<SearchType> m_Type;
|
||||
bool m_TypeIsSet;
|
||||
|
||||
utility::string_t m_Query;
|
||||
bool m_QueryIsSet;
|
||||
|
||||
int32_t m_Page;
|
||||
bool m_PageIsSet;
|
||||
|
||||
utility::string_t m_Game_id;
|
||||
bool m_Game_idIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_SearchRequest_H_ */
|
66
include/tribufu++/model/SearchType.h
Normal file
66
include/tribufu++/model/SearchType.h
Normal file
@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* SearchType.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_SearchType_H_
|
||||
#define TRIBUFU_MODELS_SearchType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class SearchType
|
||||
: public ModelBase
|
||||
{
|
||||
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
|
||||
{
|
||||
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_ */
|
86
include/tribufu++/model/ServerMetrics.h
Normal file
86
include/tribufu++/model/ServerMetrics.h
Normal file
@ -0,0 +1,86 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ServerMetrics.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_ServerMetrics_H_
|
||||
#define TRIBUFU_MODELS_ServerMetrics_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class ServerMetrics
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
ServerMetrics();
|
||||
virtual ~ServerMetrics();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// ServerMetrics members
|
||||
|
||||
|
||||
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 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;
|
||||
|
||||
int32_t m_Country_count;
|
||||
bool m_Country_countIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ServerMetrics_H_ */
|
65
include/tribufu++/model/ServerStatus.h
Normal file
65
include/tribufu++/model/ServerStatus.h
Normal file
@ -0,0 +1,65 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* ServerStatus.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_ServerStatus_H_
|
||||
#define TRIBUFU_MODELS_ServerStatus_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class ServerStatus
|
||||
: public ModelBase
|
||||
{
|
||||
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
|
||||
{
|
||||
ServerStatus_UNKNOWN,
|
||||
ServerStatus_OFFLINE,
|
||||
ServerStatus_ONLINE,
|
||||
};
|
||||
|
||||
eServerStatus getValue() const;
|
||||
void setValue(eServerStatus const value);
|
||||
|
||||
protected:
|
||||
eServerStatus m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_ServerStatus_H_ */
|
120
include/tribufu++/model/Subscription.h
Normal file
120
include/tribufu++/model/Subscription.h
Normal file
@ -0,0 +1,120 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
Subscription();
|
||||
virtual ~Subscription();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// Subscription 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 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);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Id;
|
||||
bool m_IdIsSet;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Description;
|
||||
bool m_DescriptionIsSet;
|
||||
|
||||
utility::string_t m_Image_url;
|
||||
bool m_Image_urlIsSet;
|
||||
|
||||
std::map<utility::string_t, double> m_Prices;
|
||||
bool m_PricesIsSet;
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_Subscription_H_ */
|
64
include/tribufu++/model/TokenHintType.h
Normal file
64
include/tribufu++/model/TokenHintType.h
Normal file
@ -0,0 +1,64 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* TokenHintType.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_TokenHintType_H_
|
||||
#define TRIBUFU_MODELS_TokenHintType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class TokenHintType
|
||||
: public ModelBase
|
||||
{
|
||||
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
|
||||
{
|
||||
TokenHintType_ACCESS_TOKEN,
|
||||
TokenHintType_REFRESH_TOKEN,
|
||||
};
|
||||
|
||||
eTokenHintType getValue() const;
|
||||
void setValue(eTokenHintType const value);
|
||||
|
||||
protected:
|
||||
eTokenHintType m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_TokenHintType_H_ */
|
129
include/tribufu++/model/TokenRequest.h
Normal file
129
include/tribufu++/model/TokenRequest.h
Normal file
@ -0,0 +1,129 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* TokenRequest.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_TokenRequest_H_
|
||||
#define TRIBUFU_MODELS_TokenRequest_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include <cpprest/details/basic_types.h>
|
||||
#include "tribufu++/model/GrantType.h"
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class TokenRequest
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
TokenRequest();
|
||||
virtual ~TokenRequest();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// TokenRequest members
|
||||
|
||||
|
||||
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 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 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 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);
|
||||
|
||||
|
||||
protected:
|
||||
std::shared_ptr<GrantType> m_Grant_type;
|
||||
bool m_Grant_typeIsSet;
|
||||
|
||||
utility::string_t m_Code;
|
||||
bool m_CodeIsSet;
|
||||
|
||||
utility::string_t m_Username;
|
||||
bool m_UsernameIsSet;
|
||||
|
||||
utility::string_t m_Password;
|
||||
bool m_PasswordIsSet;
|
||||
|
||||
utility::string_t m_Refresh_token;
|
||||
bool m_Refresh_tokenIsSet;
|
||||
|
||||
utility::string_t m_Client_id;
|
||||
bool m_Client_idIsSet;
|
||||
|
||||
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_ */
|
113
include/tribufu++/model/TokenResponse.h
Normal file
113
include/tribufu++/model/TokenResponse.h
Normal file
@ -0,0 +1,113 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* TokenResponse.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_TokenResponse_H_
|
||||
#define TRIBUFU_MODELS_TokenResponse_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include "tribufu++/model/TokenType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class TokenResponse
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
TokenResponse();
|
||||
virtual ~TokenResponse();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// TokenResponse members
|
||||
|
||||
|
||||
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 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 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);
|
||||
|
||||
|
||||
protected:
|
||||
std::shared_ptr<TokenType> m_Token_type;
|
||||
bool m_Token_typeIsSet;
|
||||
|
||||
utility::string_t m_Access_token;
|
||||
bool m_Access_tokenIsSet;
|
||||
|
||||
utility::string_t m_Refresh_token;
|
||||
bool m_Refresh_tokenIsSet;
|
||||
|
||||
utility::string_t m_Scope;
|
||||
bool m_ScopeIsSet;
|
||||
|
||||
utility::string_t m_State;
|
||||
bool m_StateIsSet;
|
||||
|
||||
int64_t m_Expires_in;
|
||||
bool m_Expires_inIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_TokenResponse_H_ */
|
63
include/tribufu++/model/TokenType.h
Normal file
63
include/tribufu++/model/TokenType.h
Normal file
@ -0,0 +1,63 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* TokenType.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_TokenType_H_
|
||||
#define TRIBUFU_MODELS_TokenType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class TokenType
|
||||
: public ModelBase
|
||||
{
|
||||
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
|
||||
{
|
||||
TokenType_BEARER,
|
||||
};
|
||||
|
||||
eTokenType getValue() const;
|
||||
void setValue(eTokenType const value);
|
||||
|
||||
protected:
|
||||
eTokenType m_value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_TokenType_H_ */
|
79
include/tribufu++/model/UpdateProfile.h
Normal file
79
include/tribufu++/model/UpdateProfile.h
Normal file
@ -0,0 +1,79 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
public:
|
||||
UpdateProfile();
|
||||
virtual ~UpdateProfile();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// UpdateProfile members
|
||||
|
||||
|
||||
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);
|
||||
|
||||
|
||||
protected:
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
|
||||
utility::string_t m_Biography;
|
||||
bool m_BiographyIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_UpdateProfile_H_ */
|
265
include/tribufu++/model/UserInfo.h
Normal file
265
include/tribufu++/model/UserInfo.h
Normal file
@ -0,0 +1,265 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* UserInfo.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_UserInfo_H_
|
||||
#define TRIBUFU_MODELS_UserInfo_H_
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
#include "tribufu++/model/UserType.h"
|
||||
#include <cpprest/details/basic_types.h>
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
|
||||
class UserInfo
|
||||
: public ModelBase
|
||||
{
|
||||
public:
|
||||
UserInfo();
|
||||
virtual ~UserInfo();
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// 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;
|
||||
|
||||
|
||||
/////////////////////////////////////////////
|
||||
/// UserInfo members
|
||||
|
||||
|
||||
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 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 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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
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 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 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::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);
|
||||
|
||||
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 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;
|
||||
|
||||
utility::string_t m_Name;
|
||||
bool m_NameIsSet;
|
||||
|
||||
utility::string_t m_Display_name;
|
||||
bool m_Display_nameIsSet;
|
||||
|
||||
utility::string_t m_Email;
|
||||
bool m_EmailIsSet;
|
||||
|
||||
std::shared_ptr<UserType> m_Type;
|
||||
bool m_TypeIsSet;
|
||||
|
||||
utility::string_t m_Flags;
|
||||
bool m_FlagsIsSet;
|
||||
|
||||
utility::string_t m_Permissions;
|
||||
bool m_PermissionsIsSet;
|
||||
|
||||
bool m_Verified;
|
||||
bool m_VerifiedIsSet;
|
||||
|
||||
int32_t m_Level;
|
||||
bool m_LevelIsSet;
|
||||
|
||||
double m_Experience;
|
||||
bool m_ExperienceIsSet;
|
||||
|
||||
bool m_Public_birthday;
|
||||
bool m_Public_birthdayIsSet;
|
||||
|
||||
utility::datetime m_Birthday;
|
||||
bool m_BirthdayIsSet;
|
||||
|
||||
double m_Points;
|
||||
bool m_PointsIsSet;
|
||||
|
||||
utility::string_t m_Location;
|
||||
bool m_LocationIsSet;
|
||||
|
||||
utility::string_t m_Language;
|
||||
bool m_LanguageIsSet;
|
||||
|
||||
utility::string_t m_Timezone;
|
||||
bool m_TimezoneIsSet;
|
||||
|
||||
utility::string_t m_Currency;
|
||||
bool m_CurrencyIsSet;
|
||||
|
||||
utility::string_t m_Photo_url;
|
||||
bool m_Photo_urlIsSet;
|
||||
|
||||
utility::string_t m_Banner_url;
|
||||
bool m_Banner_urlIsSet;
|
||||
|
||||
utility::datetime m_Last_online;
|
||||
bool m_Last_onlineIsSet;
|
||||
|
||||
utility::string_t m_Biography;
|
||||
bool m_BiographyIsSet;
|
||||
|
||||
int32_t m_View_count;
|
||||
bool m_View_countIsSet;
|
||||
|
||||
utility::datetime m_Created;
|
||||
bool m_CreatedIsSet;
|
||||
|
||||
utility::datetime m_Updated;
|
||||
bool m_UpdatedIsSet;
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TRIBUFU_MODELS_UserInfo_H_ */
|
64
include/tribufu++/model/UserType.h
Normal file
64
include/tribufu++/model/UserType.h
Normal file
@ -0,0 +1,64 @@
|
||||
/**
|
||||
* Tribufu API
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/*
|
||||
* UserType.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TRIBUFU_MODELS_UserType_H_
|
||||
#define TRIBUFU_MODELS_UserType_H_
|
||||
|
||||
|
||||
#include "tribufu++/ModelBase.h"
|
||||
|
||||
|
||||
namespace tribufu {
|
||||
namespace models {
|
||||
|
||||
|
||||
class UserType
|
||||
: public ModelBase
|
||||
{
|
||||
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
|
||||
{
|
||||
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