mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-15 20:14:18 +00:00
94 lines
2.4 KiB
C++
94 lines
2.4 KiB
C++
/**
|
|
* 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.14.0-SNAPSHOT.
|
|
* 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_ */
|