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.
90 lines
2.5 KiB
C++
90 lines
2.5 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.
|
|
*/
|
|
|
|
/*
|
|
* Roster.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Roster_H_
|
|
#define HANZO_MODEL_Roster_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/Reach.h"
|
|
#include "hanzo/model/Market.h"
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class Market;
|
|
class Reach;
|
|
|
|
|
|
class Roster
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Roster();
|
|
virtual ~Roster();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Roster members
|
|
|
|
|
|
/// <summary>
|
|
/// Chains is `[]` where the registry answered and named none, and `null` where it did not answer — never absent, because a missing key and an empty list read alike and only one of them means \"there are none\". Each row carries its OWN reach for its figures, so a chain whose indexer is down is one row saying so.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<Market>> getChains() const;
|
|
bool chainsIsSet() const;
|
|
void unsetChains();
|
|
void setChains(const std::vector<std::shared_ptr<Market>>& value);
|
|
|
|
/// <summary>
|
|
/// Reach is how far the read of the REGISTRY got. It governs the list: a registry that did not answer yields no rows, and the reason it did not is here rather than in an empty array a caller would read as \"no chains exist\".
|
|
/// </summary>
|
|
std::shared_ptr<Reach> getReach() const;
|
|
bool reachIsSet() const;
|
|
void unsetReach();
|
|
void setReach(const std::shared_ptr<Reach>& value);
|
|
|
|
|
|
protected:
|
|
std::vector<std::shared_ptr<Market>> m_Chains;
|
|
bool m_ChainsIsSet;
|
|
|
|
std::shared_ptr<Reach> m_Reach;
|
|
bool m_ReachIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Roster_H_ */
|