mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The lock sat at 574d1f1d while the product moved on. The team surface stopped at rooms — no messages path, no way to open one — so anything built on this client had to reach past it with its own HTTP calls, which is the duplication a generated client exists to prevent.
107 lines
2.7 KiB
C++
107 lines
2.7 KiB
C++
/**
|
|
* Hanzo Cloud API
|
|
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
*
|
|
* The version of the OpenAPI document: v1
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI-Generator 7.14.0.
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
/*
|
|
* Survey.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Survey_H_
|
|
#define HANZO_MODEL_Survey_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/Reach.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
#include "hanzo/model/Precompile.h"
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class Precompile;
|
|
class Reach;
|
|
|
|
|
|
class Survey
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Survey();
|
|
virtual ~Survey();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Survey members
|
|
|
|
|
|
/// <summary>
|
|
/// Carries is all four where the node answered and `null` where it did not. It is never a short list: a partial read reporting three would let a reader count them and conclude the chain is missing one.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<Precompile>> getCarries() const;
|
|
bool carriesIsSet() const;
|
|
void unsetCarries();
|
|
void setCarries(const std::vector<std::shared_ptr<Precompile>>& value);
|
|
|
|
utility::string_t getChain() const;
|
|
bool chainIsSet() const;
|
|
void unsetChain();
|
|
void setChain(const utility::string_t& value);
|
|
|
|
std::shared_ptr<Reach> getReach() const;
|
|
bool reachIsSet() const;
|
|
void unsetReach();
|
|
void setReach(const std::shared_ptr<Reach>& value);
|
|
|
|
/// <summary>
|
|
/// RPC is the endpoint that was asked, so an answer names where it came from.
|
|
/// </summary>
|
|
utility::string_t getRpc() const;
|
|
bool rpcIsSet() const;
|
|
void unsetRpc();
|
|
void setRpc(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
std::vector<std::shared_ptr<Precompile>> m_Carries;
|
|
bool m_CarriesIsSet;
|
|
|
|
utility::string_t m_Chain;
|
|
bool m_ChainIsSet;
|
|
|
|
std::shared_ptr<Reach> m_Reach;
|
|
bool m_ReachIsSet;
|
|
|
|
utility::string_t m_Rpc;
|
|
bool m_RpcIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Survey_H_ */
|