mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-31 05:50:52 +00:00
68 lines
1.2 KiB
C++
68 lines
1.2 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.
|
|
*/
|
|
|
|
#ifndef OAI_ENUM_H
|
|
#define OAI_ENUM_H
|
|
|
|
#include <QString>
|
|
#include <QJsonValue>
|
|
#include <QMetaType>
|
|
|
|
namespace OpenAPI {
|
|
|
|
class OAIEnum {
|
|
public:
|
|
OAIEnum() {
|
|
|
|
}
|
|
|
|
OAIEnum(QString jsonString) {
|
|
fromJson(jsonString);
|
|
}
|
|
|
|
virtual ~OAIEnum(){
|
|
|
|
}
|
|
|
|
virtual QJsonValue asJsonValue() const {
|
|
return QJsonValue(jstr);
|
|
}
|
|
|
|
virtual QString asJson() const {
|
|
return jstr;
|
|
}
|
|
|
|
virtual void fromJson(QString jsonString) {
|
|
jstr = jsonString;
|
|
}
|
|
|
|
virtual void fromJsonValue(QJsonValue jval) {
|
|
jstr = jval.toString();
|
|
}
|
|
|
|
virtual bool isSet() const {
|
|
return false;
|
|
}
|
|
|
|
virtual bool isValid() const {
|
|
return true;
|
|
}
|
|
private :
|
|
QString jstr;
|
|
};
|
|
|
|
}
|
|
|
|
Q_DECLARE_METATYPE(OpenAPI::OAIEnum)
|
|
|
|
#endif // OAI_ENUM_H
|