mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 10:12:46 +00:00
openapigen: support for 204 No Content endpoints
This commit is contained in:
parent
b257fe60aa
commit
77cb5d5957
66 changed files with 6169 additions and 84 deletions
|
@ -63,6 +63,20 @@ protected:
|
|||
QByteArray body(const GetDevicesParams& parameters) const override;
|
||||
QNetworkAccessManager::Operation operation() const override;
|
||||
};
|
||||
/**
|
||||
* @brief Deletes a device.
|
||||
*/
|
||||
|
||||
class DeleteDeviceLoader : public Jellyfin::Support::HttpLoader<void, DeleteDeviceParams> {
|
||||
public:
|
||||
explicit DeleteDeviceLoader(ApiClient *apiClient = nullptr);
|
||||
|
||||
protected:
|
||||
QString path(const DeleteDeviceParams& parameters) const override;
|
||||
QUrlQuery query(const DeleteDeviceParams& parameters) const override;
|
||||
QByteArray body(const DeleteDeviceParams& parameters) const override;
|
||||
QNetworkAccessManager::Operation operation() const override;
|
||||
};
|
||||
/**
|
||||
* @brief Get info for a device.
|
||||
*/
|
||||
|
@ -91,6 +105,20 @@ protected:
|
|||
QByteArray body(const GetDeviceOptionsParams& parameters) const override;
|
||||
QNetworkAccessManager::Operation operation() const override;
|
||||
};
|
||||
/**
|
||||
* @brief Update device options.
|
||||
*/
|
||||
|
||||
class UpdateDeviceOptionsLoader : public Jellyfin::Support::HttpLoader<void, UpdateDeviceOptionsParams> {
|
||||
public:
|
||||
explicit UpdateDeviceOptionsLoader(ApiClient *apiClient = nullptr);
|
||||
|
||||
protected:
|
||||
QString path(const UpdateDeviceOptionsParams& parameters) const override;
|
||||
QUrlQuery query(const UpdateDeviceOptionsParams& parameters) const override;
|
||||
QByteArray body(const UpdateDeviceOptionsParams& parameters) const override;
|
||||
QNetworkAccessManager::Operation operation() const override;
|
||||
};
|
||||
|
||||
} // NS HTTP
|
||||
} // NS Loader
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue