Files

130 lines
3.3 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.
*/
/*
* Call.h
*
*
*/
#ifndef HANZO_MODEL_Call_H_
#define HANZO_MODEL_Call_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class Call
: public ModelBase
{
public:
Call();
virtual ~Call();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Call members
/// <summary>
/// Agent names the Hanzo assistant handling the call. Set means the call was answered by that assistant rather than connected to a person.
/// </summary>
utility::string_t getAgent() const;
bool agentIsSet() const;
void unsetAgent();
void setAgent(const utility::string_t& value);
/// <summary>
/// From is the calling number in E.164. It must be one this org holds: a carrier refuses an origination from a number nobody proved they own.
/// </summary>
utility::string_t getFrom() const;
bool fromIsSet() const;
void unsetFrom();
void setFrom(const utility::string_t& value);
/// <summary>
/// ID is the carrier&#39;s handle for the call — what a hangup or a lookup names.
/// </summary>
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
/// <summary>
/// Org is the tenant the call was placed for or received by.
/// </summary>
utility::string_t getOrg() const;
bool orgIsSet() const;
void unsetOrg();
void setOrg(const utility::string_t& value);
/// <summary>
/// Status is where the call is: \&quot;queued\&quot;, \&quot;ringing\&quot;, \&quot;answered\&quot;, \&quot;completed\&quot; or \&quot;failed\&quot;. Only the last two are terminal.
/// </summary>
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
/// <summary>
/// To is the called number in E.164.
/// </summary>
utility::string_t getTo() const;
bool toIsSet() const;
void unsetTo();
void setTo(const utility::string_t& value);
protected:
utility::string_t m_Agent;
bool m_AgentIsSet;
utility::string_t m_From;
bool m_FromIsSet;
utility::string_t m_Id;
bool m_IdIsSet;
utility::string_t m_Org;
bool m_OrgIsSet;
utility::string_t m_Status;
bool m_StatusIsSet;
utility::string_t m_To;
bool m_ToIsSet;
};
}
}
#endif /* HANZO_MODEL_Call_H_ */