Revision control
+ /**
+ * OpenAPI Petstore
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * Do not edit the class manually.
+ */
+
+ /*
+ * OAIUser.h
+ *
+ * A User who is purchasing from the pet store
+ */
+
+ #ifndef OAIUser_H
+ #define OAIUser_H
+
+ #include "OAIObject.h"
+ #include <QtQmlIntegration/qqmlintegration.h>
+
+ #include <QString>
+
+ namespace OpenAPI {
+
+ class OAIUser : public OAIObject {
+ Q_GADGET
+ QML_VALUE_TYPE(dataOAIUser)
+
+ Q_PROPERTY(qint64 getId READ getId WRITE setId)
+ Q_PROPERTY(QString getUsername READ getUsername WRITE setUsername)
+ Q_PROPERTY(QString getFirstName READ getFirstName WRITE setFirstName)
+ Q_PROPERTY(QString getLastName READ getLastName WRITE setLastName)
+ Q_PROPERTY(QString getEmail READ getEmail WRITE setEmail)
+ Q_PROPERTY(QString getPassword READ getPassword WRITE setPassword)
+ Q_PROPERTY(QString getPhone READ getPhone WRITE setPhone)
+ Q_PROPERTY(qint32 getUserStatus READ getUserStatus WRITE setUserStatus)
+ public:
+ OAIUser();
+ OAIUser(const QString &json);
+ ~OAIUser() override;
+
+ QString asJson() const override;
+ QJsonObject asJsonObject() const override;
+ void fromJsonObject(const QJsonObject &json) override;
+ void fromJson(const QString &jsonString) override;
+
+ qint64 getId() const;
+ void setId(const qint64 &id);
+ bool isIdSet() const;
+ bool isIdValid() const;
+
+ QString getUsername() const;
+ void setUsername(const QString &username);
+ bool isUsernameSet() const;
+ bool isUsernameValid() const;
+
+ QString getFirstName() const;
+ void setFirstName(const QString &firstName);
+ bool isFirstNameSet() const;
+ bool isFirstNameValid() const;
+
+ QString getLastName() const;
+ void setLastName(const QString &lastName);
+ bool isLastNameSet() const;
+ bool isLastNameValid() const;
+
+ QString getEmail() const;
+ void setEmail(const QString &email);
+ bool isEmailSet() const;
+ bool isEmailValid() const;
+
+ QString getPassword() const;
+ void setPassword(const QString &password);
+ bool isPasswordSet() const;
+ bool isPasswordValid() const;
+
+ QString getPhone() const;
+ void setPhone(const QString &phone);
+ bool isPhoneSet() const;
+ bool isPhoneValid() const;
+
+ qint32 getUserStatus() const;
+ void setUserStatus(const qint32 &userStatus);
+ bool isUserStatusSet() const;
+ bool isUserStatusValid() const;
+
+ virtual bool isSet() const override;
+ virtual bool isValid() const override;
+
+ private:
+ void initializeModel();
+
+ qint64 m_id;
+ bool m_idIsSet;
+ bool m_idIsValid;
+
+ QString m_username;
+ bool m_usernameIsSet;
+ bool m_usernameIsValid;
+
+ QString m_firstName;
+ bool m_firstNameIsSet;
+ bool m_firstNameIsValid;
+
+ QString m_lastName;
+ bool m_lastNameIsSet;
+ bool m_lastNameIsValid;
+
+ QString m_email;
+ bool m_emailIsSet;
+ bool m_emailIsValid;
+
+ QString m_password;
+ bool m_passwordIsSet;
+ bool m_passwordIsValid;
+
+ QString m_phone;
+ bool m_phoneIsSet;
+ bool m_phoneIsValid;
+
+ qint32 m_userStatus;
+ bool m_userStatusIsSet;
+ bool m_userStatusIsValid;
+ };
+
+ } // namespace OpenAPI
+
+ Q_DECLARE_METATYPE(OpenAPI::OAIUser)
+
+ #endif // OAIUser_H