1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 01:18:38 -05:00

Regenerate swagger

This commit is contained in:
srcejon 2024-04-04 15:24:08 +01:00
parent d84facb303
commit 879ce0e17b
5 changed files with 122 additions and 2 deletions

View File

@ -8558,6 +8558,18 @@ margin-bottom: 20px;
"status" : {
"type" : "integer",
"description" : "0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected"
},
"latitude" : {
"type" : "number",
"format" : "float"
},
"longitude" : {
"type" : "number",
"format" : "float"
},
"altitude" : {
"type" : "number",
"format" : "float"
}
},
"description" : "KiwiSDR"
@ -58922,7 +58934,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2024-03-27T17:49:13.510+01:00
Generated 2024-04-04T16:23:36.765+02:00
</div>
</div>
</div>

View File

@ -30,3 +30,12 @@ KiwiSDRReport:
status:
description: 0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected
type: integer
latitude:
type: number
format: float
longitude:
type: number
format: float
altitude:
type: number
format: float

View File

@ -8558,6 +8558,18 @@ margin-bottom: 20px;
"status" : {
"type" : "integer",
"description" : "0 for Idle, 1 for Connecting, 2 for Connected, 3 for Error, 4 for Disconnected"
},
"latitude" : {
"type" : "number",
"format" : "float"
},
"longitude" : {
"type" : "number",
"format" : "float"
},
"altitude" : {
"type" : "number",
"format" : "float"
}
},
"description" : "KiwiSDR"
@ -58922,7 +58934,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2024-03-27T17:49:13.510+01:00
Generated 2024-04-04T16:23:36.765+02:00
</div>
</div>
</div>

View File

@ -30,6 +30,12 @@ SWGKiwiSDRReport::SWGKiwiSDRReport(QString* json) {
SWGKiwiSDRReport::SWGKiwiSDRReport() {
status = 0;
m_status_isSet = false;
latitude = 0.0f;
m_latitude_isSet = false;
longitude = 0.0f;
m_longitude_isSet = false;
altitude = 0.0f;
m_altitude_isSet = false;
}
SWGKiwiSDRReport::~SWGKiwiSDRReport() {
@ -40,11 +46,20 @@ void
SWGKiwiSDRReport::init() {
status = 0;
m_status_isSet = false;
latitude = 0.0f;
m_latitude_isSet = false;
longitude = 0.0f;
m_longitude_isSet = false;
altitude = 0.0f;
m_altitude_isSet = false;
}
void
SWGKiwiSDRReport::cleanup() {
}
SWGKiwiSDRReport*
@ -60,6 +75,12 @@ void
SWGKiwiSDRReport::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&status, pJson["status"], "qint32", "");
::SWGSDRangel::setValue(&latitude, pJson["latitude"], "float", "");
::SWGSDRangel::setValue(&longitude, pJson["longitude"], "float", "");
::SWGSDRangel::setValue(&altitude, pJson["altitude"], "float", "");
}
QString
@ -79,6 +100,15 @@ SWGKiwiSDRReport::asJsonObject() {
if(m_status_isSet){
obj->insert("status", QJsonValue(status));
}
if(m_latitude_isSet){
obj->insert("latitude", QJsonValue(latitude));
}
if(m_longitude_isSet){
obj->insert("longitude", QJsonValue(longitude));
}
if(m_altitude_isSet){
obj->insert("altitude", QJsonValue(altitude));
}
return obj;
}
@ -93,6 +123,36 @@ SWGKiwiSDRReport::setStatus(qint32 status) {
this->m_status_isSet = true;
}
float
SWGKiwiSDRReport::getLatitude() {
return latitude;
}
void
SWGKiwiSDRReport::setLatitude(float latitude) {
this->latitude = latitude;
this->m_latitude_isSet = true;
}
float
SWGKiwiSDRReport::getLongitude() {
return longitude;
}
void
SWGKiwiSDRReport::setLongitude(float longitude) {
this->longitude = longitude;
this->m_longitude_isSet = true;
}
float
SWGKiwiSDRReport::getAltitude() {
return altitude;
}
void
SWGKiwiSDRReport::setAltitude(float altitude) {
this->altitude = altitude;
this->m_altitude_isSet = true;
}
bool
SWGKiwiSDRReport::isSet(){
@ -101,6 +161,15 @@ SWGKiwiSDRReport::isSet(){
if(m_status_isSet){
isObjectUpdated = true; break;
}
if(m_latitude_isSet){
isObjectUpdated = true; break;
}
if(m_longitude_isSet){
isObjectUpdated = true; break;
}
if(m_altitude_isSet){
isObjectUpdated = true; break;
}
}while(false);
return isObjectUpdated;
}

View File

@ -44,6 +44,15 @@ public:
qint32 getStatus();
void setStatus(qint32 status);
float getLatitude();
void setLatitude(float latitude);
float getLongitude();
void setLongitude(float longitude);
float getAltitude();
void setAltitude(float altitude);
virtual bool isSet() override;
@ -51,6 +60,15 @@ private:
qint32 status;
bool m_status_isSet;
float latitude;
bool m_latitude_isSet;
float longitude;
bool m_longitude_isSet;
float altitude;
bool m_altitude_isSet;
};
}