1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

Regenerate swagger

This commit is contained in:
Jon Beniston 2023-09-01 19:05:51 +01:00
parent e1074ee257
commit a9d1cdd9dc
5 changed files with 51 additions and 47 deletions

View File

@ -11777,7 +11777,7 @@ margin-bottom: 20px;
};
defs.RTTYModActions_payload = {
"properties" : {
"data" : {
"text" : {
"type" : "string"
}
}
@ -11864,10 +11864,10 @@ margin-bottom: 20px;
"type" : "integer"
},
"prefixCRLF" : {
"type" : "integer"
"type" : "string"
},
"postfixCRLF" : {
"type" : "integer"
"type" : "string"
},
"udpEnabled" : {
"type" : "integer",
@ -57998,7 +57998,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2023-09-01T19:50:57.465+02:00
Generated 2023-09-01T20:05:30.444+02:00
</div>
</div>
</div>

View File

@ -28,8 +28,8 @@ SWGRTTYModActions_payload::SWGRTTYModActions_payload(QString* json) {
}
SWGRTTYModActions_payload::SWGRTTYModActions_payload() {
data = nullptr;
m_data_isSet = false;
text = nullptr;
m_text_isSet = false;
}
SWGRTTYModActions_payload::~SWGRTTYModActions_payload() {
@ -38,14 +38,14 @@ SWGRTTYModActions_payload::~SWGRTTYModActions_payload() {
void
SWGRTTYModActions_payload::init() {
data = new QString("");
m_data_isSet = false;
text = new QString("");
m_text_isSet = false;
}
void
SWGRTTYModActions_payload::cleanup() {
if(data != nullptr) {
delete data;
if(text != nullptr) {
delete text;
}
}
@ -60,7 +60,7 @@ SWGRTTYModActions_payload::fromJson(QString &json) {
void
SWGRTTYModActions_payload::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&data, pJson["data"], "QString", "QString");
::SWGSDRangel::setValue(&text, pJson["text"], "QString", "QString");
}
@ -78,21 +78,21 @@ SWGRTTYModActions_payload::asJson ()
QJsonObject*
SWGRTTYModActions_payload::asJsonObject() {
QJsonObject* obj = new QJsonObject();
if(data != nullptr && *data != QString("")){
toJsonValue(QString("data"), data, obj, QString("QString"));
if(text != nullptr && *text != QString("")){
toJsonValue(QString("text"), text, obj, QString("QString"));
}
return obj;
}
QString*
SWGRTTYModActions_payload::getData() {
return data;
SWGRTTYModActions_payload::getText() {
return text;
}
void
SWGRTTYModActions_payload::setData(QString* data) {
this->data = data;
this->m_data_isSet = true;
SWGRTTYModActions_payload::setText(QString* text) {
this->text = text;
this->m_text_isSet = true;
}
@ -100,7 +100,7 @@ bool
SWGRTTYModActions_payload::isSet(){
bool isObjectUpdated = false;
do{
if(data && *data != QString("")){
if(text && *text != QString("")){
isObjectUpdated = true; break;
}
}while(false);

View File

@ -42,15 +42,15 @@ public:
virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGRTTYModActions_payload* fromJson(QString &jsonString) override;
QString* getData();
void setData(QString* data);
QString* getText();
void setText(QString* text);
virtual bool isSet() override;
private:
QString* data;
bool m_data_isSet;
QString* text;
bool m_text_isSet;
};

View File

@ -66,9 +66,9 @@ SWGRTTYModSettings::SWGRTTYModSettings() {
m_msb_first_isSet = false;
space_high = 0;
m_space_high_isSet = false;
prefix_crlf = 0;
prefix_crlf = nullptr;
m_prefix_crlf_isSet = false;
postfix_crlf = 0;
postfix_crlf = nullptr;
m_postfix_crlf_isSet = false;
udp_enabled = 0;
m_udp_enabled_isSet = false;
@ -142,9 +142,9 @@ SWGRTTYModSettings::init() {
m_msb_first_isSet = false;
space_high = 0;
m_space_high_isSet = false;
prefix_crlf = 0;
prefix_crlf = new QString("");
m_prefix_crlf_isSet = false;
postfix_crlf = 0;
postfix_crlf = new QString("");
m_postfix_crlf_isSet = false;
udp_enabled = 0;
m_udp_enabled_isSet = false;
@ -197,8 +197,12 @@ SWGRTTYModSettings::cleanup() {
if(prefix_crlf != nullptr) {
delete prefix_crlf;
}
if(postfix_crlf != nullptr) {
delete postfix_crlf;
}
if(udp_address != nullptr) {
delete udp_address;
@ -273,9 +277,9 @@ SWGRTTYModSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&space_high, pJson["spaceHigh"], "qint32", "");
::SWGSDRangel::setValue(&prefix_crlf, pJson["prefixCRLF"], "qint32", "");
::SWGSDRangel::setValue(&prefix_crlf, pJson["prefixCRLF"], "QString", "QString");
::SWGSDRangel::setValue(&postfix_crlf, pJson["postfixCRLF"], "qint32", "");
::SWGSDRangel::setValue(&postfix_crlf, pJson["postfixCRLF"], "QString", "QString");
::SWGSDRangel::setValue(&udp_enabled, pJson["udpEnabled"], "qint32", "");
@ -376,11 +380,11 @@ SWGRTTYModSettings::asJsonObject() {
if(m_space_high_isSet){
obj->insert("spaceHigh", QJsonValue(space_high));
}
if(m_prefix_crlf_isSet){
obj->insert("prefixCRLF", QJsonValue(prefix_crlf));
if(prefix_crlf != nullptr && *prefix_crlf != QString("")){
toJsonValue(QString("prefixCRLF"), prefix_crlf, obj, QString("QString"));
}
if(m_postfix_crlf_isSet){
obj->insert("postfixCRLF", QJsonValue(postfix_crlf));
if(postfix_crlf != nullptr && *postfix_crlf != QString("")){
toJsonValue(QString("postfixCRLF"), postfix_crlf, obj, QString("QString"));
}
if(m_udp_enabled_isSet){
obj->insert("udpEnabled", QJsonValue(udp_enabled));
@ -615,22 +619,22 @@ SWGRTTYModSettings::setSpaceHigh(qint32 space_high) {
this->m_space_high_isSet = true;
}
qint32
QString*
SWGRTTYModSettings::getPrefixCrlf() {
return prefix_crlf;
}
void
SWGRTTYModSettings::setPrefixCrlf(qint32 prefix_crlf) {
SWGRTTYModSettings::setPrefixCrlf(QString* prefix_crlf) {
this->prefix_crlf = prefix_crlf;
this->m_prefix_crlf_isSet = true;
}
qint32
QString*
SWGRTTYModSettings::getPostfixCrlf() {
return postfix_crlf;
}
void
SWGRTTYModSettings::setPostfixCrlf(qint32 postfix_crlf) {
SWGRTTYModSettings::setPostfixCrlf(QString* postfix_crlf) {
this->postfix_crlf = postfix_crlf;
this->m_postfix_crlf_isSet = true;
}
@ -827,10 +831,10 @@ SWGRTTYModSettings::isSet(){
if(m_space_high_isSet){
isObjectUpdated = true; break;
}
if(m_prefix_crlf_isSet){
if(prefix_crlf && *prefix_crlf != QString("")){
isObjectUpdated = true; break;
}
if(m_postfix_crlf_isSet){
if(postfix_crlf && *postfix_crlf != QString("")){
isObjectUpdated = true; break;
}
if(m_udp_enabled_isSet){

View File

@ -101,11 +101,11 @@ public:
qint32 getSpaceHigh();
void setSpaceHigh(qint32 space_high);
qint32 getPrefixCrlf();
void setPrefixCrlf(qint32 prefix_crlf);
QString* getPrefixCrlf();
void setPrefixCrlf(QString* prefix_crlf);
qint32 getPostfixCrlf();
void setPostfixCrlf(qint32 postfix_crlf);
QString* getPostfixCrlf();
void setPostfixCrlf(QString* postfix_crlf);
qint32 getUdpEnabled();
void setUdpEnabled(qint32 udp_enabled);
@ -207,10 +207,10 @@ private:
qint32 space_high;
bool m_space_high_isSet;
qint32 prefix_crlf;
QString* prefix_crlf;
bool m_prefix_crlf_isSet;
qint32 postfix_crlf;
QString* postfix_crlf;
bool m_postfix_crlf_isSet;
qint32 udp_enabled;