mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-15 11:44:20 +00:00
94 lines
2.5 KiB
C++
94 lines
2.5 KiB
C++
/**
|
|
* Tribufu API
|
|
* REST API to access Tribufu services.
|
|
*
|
|
* The version of the OpenAPI document: 1.1.0
|
|
* Contact: contact@tribufu.com
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI-Generator 7.12.0.
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
/*
|
|
* LoginResponse.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef TRIBUFU_MODELS_LoginResponse_H_
|
|
#define TRIBUFU_MODELS_LoginResponse_H_
|
|
|
|
#include "tribufu++/ModelBase.h"
|
|
|
|
#include "tribufu++/model/UserInfo.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace tribufu
|
|
{
|
|
namespace models
|
|
{
|
|
|
|
class UserInfo;
|
|
|
|
class LoginResponse : public ModelBase
|
|
{
|
|
public:
|
|
LoginResponse();
|
|
virtual ~LoginResponse();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
/////////////////////////////////////////////
|
|
/// LoginResponse members
|
|
|
|
std::shared_ptr<UserInfo> getUser() const;
|
|
bool userIsSet() const;
|
|
void unsetUser();
|
|
void setUser(const std::shared_ptr<UserInfo> &value);
|
|
|
|
utility::string_t getAccessToken() const;
|
|
bool accessTokenIsSet() const;
|
|
void unsetAccess_token();
|
|
void setAccessToken(const utility::string_t &value);
|
|
|
|
utility::string_t getRefreshToken() const;
|
|
bool refreshTokenIsSet() const;
|
|
void unsetRefresh_token();
|
|
void setRefreshToken(const utility::string_t &value);
|
|
|
|
int64_t getExpiresIn() const;
|
|
bool expiresInIsSet() const;
|
|
void unsetExpires_in();
|
|
void setExpiresIn(int64_t value);
|
|
|
|
protected:
|
|
std::shared_ptr<UserInfo> m_User;
|
|
bool m_UserIsSet;
|
|
|
|
utility::string_t m_Access_token;
|
|
bool m_Access_tokenIsSet;
|
|
|
|
utility::string_t m_Refresh_token;
|
|
bool m_Refresh_tokenIsSet;
|
|
|
|
int64_t m_Expires_in;
|
|
bool m_Expires_inIsSet;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* TRIBUFU_MODELS_LoginResponse_H_ */
|