/**
 * Deepin官网
 * deepin的官方网站后台接口
 *
 * The version of the OpenAPI document: 1.0
 * Contact: wurongjie@deepin.org
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/*
 * DHHandlers_ClientBBSTokenResponse.h
 *
 * 
 */

#ifndef DHHandlers_ClientBBSTokenResponse_H
#define DHHandlers_ClientBBSTokenResponse_H

#include <QJsonObject>

#include <QString>

#include "DHEnum.h"
#include "DHObject.h"

namespace DeepinHomeAPI {

class DHHandlers_ClientBBSTokenResponse : public DHObject {
public:
    DHHandlers_ClientBBSTokenResponse();
    DHHandlers_ClientBBSTokenResponse(QString json);
    ~DHHandlers_ClientBBSTokenResponse() override;

    QString asJson() const override;
    QJsonObject asJsonObject() const override;
    void fromJsonObject(QJsonObject json) override;
    void fromJson(QString jsonString) override;

    QString getAccessToken() const;
    void setAccessToken(const QString &access_token);
    bool is_access_token_Set() const;
    bool is_access_token_Valid() const;

    QString getExpiry() const;
    void setExpiry(const QString &expiry);
    bool is_expiry_Set() const;
    bool is_expiry_Valid() const;

    QString getRefreshToken() const;
    void setRefreshToken(const QString &refresh_token);
    bool is_refresh_token_Set() const;
    bool is_refresh_token_Valid() const;

    QString getTokenType() const;
    void setTokenType(const QString &token_type);
    bool is_token_type_Set() const;
    bool is_token_type_Valid() const;

    virtual bool isSet() const override;
    virtual bool isValid() const override;

private:
    void initializeModel();

    QString access_token;
    bool m_access_token_isSet;
    bool m_access_token_isValid;

    QString expiry;
    bool m_expiry_isSet;
    bool m_expiry_isValid;

    QString refresh_token;
    bool m_refresh_token_isSet;
    bool m_refresh_token_isValid;

    QString token_type;
    bool m_token_type_isSet;
    bool m_token_type_isValid;
};

} // namespace DeepinHomeAPI

Q_DECLARE_METATYPE(DeepinHomeAPI::DHHandlers_ClientBBSTokenResponse)

#endif // DHHandlers_ClientBBSTokenResponse_H
