mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 10:12:46 +00:00
[2/3] update openapi spec: generate code
This updates the openapi spec and invokes the code generator to update to the Jellyfin 10.10.6 API. A big motivation to do this was because some mandatory fields have been made obsolete and are no longer included in responses. Sailfin tries to deserialize these mandatory fields and fails deserializing. It was evident in the list of sessions to control. The failing was a bit too gracefully in my opinion, it did not even show that an error occurred, nor was it logged anywhere. It took some time to debug.
This commit is contained in:
parent
f71c7a991b
commit
9e1a20cd3a
504 changed files with 62190 additions and 41202 deletions
|
@ -36,7 +36,8 @@
|
|||
#include "JellyfinQt/support/loader.h"
|
||||
#include "JellyfinQt/loader/requesttypes.h"
|
||||
#include "JellyfinQt/dto/baseitemdtoqueryresult.h"
|
||||
#include "JellyfinQt/dto/baseitemdtoqueryresult.h"
|
||||
#include "JellyfinQt/dto/useritemdatadto.h"
|
||||
#include "JellyfinQt/dto/useritemdatadto.h"
|
||||
#include "JellyfinQt/dto/baseitemdtoqueryresult.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
|
@ -64,17 +65,31 @@ protected:
|
|||
QNetworkAccessManager::Operation operation() const override;
|
||||
};
|
||||
/**
|
||||
* @brief Gets items based on a query.
|
||||
* @brief Get Item User Data.
|
||||
*/
|
||||
|
||||
class GetItemsByUserIdLoader : public Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetItemsByUserIdParams> {
|
||||
class GetItemUserDataLoader : public Jellyfin::Support::HttpLoader<UserItemDataDto, GetItemUserDataParams> {
|
||||
public:
|
||||
explicit GetItemsByUserIdLoader(ApiClient *apiClient = nullptr);
|
||||
explicit GetItemUserDataLoader(ApiClient *apiClient = nullptr);
|
||||
|
||||
protected:
|
||||
QString path(const GetItemsByUserIdParams& parameters) const override;
|
||||
QUrlQuery query(const GetItemsByUserIdParams& parameters) const override;
|
||||
QByteArray body(const GetItemsByUserIdParams& parameters) const override;
|
||||
QString path(const GetItemUserDataParams& parameters) const override;
|
||||
QUrlQuery query(const GetItemUserDataParams& parameters) const override;
|
||||
QByteArray body(const GetItemUserDataParams& parameters) const override;
|
||||
QNetworkAccessManager::Operation operation() const override;
|
||||
};
|
||||
/**
|
||||
* @brief Update Item User Data.
|
||||
*/
|
||||
|
||||
class UpdateItemUserDataLoader : public Jellyfin::Support::HttpLoader<UserItemDataDto, UpdateItemUserDataParams> {
|
||||
public:
|
||||
explicit UpdateItemUserDataLoader(ApiClient *apiClient = nullptr);
|
||||
|
||||
protected:
|
||||
QString path(const UpdateItemUserDataParams& parameters) const override;
|
||||
QUrlQuery query(const UpdateItemUserDataParams& parameters) const override;
|
||||
QByteArray body(const UpdateItemUserDataParams& parameters) const override;
|
||||
QNetworkAccessManager::Operation operation() const override;
|
||||
};
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue