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.
96 lines
2.2 KiB
C++
96 lines
2.2 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.
|
|
*/
|
|
|
|
/*
|
|
* Tokens.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Tokens_H_
|
|
#define HANZO_MODEL_Tokens_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/Token.h"
|
|
#include "hanzo/model/Reach.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class Reach;
|
|
class Token;
|
|
|
|
|
|
class Tokens
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Tokens();
|
|
virtual ~Tokens();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Tokens members
|
|
|
|
|
|
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>
|
|
/// Tokens is `[]` where the indexer holds none and `null` where the read failed.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<Token>> getTokens() const;
|
|
bool tokensIsSet() const;
|
|
void unsetTokens();
|
|
void setTokens(const std::vector<std::shared_ptr<Token>>& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Chain;
|
|
bool m_ChainIsSet;
|
|
|
|
std::shared_ptr<Reach> m_Reach;
|
|
bool m_ReachIsSet;
|
|
|
|
std::vector<std::shared_ptr<Token>> m_Tokens;
|
|
bool m_TokensIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Tokens_H_ */
|