forked from loafle/openapi-generator-original
[cpp-qt-client] Fix warning (#16083)
* [cpp-qt-client] Fix warning * Handle warnings for MSVC * Add warning flags only for non-MSVC compilers * Fix warnings for MSVC compiler too
This commit is contained in:
parent
f8e19b4ebc
commit
067b17252e
@ -225,7 +225,7 @@ bool fromStringValue(const QString &inStr, QByteArray &value) {
|
|||||||
} else {
|
} else {
|
||||||
value.clear();
|
value.clear();
|
||||||
value.append(inStr.toUtf8());
|
value.append(inStr.toUtf8());
|
||||||
return value.size() > 0;
|
return !value.isEmpty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,9 +46,9 @@ void {{classname}}::fromJson(QString jsonString) {
|
|||||||
|
|
||||||
void {{classname}}::fromJson{{^isEnum}}Object{{/isEnum}}{{#isEnum}}Value{{/isEnum}}(QJson{{^isEnum}}Object{{/isEnum}}{{#isEnum}}Value{{/isEnum}} json) {
|
void {{classname}}::fromJson{{^isEnum}}Object{{/isEnum}}{{#isEnum}}Value{{/isEnum}}(QJson{{^isEnum}}Object{{/isEnum}}{{#isEnum}}Value{{/isEnum}} json) {
|
||||||
{{^isEnum}}{{#vars}}{{^isContainer}}
|
{{^isEnum}}{{#vars}}{{^isContainer}}
|
||||||
m_{{name}}_isValid = ::{{cppNamespace}}::fromJsonValue({{name}}, json[QString("{{baseName}}")]);
|
m_{{name}}_isValid = ::{{cppNamespace}}::fromJsonValue(m_{{name}}, json[QString("{{baseName}}")]);
|
||||||
m_{{name}}_isSet = !json[QString("{{baseName}}")].isNull() && m_{{name}}_isValid;{{/isContainer}}{{#isContainer}}{{^items.isContainer}}
|
m_{{name}}_isSet = !json[QString("{{baseName}}")].isNull() && m_{{name}}_isValid;{{/isContainer}}{{#isContainer}}{{^items.isContainer}}
|
||||||
m_{{name}}_isValid = ::{{cppNamespace}}::fromJsonValue({{name}}, json[QString("{{baseName}}")]);
|
m_{{name}}_isValid = ::{{cppNamespace}}::fromJsonValue(m_{{name}}, json[QString("{{baseName}}")]);
|
||||||
m_{{name}}_isSet = !json[QString("{{baseName}}")].isNull() && m_{{name}}_isValid;{{/items.isContainer}}{{#items.isContainer}}{{#isArray}}
|
m_{{name}}_isSet = !json[QString("{{baseName}}")].isNull() && m_{{name}}_isValid;{{/items.isContainer}}{{#items.isContainer}}{{#isArray}}
|
||||||
if(json["{{baseName}}"].isArray()){
|
if(json["{{baseName}}"].isArray()){
|
||||||
auto arr = json["{{baseName}}"].toArray();
|
auto arr = json["{{baseName}}"].toArray();
|
||||||
@ -58,7 +58,7 @@ void {{classname}}::fromJson{{^isEnum}}Object{{/isEnum}}{{#isEnum}}Value{{/isEnu
|
|||||||
{{^items.isContainer}}{{items.baseType}}{{/items.isContainer}}{{#items.isArray}}QList<{{items.items.baseType}}>{{/items.isArray}}{{#items.isMap}}QMap<QString, {{items.items.baseType}}>{{/items.isMap}} item;
|
{{^items.isContainer}}{{items.baseType}}{{/items.isContainer}}{{#items.isArray}}QList<{{items.items.baseType}}>{{/items.isArray}}{{#items.isMap}}QMap<QString, {{items.items.baseType}}>{{/items.isMap}} item;
|
||||||
m_{{name}}_isValid &= ::{{cppNamespace}}::fromJsonValue(item, jval);
|
m_{{name}}_isValid &= ::{{cppNamespace}}::fromJsonValue(item, jval);
|
||||||
m_{{name}}_isSet = !jval.isNull() && m_{{name}}_isValid;
|
m_{{name}}_isSet = !jval.isNull() && m_{{name}}_isValid;
|
||||||
{{name}}.push_back(item);
|
m_{{name}}.push_back(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}{{/isArray}}{{#isMap}}
|
}{{/isArray}}{{#isMap}}
|
||||||
@ -71,7 +71,7 @@ void {{classname}}::fromJson{{^isEnum}}Object{{/isEnum}}{{#isEnum}}Value{{/isEnu
|
|||||||
auto jval = QJsonValue::fromVariant(varmap.value(val));
|
auto jval = QJsonValue::fromVariant(varmap.value(val));
|
||||||
m_{{name}}_isValid &= ::{{cppNamespace}}::fromJsonValue(item, jval);
|
m_{{name}}_isValid &= ::{{cppNamespace}}::fromJsonValue(item, jval);
|
||||||
m_{{name}}_isSet &= !jval.isNull() && m_{{name}}_isValid;
|
m_{{name}}_isSet &= !jval.isNull() && m_{{name}}_isValid;
|
||||||
{{name}}.insert({{name}}.end(), val, item);
|
m_{{name}}.insert(m_{{name}}.end(), val, item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}{{/isMap}}{{/items.isContainer}}{{/isContainer}}{{^-last}}
|
}{{/isMap}}{{/items.isContainer}}{{/isContainer}}{{^-last}}
|
||||||
@ -100,24 +100,24 @@ QString {{classname}}::asJson() const {
|
|||||||
|
|
||||||
QJson{{^isEnum}}Object{{/isEnum}}{{#isEnum}}Value{{/isEnum}} {{classname}}::asJson{{^isEnum}}Object{{/isEnum}}{{#isEnum}}Value{{/isEnum}}() const {
|
QJson{{^isEnum}}Object{{/isEnum}}{{#isEnum}}Value{{/isEnum}} {{classname}}::asJson{{^isEnum}}Object{{/isEnum}}{{#isEnum}}Value{{/isEnum}}() const {
|
||||||
{{^isEnum}}QJsonObject obj;{{#vars}}{{^isContainer}}{{#complexType}}
|
{{^isEnum}}QJsonObject obj;{{#vars}}{{^isContainer}}{{#complexType}}
|
||||||
if ({{name}}.isSet()){{/complexType}}{{^complexType}}
|
if (m_{{name}}.isSet()){{/complexType}}{{^complexType}}
|
||||||
if (m_{{name}}_isSet){{/complexType}} {
|
if (m_{{name}}_isSet){{/complexType}} {
|
||||||
obj.insert(QString("{{baseName}}"), ::{{cppNamespace}}::toJsonValue({{name}}));
|
obj.insert(QString("{{baseName}}"), ::{{cppNamespace}}::toJsonValue(m_{{name}}));
|
||||||
}{{/isContainer}}{{#isContainer}}
|
}{{/isContainer}}{{#isContainer}}
|
||||||
if ({{name}}.size() > 0) {
|
if (m_{{name}}.size() > 0) {
|
||||||
{{^items.isContainer}}obj.insert(QString("{{baseName}}"), ::{{cppNamespace}}::toJsonValue({{name}}));{{/items.isContainer}}{{#items.isContainer}}
|
{{^items.isContainer}}obj.insert(QString("{{baseName}}"), ::{{cppNamespace}}::toJsonValue(m_{{name}}));{{/items.isContainer}}{{#items.isContainer}}
|
||||||
obj.insert(QString("{{baseName}}"), toJsonValue({{name}}));{{/items.isContainer}}
|
obj.insert(QString("{{baseName}}"), toJsonValue(m_{{name}}));{{/items.isContainer}}
|
||||||
}{{/isContainer}}{{/vars}}
|
}{{/isContainer}}{{/vars}}
|
||||||
return obj;{{/isEnum}}{{#isEnum}}
|
return obj;{{/isEnum}}{{#isEnum}}
|
||||||
{{#allowableValues}}{{#enumVars}}{{#-first}}{{^isString}}return QJsonValue(static_cast<int>(m_value));{{/isString}}{{#isString}}return QJsonValue(asJson());{{/isString}}{{/-first}}{{/enumVars}}{{/allowableValues}}{{/isEnum}}
|
{{#allowableValues}}{{#enumVars}}{{#-first}}{{^isString}}return QJsonValue(static_cast<int>(m_value));{{/isString}}{{#isString}}return QJsonValue(asJson());{{/isString}}{{/-first}}{{/enumVars}}{{/allowableValues}}{{/isEnum}}
|
||||||
}
|
}
|
||||||
|
|
||||||
{{^isEnum}}{{#vars}}{{{dataType}}} {{classname}}::{{getter}}() const {
|
{{^isEnum}}{{#vars}}{{{dataType}}} {{classname}}::{{getter}}() const {
|
||||||
return {{name}};
|
return m_{{name}};
|
||||||
}
|
}
|
||||||
void {{classname}}::{{setter}}(const {{{dataType}}} &{{name}}) {
|
void {{classname}}::{{setter}}(const {{{dataType}}} &{{name}}) {
|
||||||
this->{{name}} = {{name}};
|
m_{{name}} = {{name}};
|
||||||
this->m_{{name}}_isSet = true;
|
m_{{name}}_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool {{classname}}::is_{{name}}_Set() const{
|
bool {{classname}}::is_{{name}}_Set() const{
|
||||||
@ -141,7 +141,7 @@ void {{classname}}::setValue(const {{classname}}::e{{classname}}& value){
|
|||||||
bool {{classname}}::isSet() const {
|
bool {{classname}}::isSet() const {
|
||||||
{{^isEnum}}bool isObjectUpdated = false;
|
{{^isEnum}}bool isObjectUpdated = false;
|
||||||
do {
|
do {
|
||||||
{{#vars}} {{#isContainer}}if ({{name}}.size() > 0){{/isContainer}}{{^isContainer}}{{#complexType}}if ({{name}}.isSet()){{/complexType}}{{^complexType}}if (m_{{name}}_isSet){{/complexType}}{{/isContainer}} {
|
{{#vars}} {{#isContainer}}if (m_{{name}}.size() > 0){{/isContainer}}{{^isContainer}}{{#complexType}}if (m_{{name}}.isSet()){{/complexType}}{{^complexType}}if (m_{{name}}_isSet){{/complexType}}{{/isContainer}} {
|
||||||
isObjectUpdated = true;
|
isObjectUpdated = true;
|
||||||
break;
|
break;
|
||||||
}{{^-last}}
|
}{{^-last}}
|
||||||
|
@ -60,7 +60,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
void initializeModel();
|
void initializeModel();
|
||||||
{{^isEnum}}{{#vars}}
|
{{^isEnum}}{{#vars}}
|
||||||
{{{dataType}}} {{name}};
|
{{{dataType}}} m_{{name}};
|
||||||
bool m_{{name}}_isSet;
|
bool m_{{name}}_isSet;
|
||||||
bool m_{{name}}_isValid;
|
bool m_{{name}}_isValid;
|
||||||
{{/vars}}{{/isEnum}}{{#isEnum}}
|
{{/vars}}{{/isEnum}}{{#isEnum}}
|
||||||
|
@ -54,7 +54,13 @@ inline bool operator==(const {{prefix}}Object& left, const {{prefix}}Object& rig
|
|||||||
return (left.asJsonObject() == right.asJsonObject());
|
return (left.asJsonObject() == right.asJsonObject());
|
||||||
}
|
}
|
||||||
|
|
||||||
inline uint qHash(const {{prefix}}Object& obj, uint seed = 0) noexcept{
|
inline
|
||||||
|
#if QT_VERSION < 0x060000
|
||||||
|
uint
|
||||||
|
#else
|
||||||
|
size_t
|
||||||
|
#endif
|
||||||
|
qHash(const {{prefix}}Object& obj, uint seed = 0) noexcept{
|
||||||
return qHash(obj.asJsonObject(), seed);
|
return qHash(obj.asJsonObject(), seed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,6 +7,12 @@ set(CMAKE_AUTOMOC ON)
|
|||||||
|
|
||||||
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Network Gui Test)
|
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Network Gui Test)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
add_compile_options(/W4 /WX)
|
||||||
|
else()
|
||||||
|
add_compile_options(-Wall -Wextra -Werror)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(client)
|
add_subdirectory(client)
|
||||||
|
|
||||||
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Test)
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Test)
|
||||||
|
@ -52,13 +52,13 @@ void PFXApiResponse::fromJson(QString jsonString) {
|
|||||||
|
|
||||||
void PFXApiResponse::fromJsonObject(QJsonObject json) {
|
void PFXApiResponse::fromJsonObject(QJsonObject json) {
|
||||||
|
|
||||||
m_code_isValid = ::test_namespace::fromJsonValue(code, json[QString("code")]);
|
m_code_isValid = ::test_namespace::fromJsonValue(m_code, json[QString("code")]);
|
||||||
m_code_isSet = !json[QString("code")].isNull() && m_code_isValid;
|
m_code_isSet = !json[QString("code")].isNull() && m_code_isValid;
|
||||||
|
|
||||||
m_type_isValid = ::test_namespace::fromJsonValue(type, json[QString("type")]);
|
m_type_isValid = ::test_namespace::fromJsonValue(m_type, json[QString("type")]);
|
||||||
m_type_isSet = !json[QString("type")].isNull() && m_type_isValid;
|
m_type_isSet = !json[QString("type")].isNull() && m_type_isValid;
|
||||||
|
|
||||||
m_message_isValid = ::test_namespace::fromJsonValue(message, json[QString("message")]);
|
m_message_isValid = ::test_namespace::fromJsonValue(m_message, json[QString("message")]);
|
||||||
m_message_isSet = !json[QString("message")].isNull() && m_message_isValid;
|
m_message_isSet = !json[QString("message")].isNull() && m_message_isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,23 +72,23 @@ QString PFXApiResponse::asJson() const {
|
|||||||
QJsonObject PFXApiResponse::asJsonObject() const {
|
QJsonObject PFXApiResponse::asJsonObject() const {
|
||||||
QJsonObject obj;
|
QJsonObject obj;
|
||||||
if (m_code_isSet) {
|
if (m_code_isSet) {
|
||||||
obj.insert(QString("code"), ::test_namespace::toJsonValue(code));
|
obj.insert(QString("code"), ::test_namespace::toJsonValue(m_code));
|
||||||
}
|
}
|
||||||
if (m_type_isSet) {
|
if (m_type_isSet) {
|
||||||
obj.insert(QString("type"), ::test_namespace::toJsonValue(type));
|
obj.insert(QString("type"), ::test_namespace::toJsonValue(m_type));
|
||||||
}
|
}
|
||||||
if (m_message_isSet) {
|
if (m_message_isSet) {
|
||||||
obj.insert(QString("message"), ::test_namespace::toJsonValue(message));
|
obj.insert(QString("message"), ::test_namespace::toJsonValue(m_message));
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
qint32 PFXApiResponse::getCode() const {
|
qint32 PFXApiResponse::getCode() const {
|
||||||
return code;
|
return m_code;
|
||||||
}
|
}
|
||||||
void PFXApiResponse::setCode(const qint32 &code) {
|
void PFXApiResponse::setCode(const qint32 &code) {
|
||||||
this->code = code;
|
m_code = code;
|
||||||
this->m_code_isSet = true;
|
m_code_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXApiResponse::is_code_Set() const{
|
bool PFXApiResponse::is_code_Set() const{
|
||||||
@ -100,11 +100,11 @@ bool PFXApiResponse::is_code_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXApiResponse::getType() const {
|
QString PFXApiResponse::getType() const {
|
||||||
return type;
|
return m_type;
|
||||||
}
|
}
|
||||||
void PFXApiResponse::setType(const QString &type) {
|
void PFXApiResponse::setType(const QString &type) {
|
||||||
this->type = type;
|
m_type = type;
|
||||||
this->m_type_isSet = true;
|
m_type_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXApiResponse::is_type_Set() const{
|
bool PFXApiResponse::is_type_Set() const{
|
||||||
@ -116,11 +116,11 @@ bool PFXApiResponse::is_type_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXApiResponse::getMessage() const {
|
QString PFXApiResponse::getMessage() const {
|
||||||
return message;
|
return m_message;
|
||||||
}
|
}
|
||||||
void PFXApiResponse::setMessage(const QString &message) {
|
void PFXApiResponse::setMessage(const QString &message) {
|
||||||
this->message = message;
|
m_message = message;
|
||||||
this->m_message_isSet = true;
|
m_message_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXApiResponse::is_message_Set() const{
|
bool PFXApiResponse::is_message_Set() const{
|
||||||
|
@ -59,15 +59,15 @@ public:
|
|||||||
private:
|
private:
|
||||||
void initializeModel();
|
void initializeModel();
|
||||||
|
|
||||||
qint32 code;
|
qint32 m_code;
|
||||||
bool m_code_isSet;
|
bool m_code_isSet;
|
||||||
bool m_code_isValid;
|
bool m_code_isValid;
|
||||||
|
|
||||||
QString type;
|
QString m_type;
|
||||||
bool m_type_isSet;
|
bool m_type_isSet;
|
||||||
bool m_type_isValid;
|
bool m_type_isValid;
|
||||||
|
|
||||||
QString message;
|
QString m_message;
|
||||||
bool m_message_isSet;
|
bool m_message_isSet;
|
||||||
bool m_message_isValid;
|
bool m_message_isValid;
|
||||||
};
|
};
|
||||||
|
@ -49,10 +49,10 @@ void PFXCategory::fromJson(QString jsonString) {
|
|||||||
|
|
||||||
void PFXCategory::fromJsonObject(QJsonObject json) {
|
void PFXCategory::fromJsonObject(QJsonObject json) {
|
||||||
|
|
||||||
m_id_isValid = ::test_namespace::fromJsonValue(id, json[QString("id")]);
|
m_id_isValid = ::test_namespace::fromJsonValue(m_id, json[QString("id")]);
|
||||||
m_id_isSet = !json[QString("id")].isNull() && m_id_isValid;
|
m_id_isSet = !json[QString("id")].isNull() && m_id_isValid;
|
||||||
|
|
||||||
m_name_isValid = ::test_namespace::fromJsonValue(name, json[QString("name")]);
|
m_name_isValid = ::test_namespace::fromJsonValue(m_name, json[QString("name")]);
|
||||||
m_name_isSet = !json[QString("name")].isNull() && m_name_isValid;
|
m_name_isSet = !json[QString("name")].isNull() && m_name_isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,20 +66,20 @@ QString PFXCategory::asJson() const {
|
|||||||
QJsonObject PFXCategory::asJsonObject() const {
|
QJsonObject PFXCategory::asJsonObject() const {
|
||||||
QJsonObject obj;
|
QJsonObject obj;
|
||||||
if (m_id_isSet) {
|
if (m_id_isSet) {
|
||||||
obj.insert(QString("id"), ::test_namespace::toJsonValue(id));
|
obj.insert(QString("id"), ::test_namespace::toJsonValue(m_id));
|
||||||
}
|
}
|
||||||
if (m_name_isSet) {
|
if (m_name_isSet) {
|
||||||
obj.insert(QString("name"), ::test_namespace::toJsonValue(name));
|
obj.insert(QString("name"), ::test_namespace::toJsonValue(m_name));
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
qint64 PFXCategory::getId() const {
|
qint64 PFXCategory::getId() const {
|
||||||
return id;
|
return m_id;
|
||||||
}
|
}
|
||||||
void PFXCategory::setId(const qint64 &id) {
|
void PFXCategory::setId(const qint64 &id) {
|
||||||
this->id = id;
|
m_id = id;
|
||||||
this->m_id_isSet = true;
|
m_id_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXCategory::is_id_Set() const{
|
bool PFXCategory::is_id_Set() const{
|
||||||
@ -91,11 +91,11 @@ bool PFXCategory::is_id_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXCategory::getName() const {
|
QString PFXCategory::getName() const {
|
||||||
return name;
|
return m_name;
|
||||||
}
|
}
|
||||||
void PFXCategory::setName(const QString &name) {
|
void PFXCategory::setName(const QString &name) {
|
||||||
this->name = name;
|
m_name = name;
|
||||||
this->m_name_isSet = true;
|
m_name_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXCategory::is_name_Set() const{
|
bool PFXCategory::is_name_Set() const{
|
||||||
|
@ -54,11 +54,11 @@ public:
|
|||||||
private:
|
private:
|
||||||
void initializeModel();
|
void initializeModel();
|
||||||
|
|
||||||
qint64 id;
|
qint64 m_id;
|
||||||
bool m_id_isSet;
|
bool m_id_isSet;
|
||||||
bool m_id_isValid;
|
bool m_id_isValid;
|
||||||
|
|
||||||
QString name;
|
QString m_name;
|
||||||
bool m_name_isSet;
|
bool m_name_isSet;
|
||||||
bool m_name_isValid;
|
bool m_name_isValid;
|
||||||
};
|
};
|
||||||
|
@ -233,7 +233,7 @@ bool fromStringValue(const QString &inStr, QByteArray &value) {
|
|||||||
} else {
|
} else {
|
||||||
value.clear();
|
value.clear();
|
||||||
value.append(inStr.toUtf8());
|
value.append(inStr.toUtf8());
|
||||||
return value.size() > 0;
|
return !value.isEmpty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,13 @@ inline bool operator==(const PFXObject& left, const PFXObject& right){
|
|||||||
return (left.asJsonObject() == right.asJsonObject());
|
return (left.asJsonObject() == right.asJsonObject());
|
||||||
}
|
}
|
||||||
|
|
||||||
inline uint qHash(const PFXObject& obj, uint seed = 0) noexcept{
|
inline
|
||||||
|
#if QT_VERSION < 0x060000
|
||||||
|
uint
|
||||||
|
#else
|
||||||
|
size_t
|
||||||
|
#endif
|
||||||
|
qHash(const PFXObject& obj, uint seed = 0) noexcept{
|
||||||
return qHash(obj.asJsonObject(), seed);
|
return qHash(obj.asJsonObject(), seed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,22 +61,22 @@ void PFXOrder::fromJson(QString jsonString) {
|
|||||||
|
|
||||||
void PFXOrder::fromJsonObject(QJsonObject json) {
|
void PFXOrder::fromJsonObject(QJsonObject json) {
|
||||||
|
|
||||||
m_id_isValid = ::test_namespace::fromJsonValue(id, json[QString("id")]);
|
m_id_isValid = ::test_namespace::fromJsonValue(m_id, json[QString("id")]);
|
||||||
m_id_isSet = !json[QString("id")].isNull() && m_id_isValid;
|
m_id_isSet = !json[QString("id")].isNull() && m_id_isValid;
|
||||||
|
|
||||||
m_pet_id_isValid = ::test_namespace::fromJsonValue(pet_id, json[QString("petId")]);
|
m_pet_id_isValid = ::test_namespace::fromJsonValue(m_pet_id, json[QString("petId")]);
|
||||||
m_pet_id_isSet = !json[QString("petId")].isNull() && m_pet_id_isValid;
|
m_pet_id_isSet = !json[QString("petId")].isNull() && m_pet_id_isValid;
|
||||||
|
|
||||||
m_quantity_isValid = ::test_namespace::fromJsonValue(quantity, json[QString("quantity")]);
|
m_quantity_isValid = ::test_namespace::fromJsonValue(m_quantity, json[QString("quantity")]);
|
||||||
m_quantity_isSet = !json[QString("quantity")].isNull() && m_quantity_isValid;
|
m_quantity_isSet = !json[QString("quantity")].isNull() && m_quantity_isValid;
|
||||||
|
|
||||||
m_ship_date_isValid = ::test_namespace::fromJsonValue(ship_date, json[QString("shipDate")]);
|
m_ship_date_isValid = ::test_namespace::fromJsonValue(m_ship_date, json[QString("shipDate")]);
|
||||||
m_ship_date_isSet = !json[QString("shipDate")].isNull() && m_ship_date_isValid;
|
m_ship_date_isSet = !json[QString("shipDate")].isNull() && m_ship_date_isValid;
|
||||||
|
|
||||||
m_status_isValid = ::test_namespace::fromJsonValue(status, json[QString("status")]);
|
m_status_isValid = ::test_namespace::fromJsonValue(m_status, json[QString("status")]);
|
||||||
m_status_isSet = !json[QString("status")].isNull() && m_status_isValid;
|
m_status_isSet = !json[QString("status")].isNull() && m_status_isValid;
|
||||||
|
|
||||||
m_complete_isValid = ::test_namespace::fromJsonValue(complete, json[QString("complete")]);
|
m_complete_isValid = ::test_namespace::fromJsonValue(m_complete, json[QString("complete")]);
|
||||||
m_complete_isSet = !json[QString("complete")].isNull() && m_complete_isValid;
|
m_complete_isSet = !json[QString("complete")].isNull() && m_complete_isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,32 +90,32 @@ QString PFXOrder::asJson() const {
|
|||||||
QJsonObject PFXOrder::asJsonObject() const {
|
QJsonObject PFXOrder::asJsonObject() const {
|
||||||
QJsonObject obj;
|
QJsonObject obj;
|
||||||
if (m_id_isSet) {
|
if (m_id_isSet) {
|
||||||
obj.insert(QString("id"), ::test_namespace::toJsonValue(id));
|
obj.insert(QString("id"), ::test_namespace::toJsonValue(m_id));
|
||||||
}
|
}
|
||||||
if (m_pet_id_isSet) {
|
if (m_pet_id_isSet) {
|
||||||
obj.insert(QString("petId"), ::test_namespace::toJsonValue(pet_id));
|
obj.insert(QString("petId"), ::test_namespace::toJsonValue(m_pet_id));
|
||||||
}
|
}
|
||||||
if (m_quantity_isSet) {
|
if (m_quantity_isSet) {
|
||||||
obj.insert(QString("quantity"), ::test_namespace::toJsonValue(quantity));
|
obj.insert(QString("quantity"), ::test_namespace::toJsonValue(m_quantity));
|
||||||
}
|
}
|
||||||
if (m_ship_date_isSet) {
|
if (m_ship_date_isSet) {
|
||||||
obj.insert(QString("shipDate"), ::test_namespace::toJsonValue(ship_date));
|
obj.insert(QString("shipDate"), ::test_namespace::toJsonValue(m_ship_date));
|
||||||
}
|
}
|
||||||
if (m_status_isSet) {
|
if (m_status_isSet) {
|
||||||
obj.insert(QString("status"), ::test_namespace::toJsonValue(status));
|
obj.insert(QString("status"), ::test_namespace::toJsonValue(m_status));
|
||||||
}
|
}
|
||||||
if (m_complete_isSet) {
|
if (m_complete_isSet) {
|
||||||
obj.insert(QString("complete"), ::test_namespace::toJsonValue(complete));
|
obj.insert(QString("complete"), ::test_namespace::toJsonValue(m_complete));
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
qint64 PFXOrder::getId() const {
|
qint64 PFXOrder::getId() const {
|
||||||
return id;
|
return m_id;
|
||||||
}
|
}
|
||||||
void PFXOrder::setId(const qint64 &id) {
|
void PFXOrder::setId(const qint64 &id) {
|
||||||
this->id = id;
|
m_id = id;
|
||||||
this->m_id_isSet = true;
|
m_id_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXOrder::is_id_Set() const{
|
bool PFXOrder::is_id_Set() const{
|
||||||
@ -127,11 +127,11 @@ bool PFXOrder::is_id_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
qint64 PFXOrder::getPetId() const {
|
qint64 PFXOrder::getPetId() const {
|
||||||
return pet_id;
|
return m_pet_id;
|
||||||
}
|
}
|
||||||
void PFXOrder::setPetId(const qint64 &pet_id) {
|
void PFXOrder::setPetId(const qint64 &pet_id) {
|
||||||
this->pet_id = pet_id;
|
m_pet_id = pet_id;
|
||||||
this->m_pet_id_isSet = true;
|
m_pet_id_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXOrder::is_pet_id_Set() const{
|
bool PFXOrder::is_pet_id_Set() const{
|
||||||
@ -143,11 +143,11 @@ bool PFXOrder::is_pet_id_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
qint32 PFXOrder::getQuantity() const {
|
qint32 PFXOrder::getQuantity() const {
|
||||||
return quantity;
|
return m_quantity;
|
||||||
}
|
}
|
||||||
void PFXOrder::setQuantity(const qint32 &quantity) {
|
void PFXOrder::setQuantity(const qint32 &quantity) {
|
||||||
this->quantity = quantity;
|
m_quantity = quantity;
|
||||||
this->m_quantity_isSet = true;
|
m_quantity_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXOrder::is_quantity_Set() const{
|
bool PFXOrder::is_quantity_Set() const{
|
||||||
@ -159,11 +159,11 @@ bool PFXOrder::is_quantity_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QDateTime PFXOrder::getShipDate() const {
|
QDateTime PFXOrder::getShipDate() const {
|
||||||
return ship_date;
|
return m_ship_date;
|
||||||
}
|
}
|
||||||
void PFXOrder::setShipDate(const QDateTime &ship_date) {
|
void PFXOrder::setShipDate(const QDateTime &ship_date) {
|
||||||
this->ship_date = ship_date;
|
m_ship_date = ship_date;
|
||||||
this->m_ship_date_isSet = true;
|
m_ship_date_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXOrder::is_ship_date_Set() const{
|
bool PFXOrder::is_ship_date_Set() const{
|
||||||
@ -175,11 +175,11 @@ bool PFXOrder::is_ship_date_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXOrder::getStatus() const {
|
QString PFXOrder::getStatus() const {
|
||||||
return status;
|
return m_status;
|
||||||
}
|
}
|
||||||
void PFXOrder::setStatus(const QString &status) {
|
void PFXOrder::setStatus(const QString &status) {
|
||||||
this->status = status;
|
m_status = status;
|
||||||
this->m_status_isSet = true;
|
m_status_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXOrder::is_status_Set() const{
|
bool PFXOrder::is_status_Set() const{
|
||||||
@ -191,11 +191,11 @@ bool PFXOrder::is_status_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool PFXOrder::isComplete() const {
|
bool PFXOrder::isComplete() const {
|
||||||
return complete;
|
return m_complete;
|
||||||
}
|
}
|
||||||
void PFXOrder::setComplete(const bool &complete) {
|
void PFXOrder::setComplete(const bool &complete) {
|
||||||
this->complete = complete;
|
m_complete = complete;
|
||||||
this->m_complete_isSet = true;
|
m_complete_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXOrder::is_complete_Set() const{
|
bool PFXOrder::is_complete_Set() const{
|
||||||
|
@ -75,27 +75,27 @@ public:
|
|||||||
private:
|
private:
|
||||||
void initializeModel();
|
void initializeModel();
|
||||||
|
|
||||||
qint64 id;
|
qint64 m_id;
|
||||||
bool m_id_isSet;
|
bool m_id_isSet;
|
||||||
bool m_id_isValid;
|
bool m_id_isValid;
|
||||||
|
|
||||||
qint64 pet_id;
|
qint64 m_pet_id;
|
||||||
bool m_pet_id_isSet;
|
bool m_pet_id_isSet;
|
||||||
bool m_pet_id_isValid;
|
bool m_pet_id_isValid;
|
||||||
|
|
||||||
qint32 quantity;
|
qint32 m_quantity;
|
||||||
bool m_quantity_isSet;
|
bool m_quantity_isSet;
|
||||||
bool m_quantity_isValid;
|
bool m_quantity_isValid;
|
||||||
|
|
||||||
QDateTime ship_date;
|
QDateTime m_ship_date;
|
||||||
bool m_ship_date_isSet;
|
bool m_ship_date_isSet;
|
||||||
bool m_ship_date_isValid;
|
bool m_ship_date_isValid;
|
||||||
|
|
||||||
QString status;
|
QString m_status;
|
||||||
bool m_status_isSet;
|
bool m_status_isSet;
|
||||||
bool m_status_isValid;
|
bool m_status_isValid;
|
||||||
|
|
||||||
bool complete;
|
bool m_complete;
|
||||||
bool m_complete_isSet;
|
bool m_complete_isSet;
|
||||||
bool m_complete_isValid;
|
bool m_complete_isValid;
|
||||||
};
|
};
|
||||||
|
@ -61,22 +61,22 @@ void PFXPet::fromJson(QString jsonString) {
|
|||||||
|
|
||||||
void PFXPet::fromJsonObject(QJsonObject json) {
|
void PFXPet::fromJsonObject(QJsonObject json) {
|
||||||
|
|
||||||
m_id_isValid = ::test_namespace::fromJsonValue(id, json[QString("id")]);
|
m_id_isValid = ::test_namespace::fromJsonValue(m_id, json[QString("id")]);
|
||||||
m_id_isSet = !json[QString("id")].isNull() && m_id_isValid;
|
m_id_isSet = !json[QString("id")].isNull() && m_id_isValid;
|
||||||
|
|
||||||
m_category_isValid = ::test_namespace::fromJsonValue(category, json[QString("category")]);
|
m_category_isValid = ::test_namespace::fromJsonValue(m_category, json[QString("category")]);
|
||||||
m_category_isSet = !json[QString("category")].isNull() && m_category_isValid;
|
m_category_isSet = !json[QString("category")].isNull() && m_category_isValid;
|
||||||
|
|
||||||
m_name_isValid = ::test_namespace::fromJsonValue(name, json[QString("name")]);
|
m_name_isValid = ::test_namespace::fromJsonValue(m_name, json[QString("name")]);
|
||||||
m_name_isSet = !json[QString("name")].isNull() && m_name_isValid;
|
m_name_isSet = !json[QString("name")].isNull() && m_name_isValid;
|
||||||
|
|
||||||
m_photo_urls_isValid = ::test_namespace::fromJsonValue(photo_urls, json[QString("photoUrls")]);
|
m_photo_urls_isValid = ::test_namespace::fromJsonValue(m_photo_urls, json[QString("photoUrls")]);
|
||||||
m_photo_urls_isSet = !json[QString("photoUrls")].isNull() && m_photo_urls_isValid;
|
m_photo_urls_isSet = !json[QString("photoUrls")].isNull() && m_photo_urls_isValid;
|
||||||
|
|
||||||
m_tags_isValid = ::test_namespace::fromJsonValue(tags, json[QString("tags")]);
|
m_tags_isValid = ::test_namespace::fromJsonValue(m_tags, json[QString("tags")]);
|
||||||
m_tags_isSet = !json[QString("tags")].isNull() && m_tags_isValid;
|
m_tags_isSet = !json[QString("tags")].isNull() && m_tags_isValid;
|
||||||
|
|
||||||
m_status_isValid = ::test_namespace::fromJsonValue(status, json[QString("status")]);
|
m_status_isValid = ::test_namespace::fromJsonValue(m_status, json[QString("status")]);
|
||||||
m_status_isSet = !json[QString("status")].isNull() && m_status_isValid;
|
m_status_isSet = !json[QString("status")].isNull() && m_status_isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,32 +90,32 @@ QString PFXPet::asJson() const {
|
|||||||
QJsonObject PFXPet::asJsonObject() const {
|
QJsonObject PFXPet::asJsonObject() const {
|
||||||
QJsonObject obj;
|
QJsonObject obj;
|
||||||
if (m_id_isSet) {
|
if (m_id_isSet) {
|
||||||
obj.insert(QString("id"), ::test_namespace::toJsonValue(id));
|
obj.insert(QString("id"), ::test_namespace::toJsonValue(m_id));
|
||||||
}
|
}
|
||||||
if (category.isSet()) {
|
if (m_category.isSet()) {
|
||||||
obj.insert(QString("category"), ::test_namespace::toJsonValue(category));
|
obj.insert(QString("category"), ::test_namespace::toJsonValue(m_category));
|
||||||
}
|
}
|
||||||
if (m_name_isSet) {
|
if (m_name_isSet) {
|
||||||
obj.insert(QString("name"), ::test_namespace::toJsonValue(name));
|
obj.insert(QString("name"), ::test_namespace::toJsonValue(m_name));
|
||||||
}
|
}
|
||||||
if (photo_urls.size() > 0) {
|
if (m_photo_urls.size() > 0) {
|
||||||
obj.insert(QString("photoUrls"), ::test_namespace::toJsonValue(photo_urls));
|
obj.insert(QString("photoUrls"), ::test_namespace::toJsonValue(m_photo_urls));
|
||||||
}
|
}
|
||||||
if (tags.size() > 0) {
|
if (m_tags.size() > 0) {
|
||||||
obj.insert(QString("tags"), ::test_namespace::toJsonValue(tags));
|
obj.insert(QString("tags"), ::test_namespace::toJsonValue(m_tags));
|
||||||
}
|
}
|
||||||
if (m_status_isSet) {
|
if (m_status_isSet) {
|
||||||
obj.insert(QString("status"), ::test_namespace::toJsonValue(status));
|
obj.insert(QString("status"), ::test_namespace::toJsonValue(m_status));
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
qint64 PFXPet::getId() const {
|
qint64 PFXPet::getId() const {
|
||||||
return id;
|
return m_id;
|
||||||
}
|
}
|
||||||
void PFXPet::setId(const qint64 &id) {
|
void PFXPet::setId(const qint64 &id) {
|
||||||
this->id = id;
|
m_id = id;
|
||||||
this->m_id_isSet = true;
|
m_id_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXPet::is_id_Set() const{
|
bool PFXPet::is_id_Set() const{
|
||||||
@ -127,11 +127,11 @@ bool PFXPet::is_id_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
PFXCategory PFXPet::getCategory() const {
|
PFXCategory PFXPet::getCategory() const {
|
||||||
return category;
|
return m_category;
|
||||||
}
|
}
|
||||||
void PFXPet::setCategory(const PFXCategory &category) {
|
void PFXPet::setCategory(const PFXCategory &category) {
|
||||||
this->category = category;
|
m_category = category;
|
||||||
this->m_category_isSet = true;
|
m_category_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXPet::is_category_Set() const{
|
bool PFXPet::is_category_Set() const{
|
||||||
@ -143,11 +143,11 @@ bool PFXPet::is_category_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXPet::getName() const {
|
QString PFXPet::getName() const {
|
||||||
return name;
|
return m_name;
|
||||||
}
|
}
|
||||||
void PFXPet::setName(const QString &name) {
|
void PFXPet::setName(const QString &name) {
|
||||||
this->name = name;
|
m_name = name;
|
||||||
this->m_name_isSet = true;
|
m_name_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXPet::is_name_Set() const{
|
bool PFXPet::is_name_Set() const{
|
||||||
@ -159,11 +159,11 @@ bool PFXPet::is_name_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QList<QString> PFXPet::getPhotoUrls() const {
|
QList<QString> PFXPet::getPhotoUrls() const {
|
||||||
return photo_urls;
|
return m_photo_urls;
|
||||||
}
|
}
|
||||||
void PFXPet::setPhotoUrls(const QList<QString> &photo_urls) {
|
void PFXPet::setPhotoUrls(const QList<QString> &photo_urls) {
|
||||||
this->photo_urls = photo_urls;
|
m_photo_urls = photo_urls;
|
||||||
this->m_photo_urls_isSet = true;
|
m_photo_urls_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXPet::is_photo_urls_Set() const{
|
bool PFXPet::is_photo_urls_Set() const{
|
||||||
@ -175,11 +175,11 @@ bool PFXPet::is_photo_urls_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QList<PFXTag> PFXPet::getTags() const {
|
QList<PFXTag> PFXPet::getTags() const {
|
||||||
return tags;
|
return m_tags;
|
||||||
}
|
}
|
||||||
void PFXPet::setTags(const QList<PFXTag> &tags) {
|
void PFXPet::setTags(const QList<PFXTag> &tags) {
|
||||||
this->tags = tags;
|
m_tags = tags;
|
||||||
this->m_tags_isSet = true;
|
m_tags_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXPet::is_tags_Set() const{
|
bool PFXPet::is_tags_Set() const{
|
||||||
@ -191,11 +191,11 @@ bool PFXPet::is_tags_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXPet::getStatus() const {
|
QString PFXPet::getStatus() const {
|
||||||
return status;
|
return m_status;
|
||||||
}
|
}
|
||||||
void PFXPet::setStatus(const QString &status) {
|
void PFXPet::setStatus(const QString &status) {
|
||||||
this->status = status;
|
m_status = status;
|
||||||
this->m_status_isSet = true;
|
m_status_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXPet::is_status_Set() const{
|
bool PFXPet::is_status_Set() const{
|
||||||
@ -214,7 +214,7 @@ bool PFXPet::isSet() const {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (category.isSet()) {
|
if (m_category.isSet()) {
|
||||||
isObjectUpdated = true;
|
isObjectUpdated = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -224,12 +224,12 @@ bool PFXPet::isSet() const {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (photo_urls.size() > 0) {
|
if (m_photo_urls.size() > 0) {
|
||||||
isObjectUpdated = true;
|
isObjectUpdated = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tags.size() > 0) {
|
if (m_tags.size() > 0) {
|
||||||
isObjectUpdated = true;
|
isObjectUpdated = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -79,27 +79,27 @@ public:
|
|||||||
private:
|
private:
|
||||||
void initializeModel();
|
void initializeModel();
|
||||||
|
|
||||||
qint64 id;
|
qint64 m_id;
|
||||||
bool m_id_isSet;
|
bool m_id_isSet;
|
||||||
bool m_id_isValid;
|
bool m_id_isValid;
|
||||||
|
|
||||||
PFXCategory category;
|
PFXCategory m_category;
|
||||||
bool m_category_isSet;
|
bool m_category_isSet;
|
||||||
bool m_category_isValid;
|
bool m_category_isValid;
|
||||||
|
|
||||||
QString name;
|
QString m_name;
|
||||||
bool m_name_isSet;
|
bool m_name_isSet;
|
||||||
bool m_name_isValid;
|
bool m_name_isValid;
|
||||||
|
|
||||||
QList<QString> photo_urls;
|
QList<QString> m_photo_urls;
|
||||||
bool m_photo_urls_isSet;
|
bool m_photo_urls_isSet;
|
||||||
bool m_photo_urls_isValid;
|
bool m_photo_urls_isValid;
|
||||||
|
|
||||||
QList<PFXTag> tags;
|
QList<PFXTag> m_tags;
|
||||||
bool m_tags_isSet;
|
bool m_tags_isSet;
|
||||||
bool m_tags_isValid;
|
bool m_tags_isValid;
|
||||||
|
|
||||||
QString status;
|
QString m_status;
|
||||||
bool m_status_isSet;
|
bool m_status_isSet;
|
||||||
bool m_status_isValid;
|
bool m_status_isValid;
|
||||||
};
|
};
|
||||||
|
@ -49,10 +49,10 @@ void PFXTag::fromJson(QString jsonString) {
|
|||||||
|
|
||||||
void PFXTag::fromJsonObject(QJsonObject json) {
|
void PFXTag::fromJsonObject(QJsonObject json) {
|
||||||
|
|
||||||
m_id_isValid = ::test_namespace::fromJsonValue(id, json[QString("id")]);
|
m_id_isValid = ::test_namespace::fromJsonValue(m_id, json[QString("id")]);
|
||||||
m_id_isSet = !json[QString("id")].isNull() && m_id_isValid;
|
m_id_isSet = !json[QString("id")].isNull() && m_id_isValid;
|
||||||
|
|
||||||
m_name_isValid = ::test_namespace::fromJsonValue(name, json[QString("name")]);
|
m_name_isValid = ::test_namespace::fromJsonValue(m_name, json[QString("name")]);
|
||||||
m_name_isSet = !json[QString("name")].isNull() && m_name_isValid;
|
m_name_isSet = !json[QString("name")].isNull() && m_name_isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,20 +66,20 @@ QString PFXTag::asJson() const {
|
|||||||
QJsonObject PFXTag::asJsonObject() const {
|
QJsonObject PFXTag::asJsonObject() const {
|
||||||
QJsonObject obj;
|
QJsonObject obj;
|
||||||
if (m_id_isSet) {
|
if (m_id_isSet) {
|
||||||
obj.insert(QString("id"), ::test_namespace::toJsonValue(id));
|
obj.insert(QString("id"), ::test_namespace::toJsonValue(m_id));
|
||||||
}
|
}
|
||||||
if (m_name_isSet) {
|
if (m_name_isSet) {
|
||||||
obj.insert(QString("name"), ::test_namespace::toJsonValue(name));
|
obj.insert(QString("name"), ::test_namespace::toJsonValue(m_name));
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
qint64 PFXTag::getId() const {
|
qint64 PFXTag::getId() const {
|
||||||
return id;
|
return m_id;
|
||||||
}
|
}
|
||||||
void PFXTag::setId(const qint64 &id) {
|
void PFXTag::setId(const qint64 &id) {
|
||||||
this->id = id;
|
m_id = id;
|
||||||
this->m_id_isSet = true;
|
m_id_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXTag::is_id_Set() const{
|
bool PFXTag::is_id_Set() const{
|
||||||
@ -91,11 +91,11 @@ bool PFXTag::is_id_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXTag::getName() const {
|
QString PFXTag::getName() const {
|
||||||
return name;
|
return m_name;
|
||||||
}
|
}
|
||||||
void PFXTag::setName(const QString &name) {
|
void PFXTag::setName(const QString &name) {
|
||||||
this->name = name;
|
m_name = name;
|
||||||
this->m_name_isSet = true;
|
m_name_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXTag::is_name_Set() const{
|
bool PFXTag::is_name_Set() const{
|
||||||
|
@ -54,11 +54,11 @@ public:
|
|||||||
private:
|
private:
|
||||||
void initializeModel();
|
void initializeModel();
|
||||||
|
|
||||||
qint64 id;
|
qint64 m_id;
|
||||||
bool m_id_isSet;
|
bool m_id_isSet;
|
||||||
bool m_id_isValid;
|
bool m_id_isValid;
|
||||||
|
|
||||||
QString name;
|
QString m_name;
|
||||||
bool m_name_isSet;
|
bool m_name_isSet;
|
||||||
bool m_name_isValid;
|
bool m_name_isValid;
|
||||||
};
|
};
|
||||||
|
@ -49,10 +49,10 @@ void PFXTestAnyType::fromJson(QString jsonString) {
|
|||||||
|
|
||||||
void PFXTestAnyType::fromJsonObject(QJsonObject json) {
|
void PFXTestAnyType::fromJsonObject(QJsonObject json) {
|
||||||
|
|
||||||
m_code_isValid = ::test_namespace::fromJsonValue(code, json[QString("code")]);
|
m_code_isValid = ::test_namespace::fromJsonValue(m_code, json[QString("code")]);
|
||||||
m_code_isSet = !json[QString("code")].isNull() && m_code_isValid;
|
m_code_isSet = !json[QString("code")].isNull() && m_code_isValid;
|
||||||
|
|
||||||
m_message_isValid = ::test_namespace::fromJsonValue(message, json[QString("message")]);
|
m_message_isValid = ::test_namespace::fromJsonValue(m_message, json[QString("message")]);
|
||||||
m_message_isSet = !json[QString("message")].isNull() && m_message_isValid;
|
m_message_isSet = !json[QString("message")].isNull() && m_message_isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,20 +66,20 @@ QString PFXTestAnyType::asJson() const {
|
|||||||
QJsonObject PFXTestAnyType::asJsonObject() const {
|
QJsonObject PFXTestAnyType::asJsonObject() const {
|
||||||
QJsonObject obj;
|
QJsonObject obj;
|
||||||
if (m_code_isSet) {
|
if (m_code_isSet) {
|
||||||
obj.insert(QString("code"), ::test_namespace::toJsonValue(code));
|
obj.insert(QString("code"), ::test_namespace::toJsonValue(m_code));
|
||||||
}
|
}
|
||||||
if (m_message_isSet) {
|
if (m_message_isSet) {
|
||||||
obj.insert(QString("message"), ::test_namespace::toJsonValue(message));
|
obj.insert(QString("message"), ::test_namespace::toJsonValue(m_message));
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
QJsonValue PFXTestAnyType::getCode() const {
|
QJsonValue PFXTestAnyType::getCode() const {
|
||||||
return code;
|
return m_code;
|
||||||
}
|
}
|
||||||
void PFXTestAnyType::setCode(const QJsonValue &code) {
|
void PFXTestAnyType::setCode(const QJsonValue &code) {
|
||||||
this->code = code;
|
m_code = code;
|
||||||
this->m_code_isSet = true;
|
m_code_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXTestAnyType::is_code_Set() const{
|
bool PFXTestAnyType::is_code_Set() const{
|
||||||
@ -91,11 +91,11 @@ bool PFXTestAnyType::is_code_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXTestAnyType::getMessage() const {
|
QString PFXTestAnyType::getMessage() const {
|
||||||
return message;
|
return m_message;
|
||||||
}
|
}
|
||||||
void PFXTestAnyType::setMessage(const QString &message) {
|
void PFXTestAnyType::setMessage(const QString &message) {
|
||||||
this->message = message;
|
m_message = message;
|
||||||
this->m_message_isSet = true;
|
m_message_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXTestAnyType::is_message_Set() const{
|
bool PFXTestAnyType::is_message_Set() const{
|
||||||
|
@ -55,11 +55,11 @@ public:
|
|||||||
private:
|
private:
|
||||||
void initializeModel();
|
void initializeModel();
|
||||||
|
|
||||||
QJsonValue code;
|
QJsonValue m_code;
|
||||||
bool m_code_isSet;
|
bool m_code_isSet;
|
||||||
bool m_code_isValid;
|
bool m_code_isValid;
|
||||||
|
|
||||||
QString message;
|
QString m_message;
|
||||||
bool m_message_isSet;
|
bool m_message_isSet;
|
||||||
bool m_message_isValid;
|
bool m_message_isValid;
|
||||||
};
|
};
|
||||||
|
@ -67,28 +67,28 @@ void PFXUser::fromJson(QString jsonString) {
|
|||||||
|
|
||||||
void PFXUser::fromJsonObject(QJsonObject json) {
|
void PFXUser::fromJsonObject(QJsonObject json) {
|
||||||
|
|
||||||
m_id_isValid = ::test_namespace::fromJsonValue(id, json[QString("id")]);
|
m_id_isValid = ::test_namespace::fromJsonValue(m_id, json[QString("id")]);
|
||||||
m_id_isSet = !json[QString("id")].isNull() && m_id_isValid;
|
m_id_isSet = !json[QString("id")].isNull() && m_id_isValid;
|
||||||
|
|
||||||
m_username_isValid = ::test_namespace::fromJsonValue(username, json[QString("username")]);
|
m_username_isValid = ::test_namespace::fromJsonValue(m_username, json[QString("username")]);
|
||||||
m_username_isSet = !json[QString("username")].isNull() && m_username_isValid;
|
m_username_isSet = !json[QString("username")].isNull() && m_username_isValid;
|
||||||
|
|
||||||
m_first_name_isValid = ::test_namespace::fromJsonValue(first_name, json[QString("firstName")]);
|
m_first_name_isValid = ::test_namespace::fromJsonValue(m_first_name, json[QString("firstName")]);
|
||||||
m_first_name_isSet = !json[QString("firstName")].isNull() && m_first_name_isValid;
|
m_first_name_isSet = !json[QString("firstName")].isNull() && m_first_name_isValid;
|
||||||
|
|
||||||
m_last_name_isValid = ::test_namespace::fromJsonValue(last_name, json[QString("lastName")]);
|
m_last_name_isValid = ::test_namespace::fromJsonValue(m_last_name, json[QString("lastName")]);
|
||||||
m_last_name_isSet = !json[QString("lastName")].isNull() && m_last_name_isValid;
|
m_last_name_isSet = !json[QString("lastName")].isNull() && m_last_name_isValid;
|
||||||
|
|
||||||
m_email_isValid = ::test_namespace::fromJsonValue(email, json[QString("email")]);
|
m_email_isValid = ::test_namespace::fromJsonValue(m_email, json[QString("email")]);
|
||||||
m_email_isSet = !json[QString("email")].isNull() && m_email_isValid;
|
m_email_isSet = !json[QString("email")].isNull() && m_email_isValid;
|
||||||
|
|
||||||
m_password_isValid = ::test_namespace::fromJsonValue(password, json[QString("password")]);
|
m_password_isValid = ::test_namespace::fromJsonValue(m_password, json[QString("password")]);
|
||||||
m_password_isSet = !json[QString("password")].isNull() && m_password_isValid;
|
m_password_isSet = !json[QString("password")].isNull() && m_password_isValid;
|
||||||
|
|
||||||
m_phone_isValid = ::test_namespace::fromJsonValue(phone, json[QString("phone")]);
|
m_phone_isValid = ::test_namespace::fromJsonValue(m_phone, json[QString("phone")]);
|
||||||
m_phone_isSet = !json[QString("phone")].isNull() && m_phone_isValid;
|
m_phone_isSet = !json[QString("phone")].isNull() && m_phone_isValid;
|
||||||
|
|
||||||
m_user_status_isValid = ::test_namespace::fromJsonValue(user_status, json[QString("userStatus")]);
|
m_user_status_isValid = ::test_namespace::fromJsonValue(m_user_status, json[QString("userStatus")]);
|
||||||
m_user_status_isSet = !json[QString("userStatus")].isNull() && m_user_status_isValid;
|
m_user_status_isSet = !json[QString("userStatus")].isNull() && m_user_status_isValid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,38 +102,38 @@ QString PFXUser::asJson() const {
|
|||||||
QJsonObject PFXUser::asJsonObject() const {
|
QJsonObject PFXUser::asJsonObject() const {
|
||||||
QJsonObject obj;
|
QJsonObject obj;
|
||||||
if (m_id_isSet) {
|
if (m_id_isSet) {
|
||||||
obj.insert(QString("id"), ::test_namespace::toJsonValue(id));
|
obj.insert(QString("id"), ::test_namespace::toJsonValue(m_id));
|
||||||
}
|
}
|
||||||
if (m_username_isSet) {
|
if (m_username_isSet) {
|
||||||
obj.insert(QString("username"), ::test_namespace::toJsonValue(username));
|
obj.insert(QString("username"), ::test_namespace::toJsonValue(m_username));
|
||||||
}
|
}
|
||||||
if (m_first_name_isSet) {
|
if (m_first_name_isSet) {
|
||||||
obj.insert(QString("firstName"), ::test_namespace::toJsonValue(first_name));
|
obj.insert(QString("firstName"), ::test_namespace::toJsonValue(m_first_name));
|
||||||
}
|
}
|
||||||
if (m_last_name_isSet) {
|
if (m_last_name_isSet) {
|
||||||
obj.insert(QString("lastName"), ::test_namespace::toJsonValue(last_name));
|
obj.insert(QString("lastName"), ::test_namespace::toJsonValue(m_last_name));
|
||||||
}
|
}
|
||||||
if (m_email_isSet) {
|
if (m_email_isSet) {
|
||||||
obj.insert(QString("email"), ::test_namespace::toJsonValue(email));
|
obj.insert(QString("email"), ::test_namespace::toJsonValue(m_email));
|
||||||
}
|
}
|
||||||
if (m_password_isSet) {
|
if (m_password_isSet) {
|
||||||
obj.insert(QString("password"), ::test_namespace::toJsonValue(password));
|
obj.insert(QString("password"), ::test_namespace::toJsonValue(m_password));
|
||||||
}
|
}
|
||||||
if (m_phone_isSet) {
|
if (m_phone_isSet) {
|
||||||
obj.insert(QString("phone"), ::test_namespace::toJsonValue(phone));
|
obj.insert(QString("phone"), ::test_namespace::toJsonValue(m_phone));
|
||||||
}
|
}
|
||||||
if (m_user_status_isSet) {
|
if (m_user_status_isSet) {
|
||||||
obj.insert(QString("userStatus"), ::test_namespace::toJsonValue(user_status));
|
obj.insert(QString("userStatus"), ::test_namespace::toJsonValue(m_user_status));
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
qint64 PFXUser::getId() const {
|
qint64 PFXUser::getId() const {
|
||||||
return id;
|
return m_id;
|
||||||
}
|
}
|
||||||
void PFXUser::setId(const qint64 &id) {
|
void PFXUser::setId(const qint64 &id) {
|
||||||
this->id = id;
|
m_id = id;
|
||||||
this->m_id_isSet = true;
|
m_id_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXUser::is_id_Set() const{
|
bool PFXUser::is_id_Set() const{
|
||||||
@ -145,11 +145,11 @@ bool PFXUser::is_id_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXUser::getUsername() const {
|
QString PFXUser::getUsername() const {
|
||||||
return username;
|
return m_username;
|
||||||
}
|
}
|
||||||
void PFXUser::setUsername(const QString &username) {
|
void PFXUser::setUsername(const QString &username) {
|
||||||
this->username = username;
|
m_username = username;
|
||||||
this->m_username_isSet = true;
|
m_username_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXUser::is_username_Set() const{
|
bool PFXUser::is_username_Set() const{
|
||||||
@ -161,11 +161,11 @@ bool PFXUser::is_username_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXUser::getFirstName() const {
|
QString PFXUser::getFirstName() const {
|
||||||
return first_name;
|
return m_first_name;
|
||||||
}
|
}
|
||||||
void PFXUser::setFirstName(const QString &first_name) {
|
void PFXUser::setFirstName(const QString &first_name) {
|
||||||
this->first_name = first_name;
|
m_first_name = first_name;
|
||||||
this->m_first_name_isSet = true;
|
m_first_name_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXUser::is_first_name_Set() const{
|
bool PFXUser::is_first_name_Set() const{
|
||||||
@ -177,11 +177,11 @@ bool PFXUser::is_first_name_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXUser::getLastName() const {
|
QString PFXUser::getLastName() const {
|
||||||
return last_name;
|
return m_last_name;
|
||||||
}
|
}
|
||||||
void PFXUser::setLastName(const QString &last_name) {
|
void PFXUser::setLastName(const QString &last_name) {
|
||||||
this->last_name = last_name;
|
m_last_name = last_name;
|
||||||
this->m_last_name_isSet = true;
|
m_last_name_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXUser::is_last_name_Set() const{
|
bool PFXUser::is_last_name_Set() const{
|
||||||
@ -193,11 +193,11 @@ bool PFXUser::is_last_name_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXUser::getEmail() const {
|
QString PFXUser::getEmail() const {
|
||||||
return email;
|
return m_email;
|
||||||
}
|
}
|
||||||
void PFXUser::setEmail(const QString &email) {
|
void PFXUser::setEmail(const QString &email) {
|
||||||
this->email = email;
|
m_email = email;
|
||||||
this->m_email_isSet = true;
|
m_email_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXUser::is_email_Set() const{
|
bool PFXUser::is_email_Set() const{
|
||||||
@ -209,11 +209,11 @@ bool PFXUser::is_email_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXUser::getPassword() const {
|
QString PFXUser::getPassword() const {
|
||||||
return password;
|
return m_password;
|
||||||
}
|
}
|
||||||
void PFXUser::setPassword(const QString &password) {
|
void PFXUser::setPassword(const QString &password) {
|
||||||
this->password = password;
|
m_password = password;
|
||||||
this->m_password_isSet = true;
|
m_password_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXUser::is_password_Set() const{
|
bool PFXUser::is_password_Set() const{
|
||||||
@ -225,11 +225,11 @@ bool PFXUser::is_password_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString PFXUser::getPhone() const {
|
QString PFXUser::getPhone() const {
|
||||||
return phone;
|
return m_phone;
|
||||||
}
|
}
|
||||||
void PFXUser::setPhone(const QString &phone) {
|
void PFXUser::setPhone(const QString &phone) {
|
||||||
this->phone = phone;
|
m_phone = phone;
|
||||||
this->m_phone_isSet = true;
|
m_phone_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXUser::is_phone_Set() const{
|
bool PFXUser::is_phone_Set() const{
|
||||||
@ -241,11 +241,11 @@ bool PFXUser::is_phone_Valid() const{
|
|||||||
}
|
}
|
||||||
|
|
||||||
qint32 PFXUser::getUserStatus() const {
|
qint32 PFXUser::getUserStatus() const {
|
||||||
return user_status;
|
return m_user_status;
|
||||||
}
|
}
|
||||||
void PFXUser::setUserStatus(const qint32 &user_status) {
|
void PFXUser::setUserStatus(const qint32 &user_status) {
|
||||||
this->user_status = user_status;
|
m_user_status = user_status;
|
||||||
this->m_user_status_isSet = true;
|
m_user_status_isSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PFXUser::is_user_status_Set() const{
|
bool PFXUser::is_user_status_Set() const{
|
||||||
|
@ -84,35 +84,35 @@ public:
|
|||||||
private:
|
private:
|
||||||
void initializeModel();
|
void initializeModel();
|
||||||
|
|
||||||
qint64 id;
|
qint64 m_id;
|
||||||
bool m_id_isSet;
|
bool m_id_isSet;
|
||||||
bool m_id_isValid;
|
bool m_id_isValid;
|
||||||
|
|
||||||
QString username;
|
QString m_username;
|
||||||
bool m_username_isSet;
|
bool m_username_isSet;
|
||||||
bool m_username_isValid;
|
bool m_username_isValid;
|
||||||
|
|
||||||
QString first_name;
|
QString m_first_name;
|
||||||
bool m_first_name_isSet;
|
bool m_first_name_isSet;
|
||||||
bool m_first_name_isValid;
|
bool m_first_name_isValid;
|
||||||
|
|
||||||
QString last_name;
|
QString m_last_name;
|
||||||
bool m_last_name_isSet;
|
bool m_last_name_isSet;
|
||||||
bool m_last_name_isValid;
|
bool m_last_name_isValid;
|
||||||
|
|
||||||
QString email;
|
QString m_email;
|
||||||
bool m_email_isSet;
|
bool m_email_isSet;
|
||||||
bool m_email_isValid;
|
bool m_email_isValid;
|
||||||
|
|
||||||
QString password;
|
QString m_password;
|
||||||
bool m_password_isSet;
|
bool m_password_isSet;
|
||||||
bool m_password_isValid;
|
bool m_password_isValid;
|
||||||
|
|
||||||
QString phone;
|
QString m_phone;
|
||||||
bool m_phone_isSet;
|
bool m_phone_isSet;
|
||||||
bool m_phone_isValid;
|
bool m_phone_isValid;
|
||||||
|
|
||||||
qint32 user_status;
|
qint32 m_user_status;
|
||||||
bool m_user_status_isSet;
|
bool m_user_status_isSet;
|
||||||
bool m_user_status_isValid;
|
bool m_user_status_isValid;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user