William Cheng 9e4afb0fc3
[C++] Rename Qt5 to Qt (#9490)
* rename qt5 to qt

* rename, update

* rename qt5 to qt in the templates

* update doc
2021-05-18 23:09:59 +08:00

80 lines
1.8 KiB
C++

/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/*
* PFXApiResponse.h
*
* Describes the result of uploading an image resource
*/
#ifndef PFXApiResponse_H
#define PFXApiResponse_H
#include <QJsonObject>
#include <QString>
#include "PFXEnum.h"
#include "PFXObject.h"
namespace test_namespace {
class PFXApiResponse : public PFXObject {
public:
PFXApiResponse();
PFXApiResponse(QString json);
~PFXApiResponse() override;
QString asJson() const override;
QJsonObject asJsonObject() const override;
void fromJsonObject(QJsonObject json) override;
void fromJson(QString jsonString) override;
qint32 getCode() const;
void setCode(const qint32 &code);
bool is_code_Set() const;
bool is_code_Valid() const;
QString getType() const;
void setType(const QString &type);
bool is_type_Set() const;
bool is_type_Valid() const;
QString getMessage() const;
void setMessage(const QString &message);
bool is_message_Set() const;
bool is_message_Valid() const;
virtual bool isSet() const override;
virtual bool isValid() const override;
private:
void initializeModel();
qint32 code;
bool m_code_isSet;
bool m_code_isValid;
QString type;
bool m_type_isSet;
bool m_type_isValid;
QString message;
bool m_message_isSet;
bool m_message_isValid;
};
} // namespace test_namespace
Q_DECLARE_METATYPE(test_namespace::PFXApiResponse)
#endif // PFXApiResponse_H