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.
142 lines
4.1 KiB
C++
142 lines
4.1 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.
|
|
*/
|
|
|
|
/*
|
|
* TeamRoomNew.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_TeamRoomNew_H_
|
|
#define HANZO_MODEL_TeamRoomNew_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class TeamRoomNew
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
TeamRoomNew();
|
|
virtual ~TeamRoomNew();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// TeamRoomNew members
|
|
|
|
|
|
/// <summary>
|
|
/// Bindings are what the room is about, each \"<kind>:<ref>\".
|
|
/// </summary>
|
|
std::vector<utility::string_t> getBindings() const;
|
|
bool bindingsIsSet() const;
|
|
void unsetBindings();
|
|
void setBindings(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Life is the lifecycle intent, \"standing\" or \"bound\"; empty reads standing.
|
|
/// </summary>
|
|
utility::string_t getLife() const;
|
|
bool lifeIsSet() const;
|
|
void unsetLife();
|
|
void setLife(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Members are the account uuids in the room. A public room may open empty — anyone in the org can find it — and a private one that names nobody is refused rather than created unreachable.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getMembers() const;
|
|
bool membersIsSet() const;
|
|
void unsetMembers();
|
|
void setMembers(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Name is what a person sees in a sidebar — \"bugfix-1010\", not \"#bugfix-1010\". The sigil is how a client DRAWS a room, and storing it would put it in the name twice the first time a client added its own.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Private restricts the room to its members. Public is the default because a room nobody can find is the more surprising of the two.
|
|
/// </summary>
|
|
bool isRPrivate() const;
|
|
bool rPrivateIsSet() const;
|
|
void unsetr_private();
|
|
void setRPrivate(bool value);
|
|
|
|
/// <summary>
|
|
/// Space is where the room is opened. Optional: an org with one space has no choice to make, so it does not have to state one. An org with several must, because picking for it would make the room's home depend on iteration order.
|
|
/// </summary>
|
|
utility::string_t getSpace() const;
|
|
bool spaceIsSet() const;
|
|
void unsetSpace();
|
|
void setSpace(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Topic is the room's one-line subject.
|
|
/// </summary>
|
|
utility::string_t getTopic() const;
|
|
bool topicIsSet() const;
|
|
void unsetTopic();
|
|
void setTopic(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
std::vector<utility::string_t> m_Bindings;
|
|
bool m_BindingsIsSet;
|
|
|
|
utility::string_t m_Life;
|
|
bool m_LifeIsSet;
|
|
|
|
std::vector<utility::string_t> m_Members;
|
|
bool m_MembersIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
bool m_r_private;
|
|
bool m_r_privateIsSet;
|
|
|
|
utility::string_t m_Space;
|
|
bool m_SpaceIsSet;
|
|
|
|
utility::string_t m_Topic;
|
|
bool m_TopicIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_TeamRoomNew_H_ */
|