mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The projection these were generated from was a month old and predated the compute migration, so every one of them described /v1/visor — which the API serves at zero paths now. That is why a hand-written console client and a generated one had drifted the same way at the same time. No /v1/visor path survives here. The word still appears as a source-plane value and inside gvisor and supervisor, which are not this rename.
119 lines
3.4 KiB
C++
119 lines
3.4 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.
|
|
*/
|
|
|
|
/*
|
|
* LeaderboardRow.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_LeaderboardRow_H_
|
|
#define HANZO_MODEL_LeaderboardRow_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class LeaderboardRow
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
LeaderboardRow();
|
|
virtual ~LeaderboardRow();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// LeaderboardRow members
|
|
|
|
|
|
/// <summary>
|
|
/// AccruedCents is that affiliate's lifetime commission accrued, in cents, and what the board is ordered by. An aggregate: no per-customer figure is exposed.
|
|
/// </summary>
|
|
int64_t getAccruedCents() const;
|
|
bool accruedCentsIsSet() const;
|
|
void unsetAccruedCents();
|
|
void setAccruedCents(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Handle is the affiliate's self-chosen display name — the only identity the board ever carries. The org behind it is never disclosed.
|
|
/// </summary>
|
|
utility::string_t getHandle() const;
|
|
bool handleIsSet() const;
|
|
void unsetHandle();
|
|
void setHandle(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// IsYou marks the caller's own row, so a client can highlight it without matching on a handle. Absent on every other row.
|
|
/// </summary>
|
|
bool isIsYou() const;
|
|
bool isYouIsSet() const;
|
|
void unsetIsYou();
|
|
void setIsYou(bool value);
|
|
|
|
/// <summary>
|
|
/// Rank is the position in the GLOBAL approved set ordered by lifetime accrued commission, 1-based. Affiliates that set no handle still occupy their rank and are simply not listed, so the visible ranks have gaps and the board is not a complete roster. On the caller's own row the rank is computed over the whole set, so it is exact well outside the top page.
|
|
/// </summary>
|
|
int64_t getRank() const;
|
|
bool rankIsSet() const;
|
|
void unsetRank();
|
|
void setRank(int64_t value);
|
|
|
|
/// <summary>
|
|
/// ReferredCount is how many orgs that affiliate directly referred — a count only, never which orgs.
|
|
/// </summary>
|
|
int64_t getReferredCount() const;
|
|
bool referredCountIsSet() const;
|
|
void unsetReferredCount();
|
|
void setReferredCount(int64_t value);
|
|
|
|
|
|
protected:
|
|
int64_t m_AccruedCents;
|
|
bool m_AccruedCentsIsSet;
|
|
|
|
utility::string_t m_Handle;
|
|
bool m_HandleIsSet;
|
|
|
|
bool m_IsYou;
|
|
bool m_IsYouIsSet;
|
|
|
|
int64_t m_Rank;
|
|
bool m_RankIsSet;
|
|
|
|
int64_t m_ReferredCount;
|
|
bool m_ReferredCountIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_LeaderboardRow_H_ */
|