1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-12-25 07:15:17 +00:00

Refractor ApiClient and add support for body params

ApiClient was refractored to use PIMPL. This is mainly done to reduce
compile times whenever the implementation of ApiClient itself changes,
since a lot of files include it.

The loaders have gained support for body parameters, this was somehow
omitted before.
This commit is contained in:
Chris Josten 2021-09-03 03:47:25 +02:00
parent 1453cbbc63
commit 96ecd8e7d8
116 changed files with 4437 additions and 106 deletions

View file

@ -18,6 +18,8 @@ public:
protected:
QString path(const {{e.endpoint.parameterType}}& parameters) const override;
QUrlQuery query(const {{e.endpoint.parameterType}}& parameters) const override;
QByteArray body(const {{e.endpoint.parameterType}}& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
{{/if}}
{{/each}}

View file

@ -35,5 +35,23 @@ QUrlQuery {{e.className}}Loader::query(const {{e.endpoint.parameterType}} &param
return result;
}
QByteArray {{e.className}}Loader::body(const {{e.endpoint.parameterType}} &params) const {
{{#if e.endpoint.bodyParameters.length == 1}}
return Support::toString<{{e.endpoint.bodyParameters[0].type.typeNameWithQualifiers}}>(params.body()).toUtf8();
{{else}}
return QByteArray();
{{/if}}
}
QNetworkAccessManager::Operation {{e.className}}Loader::operation() const {
// HTTP method {{e.operation}}
return QNetworkAccessManager::{{e.operation}}Operation;
}
{{/if}}
{{/each}}

View file

@ -51,6 +51,18 @@ private:
{{/each}}
{{#if e.bodyParameters.length > 0}}
// Body parameters
{{#if e.bodyParameters.length == 1}}
{{e.bodyParameters[0].type.typeNameWithQualifiers}} m_body;
{{else}}
//FIXME: Multiple body options not implemented.
{{/if}}
{{/if}}
};

View file

@ -29,6 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include <QHostInfo>
#include <QObject>
#include <QQmlListProperty>
#include <QScopedPointer>
#include <QString>
#include <QSysInfo>
#include <QtQml>
@ -46,6 +47,10 @@ namespace Jellyfin {
class PlaybackManager;
class WebSocket;
namespace ViewModel {
class Settings;
}
namespace DTO {
class UserItemDataDto; // Keep it as an opaque pointer
using UserData = UserItemDataDto;
@ -53,6 +58,8 @@ namespace DTO {
using namespace DTO;
class ApiClientPrivate;
/**
* @brief An Api client for Jellyfin. Handles requests and authentication.
*
@ -82,16 +89,19 @@ class ApiClient : public QObject {
friend class WebSocket;
friend class PlaybackManager;
Q_OBJECT
Q_DECLARE_PRIVATE(ApiClient);
public:
explicit ApiClient(QObject *parent = nullptr);
Q_PROPERTY(QString baseUrl MEMBER m_baseUrl READ baseUrl NOTIFY baseUrlChanged)
virtual ~ApiClient();
Q_PROPERTY(QString baseUrl READ baseUrl WRITE setBaseUrl NOTIFY baseUrlChanged)
Q_PROPERTY(bool authenticated READ authenticated WRITE setAuthenticated NOTIFY authenticatedChanged)
Q_PROPERTY(QString userId READ userId NOTIFY userIdChanged)
Q_PROPERTY(QJsonObject deviceProfile READ deviceProfile NOTIFY deviceProfileChanged)
Q_PROPERTY(QString version READ version)
Q_PROPERTY(EventBus *eventbus READ eventbus FINAL)
Q_PROPERTY(WebSocket *websocket READ websocket FINAL)
Q_PROPERTY(Jellyfin::WebSocket *websocket READ websocket FINAL)
Q_PROPERTY(QVariantList supportedCommands READ supportedCommands WRITE setSupportedCommands NOTIFY supportedCommandsChanged)
Q_PROPERTY(Jellyfin::ViewModel::Settings *settings READ settings NOTIFY settingsChanged)
/**
* Wether this ApiClient operates in "online mode".
*
@ -100,20 +110,11 @@ public:
*/
Q_PROPERTY(bool online READ online NOTIFY onlineChanged)
/*QNetworkReply *handleRequest(QString path, QStringList sort, Pagination *pagination,
QVariantMap filters, QStringList fields, QStringList expand, QString id);*/
bool authenticated() const { return m_authenticated; }
void setBaseUrl(QString url) {
this->m_baseUrl = url;
if (this->m_baseUrl.endsWith("/")) {
this->m_baseUrl.chop(1);
}
emit this->baseUrlChanged(m_baseUrl);
}
bool authenticated() const;
void setBaseUrl(const QString &url);
QNetworkReply *get(const QString &path, const QUrlQuery &params = QUrlQuery());
QNetworkReply *post(const QString &path, const QJsonDocument &data = QJsonDocument(), const QUrlQuery &params = QUrlQuery());
QNetworkReply *post(const QString &path, const QJsonDocument &data, const QUrlQuery &params = QUrlQuery());
QNetworkReply *post(const QString &path, const QByteArray &data = QByteArray(), const QUrlQuery &params = QUrlQuery());
enum ApiError {
JSON_ERROR,
@ -123,9 +124,9 @@ public:
};
Q_ENUM(ApiError)
const QString &baseUrl() const { return this->m_baseUrl; }
const QString userId() const { return m_userId; }
const QString &deviceId() const { return m_deviceId; }
const QString &baseUrl() const;
const QString &userId() const;
const QString &deviceId() const;
/**
* @brief QML applications can set this type to indicate which commands they support.
*
@ -136,19 +137,21 @@ public:
* The list support commands will be sent to the Jellyfin server. QML applications should listen to
* the events emitted by the eventBus and act accordingly.
*/
QVariantList supportedCommands() const { return m_supportedCommands; }
void setSupportedCommands(QVariantList newSupportedCommands) { m_supportedCommands = newSupportedCommands; emit supportedCommandsChanged(); }
QJsonObject &deviceProfile() { return m_deviceProfile; }
QJsonObject &playbackDeviceProfile() { return m_playbackDeviceProfile; }
QVariantList supportedCommands() const ;
void setSupportedCommands(QVariantList newSupportedCommands);
const QJsonObject &deviceProfile() const;
const QJsonObject &playbackDeviceProfile() const;
/**
* @brief Retrieves the authentication token. Null QString if not authenticated.
* @note This is not the full authentication header, just the token.
*/
QString &token() { return m_token; }
const QString &token() const;
QString version() const;
EventBus *eventbus() const { return m_eventbus; }
WebSocket *websocket() const { return m_webSocket; }
bool online() const { return m_online; }
bool online() const;
EventBus *eventbus() const;
WebSocket *websocket() const;
ViewModel::Settings * settings() const;
/**
* @brief Sets the error handler of a reply to this classes default error handler
@ -179,6 +182,7 @@ signals:
void authenticatedChanged(bool authenticated);
void baseUrlChanged(const QString &baseUrl);
void settingsChanged();
/**
* @brief Set-up is required. You'll need to manually set up the baseUrl-property, call setupConnection
@ -241,13 +245,13 @@ protected:
* @param request The request to add headers to
* @param path The path to which the request is being made
*/
void addBaseRequestHeaders(QNetworkRequest &request, const QString &path, const QUrlQuery &params = QUrlQuery());
void addBaseRequestHeaders(QNetworkRequest &request, const QString &path, const QUrlQuery &params = QUrlQuery()) const;
/**
* @brief Adds the authorization to the header
* @param The request to add the header to
*/
void addTokenHeader(QNetworkRequest &request);
void addTokenHeader(QNetworkRequest &request) const;
/**
* @brief getBrandingConfiguration Gets the login message and custom CSS (which we ignore)
@ -265,47 +269,16 @@ protected:
private:
QScopedPointer<ApiClientPrivate> d_ptr;
QNetworkAccessManager m_naManager;
/*
* State information
*/
WebSocket *m_webSocket;
EventBus *m_eventbus;
CredentialsManager * m_credManager;
QString m_token;
QString m_deviceName;
QString m_deviceId;
QString m_userId;
QJsonObject m_deviceProfile;
QJsonObject m_playbackDeviceProfile;
bool m_online = true;
QVariantList m_supportedCommands;
bool m_authenticated = false;
/**
* @brief The base url of the request.
*/
QString m_baseUrl;
/*
* Setters
*/
void setAuthenticated(bool authenticated);
void setUserId(QString userId) {
this->m_userId = userId;
emit userIdChanged(userId);
}
/*
* Utilities
*/
/**
* @brief Retreives the device ID or generates a random one.
*/
QUuid retrieveDeviceId();
void setUserId(const QString &userId);
/**
* @brief Returns the statusCode of a QNetworkReply

View file

@ -40,6 +40,7 @@
#include "viewmodel/platformmediacontrol.h"
#include "viewmodel/playbackmanager.h"
#include "viewmodel/playlist.h"
#include "viewmodel/settings.h"
#include "viewmodel/userdata.h"
#include "viewmodel/usermodel.h"
#include "viewmodel/user.h"

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetLogEntriesParams& parameters) const override;
QUrlQuery query(const GetLogEntriesParams& parameters) const override;
QByteArray body(const GetLogEntriesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetKeysParams& parameters) const override;
QUrlQuery query(const GetKeysParams& parameters) const override;
QByteArray body(const GetKeysParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -60,6 +60,8 @@ public:
protected:
QString path(const GetArtistsParams& parameters) const override;
QUrlQuery query(const GetArtistsParams& parameters) const override;
QByteArray body(const GetArtistsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets an artist by name.
@ -72,6 +74,8 @@ public:
protected:
QString path(const GetArtistByNameParams& parameters) const override;
QUrlQuery query(const GetArtistByNameParams& parameters) const override;
QByteArray body(const GetArtistByNameParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets all album artists from a given item, folder, or the entire library.
@ -84,6 +88,8 @@ public:
protected:
QString path(const GetAlbumArtistsParams& parameters) const override;
QUrlQuery query(const GetAlbumArtistsParams& parameters) const override;
QByteArray body(const GetAlbumArtistsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetBrandingOptionsParams& parameters) const override;
QUrlQuery query(const GetBrandingOptionsParams& parameters) const override;
QByteArray body(const GetBrandingOptionsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets branding css.
@ -70,6 +72,8 @@ public:
protected:
QString path(const GetBrandingCssParams& parameters) const override;
QUrlQuery query(const GetBrandingCssParams& parameters) const override;
QByteArray body(const GetBrandingCssParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets branding css.
@ -82,6 +86,8 @@ public:
protected:
QString path(const GetBrandingCss_2Params& parameters) const override;
QUrlQuery query(const GetBrandingCss_2Params& parameters) const override;
QByteArray body(const GetBrandingCss_2Params& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -62,6 +62,8 @@ public:
protected:
QString path(const GetChannelsParams& parameters) const override;
QUrlQuery query(const GetChannelsParams& parameters) const override;
QByteArray body(const GetChannelsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get channel features.
@ -74,6 +76,8 @@ public:
protected:
QString path(const GetChannelFeaturesParams& parameters) const override;
QUrlQuery query(const GetChannelFeaturesParams& parameters) const override;
QByteArray body(const GetChannelFeaturesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get channel items.
@ -86,6 +90,8 @@ public:
protected:
QString path(const GetChannelItemsParams& parameters) const override;
QUrlQuery query(const GetChannelItemsParams& parameters) const override;
QByteArray body(const GetChannelItemsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get all channel features.
@ -98,6 +104,8 @@ public:
protected:
QString path(const GetAllChannelFeaturesParams& parameters) const override;
QUrlQuery query(const GetAllChannelFeaturesParams& parameters) const override;
QByteArray body(const GetAllChannelFeaturesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets latest channel items.
@ -110,6 +118,8 @@ public:
protected:
QString path(const GetLatestChannelItemsParams& parameters) const override;
QUrlQuery query(const GetLatestChannelItemsParams& parameters) const override;
QByteArray body(const GetLatestChannelItemsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const CreateCollectionParams& parameters) const override;
QUrlQuery query(const CreateCollectionParams& parameters) const override;
QByteArray body(const CreateCollectionParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const GetConfigurationParams& parameters) const override;
QUrlQuery query(const GetConfigurationParams& parameters) const override;
QByteArray body(const GetConfigurationParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a named configuration.
@ -71,6 +73,8 @@ public:
protected:
QString path(const GetNamedConfigurationParams& parameters) const override;
QUrlQuery query(const GetNamedConfigurationParams& parameters) const override;
QByteArray body(const GetNamedConfigurationParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a default MetadataOptions object.
@ -83,6 +87,8 @@ public:
protected:
QString path(const GetDefaultMetadataOptionsParams& parameters) const override;
QUrlQuery query(const GetDefaultMetadataOptionsParams& parameters) const override;
QByteArray body(const GetDefaultMetadataOptionsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetConfigurationPagesParams& parameters) const override;
QUrlQuery query(const GetConfigurationPagesParams& parameters) const override;
QByteArray body(const GetConfigurationPagesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -60,6 +60,8 @@ public:
protected:
QString path(const GetDevicesParams& parameters) const override;
QUrlQuery query(const GetDevicesParams& parameters) const override;
QByteArray body(const GetDevicesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get info for a device.
@ -72,6 +74,8 @@ public:
protected:
QString path(const GetDeviceInfoParams& parameters) const override;
QUrlQuery query(const GetDeviceInfoParams& parameters) const override;
QByteArray body(const GetDeviceInfoParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get options for a device.
@ -84,6 +88,8 @@ public:
protected:
QString path(const GetDeviceOptionsParams& parameters) const override;
QUrlQuery query(const GetDeviceOptionsParams& parameters) const override;
QByteArray body(const GetDeviceOptionsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetDisplayPreferencesParams& parameters) const override;
QUrlQuery query(const GetDisplayPreferencesParams& parameters) const override;
QByteArray body(const GetDisplayPreferencesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -60,6 +60,8 @@ public:
protected:
QString path(const GetProfileInfosParams& parameters) const override;
QUrlQuery query(const GetProfileInfosParams& parameters) const override;
QByteArray body(const GetProfileInfosParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a single profile.
@ -72,6 +74,8 @@ public:
protected:
QString path(const GetProfileParams& parameters) const override;
QUrlQuery query(const GetProfileParams& parameters) const override;
QByteArray body(const GetProfileParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets the default profile.
@ -84,6 +88,8 @@ public:
protected:
QString path(const GetDefaultProfileParams& parameters) const override;
QUrlQuery query(const GetDefaultProfileParams& parameters) const override;
QByteArray body(const GetDefaultProfileParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -61,6 +61,8 @@ public:
protected:
QString path(const GetDefaultDirectoryBrowserParams& parameters) const override;
QUrlQuery query(const GetDefaultDirectoryBrowserParams& parameters) const override;
QByteArray body(const GetDefaultDirectoryBrowserParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets the contents of a given directory in the file system.
@ -73,6 +75,8 @@ public:
protected:
QString path(const GetDirectoryContentsParams& parameters) const override;
QUrlQuery query(const GetDirectoryContentsParams& parameters) const override;
QByteArray body(const GetDirectoryContentsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets available drives from the server's file system.
@ -85,6 +89,8 @@ public:
protected:
QString path(const GetDrivesParams& parameters) const override;
QUrlQuery query(const GetDrivesParams& parameters) const override;
QByteArray body(const GetDrivesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets network paths.
@ -97,6 +103,8 @@ public:
protected:
QString path(const GetNetworkSharesParams& parameters) const override;
QUrlQuery query(const GetNetworkSharesParams& parameters) const override;
QByteArray body(const GetNetworkSharesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets the parent path of a given path.
@ -109,6 +117,8 @@ public:
protected:
QString path(const GetParentPathParams& parameters) const override;
QUrlQuery query(const GetParentPathParams& parameters) const override;
QByteArray body(const GetParentPathParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const GetQueryFiltersLegacyParams& parameters) const override;
QUrlQuery query(const GetQueryFiltersLegacyParams& parameters) const override;
QByteArray body(const GetQueryFiltersLegacyParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets query filters.
@ -71,6 +73,8 @@ public:
protected:
QString path(const GetQueryFiltersParams& parameters) const override;
QUrlQuery query(const GetQueryFiltersParams& parameters) const override;
QByteArray body(const GetQueryFiltersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const GetGenresParams& parameters) const override;
QUrlQuery query(const GetGenresParams& parameters) const override;
QByteArray body(const GetGenresParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a genre, by name.
@ -71,6 +73,8 @@ public:
protected:
QString path(const GetGenreParams& parameters) const override;
QUrlQuery query(const GetGenreParams& parameters) const override;
QByteArray body(const GetGenreParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetItemImageInfosParams& parameters) const override;
QUrlQuery query(const GetItemImageInfosParams& parameters) const override;
QByteArray body(const GetItemImageInfosParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -60,6 +60,8 @@ public:
protected:
QString path(const GetGeneralImagesParams& parameters) const override;
QUrlQuery query(const GetGeneralImagesParams& parameters) const override;
QByteArray body(const GetGeneralImagesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get all media info images.
@ -72,6 +74,8 @@ public:
protected:
QString path(const GetMediaInfoImagesParams& parameters) const override;
QUrlQuery query(const GetMediaInfoImagesParams& parameters) const override;
QByteArray body(const GetMediaInfoImagesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get all general images.
@ -84,6 +88,8 @@ public:
protected:
QString path(const GetRatingImagesParams& parameters) const override;
QUrlQuery query(const GetRatingImagesParams& parameters) const override;
QByteArray body(const GetRatingImagesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -64,6 +64,8 @@ public:
protected:
QString path(const GetInstantMixFromAlbumParams& parameters) const override;
QUrlQuery query(const GetInstantMixFromAlbumParams& parameters) const override;
QByteArray body(const GetInstantMixFromAlbumParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Creates an instant playlist based on a given song.
@ -76,6 +78,8 @@ public:
protected:
QString path(const GetInstantMixFromArtistsParams& parameters) const override;
QUrlQuery query(const GetInstantMixFromArtistsParams& parameters) const override;
QByteArray body(const GetInstantMixFromArtistsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Creates an instant playlist based on a given song.
@ -88,6 +92,8 @@ public:
protected:
QString path(const GetInstantMixFromItemParams& parameters) const override;
QUrlQuery query(const GetInstantMixFromItemParams& parameters) const override;
QByteArray body(const GetInstantMixFromItemParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Creates an instant playlist based on a given song.
@ -100,6 +106,8 @@ public:
protected:
QString path(const GetInstantMixFromMusicGenresParams& parameters) const override;
QUrlQuery query(const GetInstantMixFromMusicGenresParams& parameters) const override;
QByteArray body(const GetInstantMixFromMusicGenresParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Creates an instant playlist based on a given song.
@ -112,6 +120,8 @@ public:
protected:
QString path(const GetInstantMixFromMusicGenreParams& parameters) const override;
QUrlQuery query(const GetInstantMixFromMusicGenreParams& parameters) const override;
QByteArray body(const GetInstantMixFromMusicGenreParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Creates an instant playlist based on a given song.
@ -124,6 +134,8 @@ public:
protected:
QString path(const GetInstantMixFromPlaylistParams& parameters) const override;
QUrlQuery query(const GetInstantMixFromPlaylistParams& parameters) const override;
QByteArray body(const GetInstantMixFromPlaylistParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Creates an instant playlist based on a given song.
@ -136,6 +148,8 @@ public:
protected:
QString path(const GetInstantMixFromSongParams& parameters) const override;
QUrlQuery query(const GetInstantMixFromSongParams& parameters) const override;
QByteArray body(const GetInstantMixFromSongParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -67,6 +67,8 @@ public:
protected:
QString path(const GetExternalIdInfosParams& parameters) const override;
QUrlQuery query(const GetExternalIdInfosParams& parameters) const override;
QByteArray body(const GetExternalIdInfosParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get book remote search.
@ -79,6 +81,8 @@ public:
protected:
QString path(const GetBookRemoteSearchResultsParams& parameters) const override;
QUrlQuery query(const GetBookRemoteSearchResultsParams& parameters) const override;
QByteArray body(const GetBookRemoteSearchResultsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get box set remote search.
@ -91,6 +95,8 @@ public:
protected:
QString path(const GetBoxSetRemoteSearchResultsParams& parameters) const override;
QUrlQuery query(const GetBoxSetRemoteSearchResultsParams& parameters) const override;
QByteArray body(const GetBoxSetRemoteSearchResultsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get movie remote search.
@ -103,6 +109,8 @@ public:
protected:
QString path(const GetMovieRemoteSearchResultsParams& parameters) const override;
QUrlQuery query(const GetMovieRemoteSearchResultsParams& parameters) const override;
QByteArray body(const GetMovieRemoteSearchResultsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get music album remote search.
@ -115,6 +123,8 @@ public:
protected:
QString path(const GetMusicAlbumRemoteSearchResultsParams& parameters) const override;
QUrlQuery query(const GetMusicAlbumRemoteSearchResultsParams& parameters) const override;
QByteArray body(const GetMusicAlbumRemoteSearchResultsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get music artist remote search.
@ -127,6 +137,8 @@ public:
protected:
QString path(const GetMusicArtistRemoteSearchResultsParams& parameters) const override;
QUrlQuery query(const GetMusicArtistRemoteSearchResultsParams& parameters) const override;
QByteArray body(const GetMusicArtistRemoteSearchResultsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get music video remote search.
@ -139,6 +151,8 @@ public:
protected:
QString path(const GetMusicVideoRemoteSearchResultsParams& parameters) const override;
QUrlQuery query(const GetMusicVideoRemoteSearchResultsParams& parameters) const override;
QByteArray body(const GetMusicVideoRemoteSearchResultsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get person remote search.
@ -151,6 +165,8 @@ public:
protected:
QString path(const GetPersonRemoteSearchResultsParams& parameters) const override;
QUrlQuery query(const GetPersonRemoteSearchResultsParams& parameters) const override;
QByteArray body(const GetPersonRemoteSearchResultsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get series remote search.
@ -163,6 +179,8 @@ public:
protected:
QString path(const GetSeriesRemoteSearchResultsParams& parameters) const override;
QUrlQuery query(const GetSeriesRemoteSearchResultsParams& parameters) const override;
QByteArray body(const GetSeriesRemoteSearchResultsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get trailer remote search.
@ -175,6 +193,8 @@ public:
protected:
QString path(const GetTrailerRemoteSearchResultsParams& parameters) const override;
QUrlQuery query(const GetTrailerRemoteSearchResultsParams& parameters) const override;
QByteArray body(const GetTrailerRemoteSearchResultsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -60,6 +60,8 @@ public:
protected:
QString path(const GetItemsParams& parameters) const override;
QUrlQuery query(const GetItemsParams& parameters) const override;
QByteArray body(const GetItemsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets items based on a query.
@ -72,6 +74,8 @@ public:
protected:
QString path(const GetItemsByUserIdParams& parameters) const override;
QUrlQuery query(const GetItemsByUserIdParams& parameters) const override;
QByteArray body(const GetItemsByUserIdParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets items based on a query.
@ -84,6 +88,8 @@ public:
protected:
QString path(const GetResumeItemsParams& parameters) const override;
QUrlQuery query(const GetResumeItemsParams& parameters) const override;
QByteArray body(const GetResumeItemsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetMetadataEditorInfoParams& parameters) const override;
QUrlQuery query(const GetMetadataEditorInfoParams& parameters) const override;
QByteArray body(const GetMetadataEditorInfoParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -72,6 +72,8 @@ public:
protected:
QString path(const GetSimilarAlbumsParams& parameters) const override;
QUrlQuery query(const GetSimilarAlbumsParams& parameters) const override;
QByteArray body(const GetSimilarAlbumsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets similar items.
@ -84,6 +86,8 @@ public:
protected:
QString path(const GetSimilarArtistsParams& parameters) const override;
QUrlQuery query(const GetSimilarArtistsParams& parameters) const override;
QByteArray body(const GetSimilarArtistsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets all parents of an item.
@ -96,6 +100,8 @@ public:
protected:
QString path(const GetAncestorsParams& parameters) const override;
QUrlQuery query(const GetAncestorsParams& parameters) const override;
QByteArray body(const GetAncestorsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets critic review for an item.
@ -108,6 +114,8 @@ public:
protected:
QString path(const GetCriticReviewsParams& parameters) const override;
QUrlQuery query(const GetCriticReviewsParams& parameters) const override;
QByteArray body(const GetCriticReviewsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets similar items.
@ -120,6 +128,8 @@ public:
protected:
QString path(const GetSimilarItemsParams& parameters) const override;
QUrlQuery query(const GetSimilarItemsParams& parameters) const override;
QByteArray body(const GetSimilarItemsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get theme songs and videos for an item.
@ -132,6 +142,8 @@ public:
protected:
QString path(const GetThemeMediaParams& parameters) const override;
QUrlQuery query(const GetThemeMediaParams& parameters) const override;
QByteArray body(const GetThemeMediaParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get theme songs for an item.
@ -144,6 +156,8 @@ public:
protected:
QString path(const GetThemeSongsParams& parameters) const override;
QUrlQuery query(const GetThemeSongsParams& parameters) const override;
QByteArray body(const GetThemeSongsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get theme videos for an item.
@ -156,6 +170,8 @@ public:
protected:
QString path(const GetThemeVideosParams& parameters) const override;
QUrlQuery query(const GetThemeVideosParams& parameters) const override;
QByteArray body(const GetThemeVideosParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get item counts.
@ -168,6 +184,8 @@ public:
protected:
QString path(const GetItemCountsParams& parameters) const override;
QUrlQuery query(const GetItemCountsParams& parameters) const override;
QByteArray body(const GetItemCountsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets the library options info.
@ -180,6 +198,8 @@ public:
protected:
QString path(const GetLibraryOptionsInfoParams& parameters) const override;
QUrlQuery query(const GetLibraryOptionsInfoParams& parameters) const override;
QByteArray body(const GetLibraryOptionsInfoParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets all user media folders.
@ -192,6 +212,8 @@ public:
protected:
QString path(const GetMediaFoldersParams& parameters) const override;
QUrlQuery query(const GetMediaFoldersParams& parameters) const override;
QByteArray body(const GetMediaFoldersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a list of physical paths from virtual folders.
@ -204,6 +226,8 @@ public:
protected:
QString path(const GetPhysicalPathsParams& parameters) const override;
QUrlQuery query(const GetPhysicalPathsParams& parameters) const override;
QByteArray body(const GetPhysicalPathsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets similar items.
@ -216,6 +240,8 @@ public:
protected:
QString path(const GetSimilarMoviesParams& parameters) const override;
QUrlQuery query(const GetSimilarMoviesParams& parameters) const override;
QByteArray body(const GetSimilarMoviesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets similar items.
@ -228,6 +254,8 @@ public:
protected:
QString path(const GetSimilarShowsParams& parameters) const override;
QUrlQuery query(const GetSimilarShowsParams& parameters) const override;
QByteArray body(const GetSimilarShowsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets similar items.
@ -240,6 +268,8 @@ public:
protected:
QString path(const GetSimilarTrailersParams& parameters) const override;
QUrlQuery query(const GetSimilarTrailersParams& parameters) const override;
QByteArray body(const GetSimilarTrailersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetVirtualFoldersParams& parameters) const override;
QUrlQuery query(const GetVirtualFoldersParams& parameters) const override;
QByteArray body(const GetVirtualFoldersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -84,6 +84,8 @@ public:
protected:
QString path(const GetChannelMappingOptionsParams& parameters) const override;
QUrlQuery query(const GetChannelMappingOptionsParams& parameters) const override;
QByteArray body(const GetChannelMappingOptionsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Set channel mappings.
@ -96,6 +98,8 @@ public:
protected:
QString path(const SetChannelMappingParams& parameters) const override;
QUrlQuery query(const SetChannelMappingParams& parameters) const override;
QByteArray body(const SetChannelMappingParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets available live tv channels.
@ -108,6 +112,8 @@ public:
protected:
QString path(const GetLiveTvChannelsParams& parameters) const override;
QUrlQuery query(const GetLiveTvChannelsParams& parameters) const override;
QByteArray body(const GetLiveTvChannelsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a live tv channel.
@ -120,6 +126,8 @@ public:
protected:
QString path(const GetChannelParams& parameters) const override;
QUrlQuery query(const GetChannelParams& parameters) const override;
QByteArray body(const GetChannelParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get guid info.
@ -132,6 +140,8 @@ public:
protected:
QString path(const GetGuideInfoParams& parameters) const override;
QUrlQuery query(const GetGuideInfoParams& parameters) const override;
QByteArray body(const GetGuideInfoParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets available live tv services.
@ -144,6 +154,8 @@ public:
protected:
QString path(const GetLiveTvInfoParams& parameters) const override;
QUrlQuery query(const GetLiveTvInfoParams& parameters) const override;
QByteArray body(const GetLiveTvInfoParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Adds a listings provider.
@ -156,6 +168,8 @@ public:
protected:
QString path(const AddListingProviderParams& parameters) const override;
QUrlQuery query(const AddListingProviderParams& parameters) const override;
QByteArray body(const AddListingProviderParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets default listings provider info.
@ -168,6 +182,8 @@ public:
protected:
QString path(const GetDefaultListingProviderParams& parameters) const override;
QUrlQuery query(const GetDefaultListingProviderParams& parameters) const override;
QByteArray body(const GetDefaultListingProviderParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets available lineups.
@ -180,6 +196,8 @@ public:
protected:
QString path(const GetLineupsParams& parameters) const override;
QUrlQuery query(const GetLineupsParams& parameters) const override;
QByteArray body(const GetLineupsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets available countries.
@ -192,6 +210,8 @@ public:
protected:
QString path(const GetSchedulesDirectCountriesParams& parameters) const override;
QUrlQuery query(const GetSchedulesDirectCountriesParams& parameters) const override;
QByteArray body(const GetSchedulesDirectCountriesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets available live tv epgs.
@ -204,6 +224,8 @@ public:
protected:
QString path(const GetLiveTvProgramsParams& parameters) const override;
QUrlQuery query(const GetLiveTvProgramsParams& parameters) const override;
QByteArray body(const GetLiveTvProgramsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets available live tv epgs.
@ -216,6 +238,8 @@ public:
protected:
QString path(const GetProgramsParams& parameters) const override;
QUrlQuery query(const GetProgramsParams& parameters) const override;
QByteArray body(const GetProgramsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a live tv program.
@ -228,6 +252,8 @@ public:
protected:
QString path(const GetProgramParams& parameters) const override;
QUrlQuery query(const GetProgramParams& parameters) const override;
QByteArray body(const GetProgramParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets recommended live tv epgs.
@ -240,6 +266,8 @@ public:
protected:
QString path(const GetRecommendedProgramsParams& parameters) const override;
QUrlQuery query(const GetRecommendedProgramsParams& parameters) const override;
QByteArray body(const GetRecommendedProgramsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets live tv recordings.
@ -252,6 +280,8 @@ public:
protected:
QString path(const GetRecordingsParams& parameters) const override;
QUrlQuery query(const GetRecordingsParams& parameters) const override;
QByteArray body(const GetRecordingsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a live tv recording.
@ -264,6 +294,8 @@ public:
protected:
QString path(const GetRecordingParams& parameters) const override;
QUrlQuery query(const GetRecordingParams& parameters) const override;
QByteArray body(const GetRecordingParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets recording folders.
@ -276,6 +308,8 @@ public:
protected:
QString path(const GetRecordingFoldersParams& parameters) const override;
QUrlQuery query(const GetRecordingFoldersParams& parameters) const override;
QByteArray body(const GetRecordingFoldersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets live tv recording groups.
@ -288,6 +322,8 @@ public:
protected:
QString path(const GetRecordingGroupsParams& parameters) const override;
QUrlQuery query(const GetRecordingGroupsParams& parameters) const override;
QByteArray body(const GetRecordingGroupsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets live tv recording series.
@ -300,6 +336,8 @@ public:
protected:
QString path(const GetRecordingsSeriesParams& parameters) const override;
QUrlQuery query(const GetRecordingsSeriesParams& parameters) const override;
QByteArray body(const GetRecordingsSeriesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets live tv series timers.
@ -312,6 +350,8 @@ public:
protected:
QString path(const GetSeriesTimersParams& parameters) const override;
QUrlQuery query(const GetSeriesTimersParams& parameters) const override;
QByteArray body(const GetSeriesTimersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a live tv series timer.
@ -324,6 +364,8 @@ public:
protected:
QString path(const GetSeriesTimerParams& parameters) const override;
QUrlQuery query(const GetSeriesTimerParams& parameters) const override;
QByteArray body(const GetSeriesTimerParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets the live tv timers.
@ -336,6 +378,8 @@ public:
protected:
QString path(const GetTimersParams& parameters) const override;
QUrlQuery query(const GetTimersParams& parameters) const override;
QByteArray body(const GetTimersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a timer.
@ -348,6 +392,8 @@ public:
protected:
QString path(const GetTimerParams& parameters) const override;
QUrlQuery query(const GetTimerParams& parameters) const override;
QByteArray body(const GetTimerParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets the default values for a new timer.
@ -360,6 +406,8 @@ public:
protected:
QString path(const GetDefaultTimerParams& parameters) const override;
QUrlQuery query(const GetDefaultTimerParams& parameters) const override;
QByteArray body(const GetDefaultTimerParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Adds a tuner host.
@ -372,6 +420,8 @@ public:
protected:
QString path(const AddTunerHostParams& parameters) const override;
QUrlQuery query(const AddTunerHostParams& parameters) const override;
QByteArray body(const AddTunerHostParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get tuner host types.
@ -384,6 +434,8 @@ public:
protected:
QString path(const GetTunerHostTypesParams& parameters) const override;
QUrlQuery query(const GetTunerHostTypesParams& parameters) const override;
QByteArray body(const GetTunerHostTypesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Discover tuners.
@ -396,6 +448,8 @@ public:
protected:
QString path(const DiscoverTunersParams& parameters) const override;
QUrlQuery query(const DiscoverTunersParams& parameters) const override;
QByteArray body(const DiscoverTunersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Discover tuners.
@ -408,6 +462,8 @@ public:
protected:
QString path(const DiscvoverTunersParams& parameters) const override;
QUrlQuery query(const DiscvoverTunersParams& parameters) const override;
QByteArray body(const DiscvoverTunersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -61,6 +61,8 @@ public:
protected:
QString path(const GetCountriesParams& parameters) const override;
QUrlQuery query(const GetCountriesParams& parameters) const override;
QByteArray body(const GetCountriesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets known cultures.
@ -73,6 +75,8 @@ public:
protected:
QString path(const GetCulturesParams& parameters) const override;
QUrlQuery query(const GetCulturesParams& parameters) const override;
QByteArray body(const GetCulturesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets localization options.
@ -85,6 +89,8 @@ public:
protected:
QString path(const GetLocalizationOptionsParams& parameters) const override;
QUrlQuery query(const GetLocalizationOptionsParams& parameters) const override;
QByteArray body(const GetLocalizationOptionsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets known parental ratings.
@ -97,6 +103,8 @@ public:
protected:
QString path(const GetParentalRatingsParams& parameters) const override;
QUrlQuery query(const GetParentalRatingsParams& parameters) const override;
QByteArray body(const GetParentalRatingsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -60,6 +60,8 @@ public:
protected:
QString path(const GetPlaybackInfoParams& parameters) const override;
QUrlQuery query(const GetPlaybackInfoParams& parameters) const override;
QByteArray body(const GetPlaybackInfoParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets live playback media info for an item.
@ -72,6 +74,8 @@ public:
protected:
QString path(const GetPostedPlaybackInfoParams& parameters) const override;
QUrlQuery query(const GetPostedPlaybackInfoParams& parameters) const override;
QByteArray body(const GetPostedPlaybackInfoParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Opens a media source.
@ -84,6 +88,8 @@ public:
protected:
QString path(const OpenLiveStreamParams& parameters) const override;
QUrlQuery query(const OpenLiveStreamParams& parameters) const override;
QByteArray body(const OpenLiveStreamParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetMovieRecommendationsParams& parameters) const override;
QUrlQuery query(const GetMovieRecommendationsParams& parameters) const override;
QByteArray body(const GetMovieRecommendationsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const GetMusicGenresParams& parameters) const override;
QUrlQuery query(const GetMusicGenresParams& parameters) const override;
QByteArray body(const GetMusicGenresParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a music genre, by name.
@ -71,6 +73,8 @@ public:
protected:
QString path(const GetMusicGenreParams& parameters) const override;
QUrlQuery query(const GetMusicGenreParams& parameters) const override;
QByteArray body(const GetMusicGenreParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -61,6 +61,8 @@ public:
protected:
QString path(const GetNotificationsParams& parameters) const override;
QUrlQuery query(const GetNotificationsParams& parameters) const override;
QByteArray body(const GetNotificationsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a user's notification summary.
@ -73,6 +75,8 @@ public:
protected:
QString path(const GetNotificationsSummaryParams& parameters) const override;
QUrlQuery query(const GetNotificationsSummaryParams& parameters) const override;
QByteArray body(const GetNotificationsSummaryParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets notification services.
@ -85,6 +89,8 @@ public:
protected:
QString path(const GetNotificationServicesParams& parameters) const override;
QUrlQuery query(const GetNotificationServicesParams& parameters) const override;
QByteArray body(const GetNotificationServicesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets notification types.
@ -97,6 +103,8 @@ public:
protected:
QString path(const GetNotificationTypesParams& parameters) const override;
QUrlQuery query(const GetNotificationTypesParams& parameters) const override;
QByteArray body(const GetNotificationTypesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -60,6 +60,8 @@ public:
protected:
QString path(const GetPackagesParams& parameters) const override;
QUrlQuery query(const GetPackagesParams& parameters) const override;
QByteArray body(const GetPackagesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a package by name or assembly GUID.
@ -72,6 +74,8 @@ public:
protected:
QString path(const GetPackageInfoParams& parameters) const override;
QUrlQuery query(const GetPackageInfoParams& parameters) const override;
QByteArray body(const GetPackageInfoParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets all package repositories.
@ -84,6 +88,8 @@ public:
protected:
QString path(const GetRepositoriesParams& parameters) const override;
QUrlQuery query(const GetRepositoriesParams& parameters) const override;
QByteArray body(const GetRepositoriesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const GetPersonsParams& parameters) const override;
QUrlQuery query(const GetPersonsParams& parameters) const override;
QByteArray body(const GetPersonsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get person by name.
@ -71,6 +73,8 @@ public:
protected:
QString path(const GetPersonParams& parameters) const override;
QUrlQuery query(const GetPersonParams& parameters) const override;
QByteArray body(const GetPersonParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const CreatePlaylistParams& parameters) const override;
QUrlQuery query(const CreatePlaylistParams& parameters) const override;
QByteArray body(const CreatePlaylistParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets the original items of a playlist.
@ -71,6 +73,8 @@ public:
protected:
QString path(const GetPlaylistItemsParams& parameters) const override;
QUrlQuery query(const GetPlaylistItemsParams& parameters) const override;
QByteArray body(const GetPlaylistItemsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const MarkPlayedItemParams& parameters) const override;
QUrlQuery query(const MarkPlayedItemParams& parameters) const override;
QByteArray body(const MarkPlayedItemParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Marks an item as unplayed for user.
@ -71,6 +73,8 @@ public:
protected:
QString path(const MarkUnplayedItemParams& parameters) const override;
QUrlQuery query(const MarkUnplayedItemParams& parameters) const override;
QByteArray body(const MarkUnplayedItemParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const GetPluginsParams& parameters) const override;
QUrlQuery query(const GetPluginsParams& parameters) const override;
QByteArray body(const GetPluginsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets plugin configuration.
@ -71,6 +73,8 @@ public:
protected:
QString path(const GetPluginConfigurationParams& parameters) const override;
QUrlQuery query(const GetPluginConfigurationParams& parameters) const override;
QByteArray body(const GetPluginConfigurationParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -60,6 +60,8 @@ public:
protected:
QString path(const AuthorizeParams& parameters) const override;
QUrlQuery query(const AuthorizeParams& parameters) const override;
QByteArray body(const AuthorizeParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Attempts to retrieve authentication information.
@ -72,6 +74,8 @@ public:
protected:
QString path(const ConnectParams& parameters) const override;
QUrlQuery query(const ConnectParams& parameters) const override;
QByteArray body(const ConnectParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Deauthorize all quick connect devices for the current user.
@ -84,6 +88,8 @@ public:
protected:
QString path(const DeauthorizeParams& parameters) const override;
QUrlQuery query(const DeauthorizeParams& parameters) const override;
QByteArray body(const DeauthorizeParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Initiate a new quick connect request.
@ -96,6 +102,8 @@ public:
protected:
QString path(const InitiateParams& parameters) const override;
QUrlQuery query(const InitiateParams& parameters) const override;
QByteArray body(const InitiateParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets the current quick connect state.
@ -108,6 +116,8 @@ public:
protected:
QString path(const GetStatusParams& parameters) const override;
QUrlQuery query(const GetStatusParams& parameters) const override;
QByteArray body(const GetStatusParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const GetRemoteImagesParams& parameters) const override;
QUrlQuery query(const GetRemoteImagesParams& parameters) const override;
QByteArray body(const GetRemoteImagesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets available remote image providers for an item.
@ -71,6 +73,8 @@ public:
protected:
QString path(const GetRemoteImageProvidersParams& parameters) const override;
QUrlQuery query(const GetRemoteImageProvidersParams& parameters) const override;
QByteArray body(const GetRemoteImageProvidersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const GetTasksParams& parameters) const override;
QUrlQuery query(const GetTasksParams& parameters) const override;
QByteArray body(const GetTasksParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get task by id.
@ -71,6 +73,8 @@ public:
protected:
QString path(const GetTaskParams& parameters) const override;
QUrlQuery query(const GetTaskParams& parameters) const override;
QByteArray body(const GetTaskParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetParams& parameters) const override;
QUrlQuery query(const GetParams& parameters) const override;
QByteArray body(const GetParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -60,6 +60,8 @@ public:
protected:
QString path(const GetPasswordResetProvidersParams& parameters) const override;
QUrlQuery query(const GetPasswordResetProvidersParams& parameters) const override;
QByteArray body(const GetPasswordResetProvidersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get all auth providers.
@ -72,6 +74,8 @@ public:
protected:
QString path(const GetAuthProvidersParams& parameters) const override;
QUrlQuery query(const GetAuthProvidersParams& parameters) const override;
QByteArray body(const GetAuthProvidersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a list of sessions.
@ -84,6 +88,8 @@ public:
protected:
QString path(const GetSessionsParams& parameters) const override;
QUrlQuery query(const GetSessionsParams& parameters) const override;
QByteArray body(const GetSessionsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -60,6 +60,8 @@ public:
protected:
QString path(const GetStartupConfigurationParams& parameters) const override;
QUrlQuery query(const GetStartupConfigurationParams& parameters) const override;
QByteArray body(const GetStartupConfigurationParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets the first user.
@ -72,6 +74,8 @@ public:
protected:
QString path(const GetFirstUser_2Params& parameters) const override;
QUrlQuery query(const GetFirstUser_2Params& parameters) const override;
QByteArray body(const GetFirstUser_2Params& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets the first user.
@ -84,6 +88,8 @@ public:
protected:
QString path(const GetFirstUserParams& parameters) const override;
QUrlQuery query(const GetFirstUserParams& parameters) const override;
QByteArray body(const GetFirstUserParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const GetStudiosParams& parameters) const override;
QUrlQuery query(const GetStudiosParams& parameters) const override;
QByteArray body(const GetStudiosParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a studio by name.
@ -71,6 +73,8 @@ public:
protected:
QString path(const GetStudioParams& parameters) const override;
QUrlQuery query(const GetStudioParams& parameters) const override;
QByteArray body(const GetStudioParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const GetFallbackFontListParams& parameters) const override;
QUrlQuery query(const GetFallbackFontListParams& parameters) const override;
QByteArray body(const GetFallbackFontListParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Search remote subtitles.
@ -71,6 +73,8 @@ public:
protected:
QString path(const SearchRemoteSubtitlesParams& parameters) const override;
QUrlQuery query(const SearchRemoteSubtitlesParams& parameters) const override;
QByteArray body(const SearchRemoteSubtitlesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetSuggestionsParams& parameters) const override;
QUrlQuery query(const GetSuggestionsParams& parameters) const override;
QByteArray body(const GetSuggestionsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const SyncPlayGetGroupsParams& parameters) const override;
QUrlQuery query(const SyncPlayGetGroupsParams& parameters) const override;
QByteArray body(const SyncPlayGetGroupsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -62,6 +62,8 @@ public:
protected:
QString path(const GetEndpointInfoParams& parameters) const override;
QUrlQuery query(const GetEndpointInfoParams& parameters) const override;
QByteArray body(const GetEndpointInfoParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets information about the server.
@ -74,6 +76,8 @@ public:
protected:
QString path(const GetSystemInfoParams& parameters) const override;
QUrlQuery query(const GetSystemInfoParams& parameters) const override;
QByteArray body(const GetSystemInfoParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets public information about the server.
@ -86,6 +90,8 @@ public:
protected:
QString path(const GetPublicSystemInfoParams& parameters) const override;
QUrlQuery query(const GetPublicSystemInfoParams& parameters) const override;
QByteArray body(const GetPublicSystemInfoParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a list of available server log files.
@ -98,6 +104,8 @@ public:
protected:
QString path(const GetServerLogsParams& parameters) const override;
QUrlQuery query(const GetServerLogsParams& parameters) const override;
QByteArray body(const GetServerLogsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Pings the system.
@ -110,6 +118,8 @@ public:
protected:
QString path(const GetPingSystemParams& parameters) const override;
QUrlQuery query(const GetPingSystemParams& parameters) const override;
QByteArray body(const GetPingSystemParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Pings the system.
@ -122,6 +132,8 @@ public:
protected:
QString path(const PostPingSystemParams& parameters) const override;
QUrlQuery query(const PostPingSystemParams& parameters) const override;
QByteArray body(const PostPingSystemParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets wake on lan information.
@ -134,6 +146,8 @@ public:
protected:
QString path(const GetWakeOnLanInfoParams& parameters) const override;
QUrlQuery query(const GetWakeOnLanInfoParams& parameters) const override;
QByteArray body(const GetWakeOnLanInfoParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetUtcTimeParams& parameters) const override;
QUrlQuery query(const GetUtcTimeParams& parameters) const override;
QByteArray body(const GetUtcTimeParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetTrailersParams& parameters) const override;
QUrlQuery query(const GetTrailersParams& parameters) const override;
QByteArray body(const GetTrailersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -61,6 +61,8 @@ public:
protected:
QString path(const GetEpisodesParams& parameters) const override;
QUrlQuery query(const GetEpisodesParams& parameters) const override;
QByteArray body(const GetEpisodesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets seasons for a tv series.
@ -73,6 +75,8 @@ public:
protected:
QString path(const GetSeasonsParams& parameters) const override;
QUrlQuery query(const GetSeasonsParams& parameters) const override;
QByteArray body(const GetSeasonsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a list of next up episodes.
@ -85,6 +89,8 @@ public:
protected:
QString path(const GetNextUpParams& parameters) const override;
QUrlQuery query(const GetNextUpParams& parameters) const override;
QByteArray body(const GetNextUpParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a list of upcoming episodes.
@ -97,6 +103,8 @@ public:
protected:
QString path(const GetUpcomingEpisodesParams& parameters) const override;
QUrlQuery query(const GetUpcomingEpisodesParams& parameters) const override;
QByteArray body(const GetUpcomingEpisodesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -67,6 +67,8 @@ public:
protected:
QString path(const GetUsersParams& parameters) const override;
QUrlQuery query(const GetUsersParams& parameters) const override;
QByteArray body(const GetUsersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a user by Id.
@ -79,6 +81,8 @@ public:
protected:
QString path(const GetUserByIdParams& parameters) const override;
QUrlQuery query(const GetUserByIdParams& parameters) const override;
QByteArray body(const GetUserByIdParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Authenticates a user.
@ -91,6 +95,8 @@ public:
protected:
QString path(const AuthenticateUserParams& parameters) const override;
QUrlQuery query(const AuthenticateUserParams& parameters) const override;
QByteArray body(const AuthenticateUserParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Authenticates a user by name.
@ -103,6 +109,8 @@ public:
protected:
QString path(const AuthenticateUserByNameParams& parameters) const override;
QUrlQuery query(const AuthenticateUserByNameParams& parameters) const override;
QByteArray body(const AuthenticateUserByNameParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Authenticates a user with quick connect.
@ -115,6 +123,8 @@ public:
protected:
QString path(const AuthenticateWithQuickConnectParams& parameters) const override;
QUrlQuery query(const AuthenticateWithQuickConnectParams& parameters) const override;
QByteArray body(const AuthenticateWithQuickConnectParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Initiates the forgot password process for a local user.
@ -127,6 +137,8 @@ public:
protected:
QString path(const ForgotPasswordParams& parameters) const override;
QUrlQuery query(const ForgotPasswordParams& parameters) const override;
QByteArray body(const ForgotPasswordParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Redeems a forgot password pin.
@ -139,6 +151,8 @@ public:
protected:
QString path(const ForgotPasswordPinParams& parameters) const override;
QUrlQuery query(const ForgotPasswordPinParams& parameters) const override;
QByteArray body(const ForgotPasswordPinParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets the user based on auth token.
@ -151,6 +165,8 @@ public:
protected:
QString path(const GetCurrentUserParams& parameters) const override;
QUrlQuery query(const GetCurrentUserParams& parameters) const override;
QByteArray body(const GetCurrentUserParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Creates a user.
@ -163,6 +179,8 @@ public:
protected:
QString path(const CreateUserByNameParams& parameters) const override;
QUrlQuery query(const CreateUserByNameParams& parameters) const override;
QByteArray body(const CreateUserByNameParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a list of publicly visible users for display on a login screen.
@ -175,6 +193,8 @@ public:
protected:
QString path(const GetPublicUsersParams& parameters) const override;
QUrlQuery query(const GetPublicUsersParams& parameters) const override;
QByteArray body(const GetPublicUsersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -67,6 +67,8 @@ public:
protected:
QString path(const MarkFavoriteItemParams& parameters) const override;
QUrlQuery query(const MarkFavoriteItemParams& parameters) const override;
QByteArray body(const MarkFavoriteItemParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Unmarks item as a favorite.
@ -79,6 +81,8 @@ public:
protected:
QString path(const UnmarkFavoriteItemParams& parameters) const override;
QUrlQuery query(const UnmarkFavoriteItemParams& parameters) const override;
QByteArray body(const UnmarkFavoriteItemParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets an item from a user's library.
@ -91,6 +95,8 @@ public:
protected:
QString path(const GetItemParams& parameters) const override;
QUrlQuery query(const GetItemParams& parameters) const override;
QByteArray body(const GetItemParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets intros to play before the main media item plays.
@ -103,6 +109,8 @@ public:
protected:
QString path(const GetIntrosParams& parameters) const override;
QUrlQuery query(const GetIntrosParams& parameters) const override;
QByteArray body(const GetIntrosParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets local trailers for an item.
@ -115,6 +123,8 @@ public:
protected:
QString path(const GetLocalTrailersParams& parameters) const override;
QUrlQuery query(const GetLocalTrailersParams& parameters) const override;
QByteArray body(const GetLocalTrailersParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Deletes a user's saved personal rating for an item.
@ -127,6 +137,8 @@ public:
protected:
QString path(const DeleteUserItemRatingParams& parameters) const override;
QUrlQuery query(const DeleteUserItemRatingParams& parameters) const override;
QByteArray body(const DeleteUserItemRatingParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Updates a user's rating for an item.
@ -139,6 +151,8 @@ public:
protected:
QString path(const UpdateUserItemRatingParams& parameters) const override;
QUrlQuery query(const UpdateUserItemRatingParams& parameters) const override;
QByteArray body(const UpdateUserItemRatingParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets special features for an item.
@ -151,6 +165,8 @@ public:
protected:
QString path(const GetSpecialFeaturesParams& parameters) const override;
QUrlQuery query(const GetSpecialFeaturesParams& parameters) const override;
QByteArray body(const GetSpecialFeaturesParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets latest media.
@ -163,6 +179,8 @@ public:
protected:
QString path(const GetLatestMediaParams& parameters) const override;
QUrlQuery query(const GetLatestMediaParams& parameters) const override;
QByteArray body(const GetLatestMediaParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets the root folder from a user's library.
@ -175,6 +193,8 @@ public:
protected:
QString path(const GetRootFolderParams& parameters) const override;
QUrlQuery query(const GetRootFolderParams& parameters) const override;
QByteArray body(const GetRootFolderParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const GetGroupingOptionsParams& parameters) const override;
QUrlQuery query(const GetGroupingOptionsParams& parameters) const override;
QByteArray body(const GetGroupingOptionsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Get user views.
@ -71,6 +73,8 @@ public:
protected:
QString path(const GetUserViewsParams& parameters) const override;
QUrlQuery query(const GetUserViewsParams& parameters) const override;
QByteArray body(const GetUserViewsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -58,6 +58,8 @@ public:
protected:
QString path(const GetAdditionalPartParams& parameters) const override;
QUrlQuery query(const GetAdditionalPartParams& parameters) const override;
QByteArray body(const GetAdditionalPartParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

View file

@ -59,6 +59,8 @@ public:
protected:
QString path(const GetYearsParams& parameters) const override;
QUrlQuery query(const GetYearsParams& parameters) const override;
QByteArray body(const GetYearsParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
/**
* @brief Gets a year.
@ -71,6 +73,8 @@ public:
protected:
QString path(const GetYearParams& parameters) const override;
QUrlQuery query(const GetYearParams& parameters) const override;
QByteArray body(const GetYearParams& parameters) const override;
QNetworkAccessManager::Operation operation() const override;
};
} // NS HTTP

File diff suppressed because it is too large Load diff

View file

@ -159,7 +159,19 @@ public:
this->m_reply->deleteLater();
}
this->m_isRunning = true;
m_reply = this->m_apiClient->get(path(this->m_parameters), query(this->m_parameters));
switch(operation()) {
case QNetworkAccessManager::GetOperation:
m_reply = this->m_apiClient->get(path(this->m_parameters), query(this->m_parameters));
break;
case QNetworkAccessManager::PostOperation:
m_reply = this->m_apiClient->post(path(this->m_parameters), body(this->m_parameters), query(this->m_parameters));
break;
default:
this->stopWithError(QStringLiteral("Unsupported network okperation %1").arg(operation()));
return;
}
this->connect(m_reply, &QNetworkReply::finished, this, &HttpLoader<R, P>::onRequestFinished);
}
@ -186,6 +198,8 @@ protected:
*/
virtual QString path(const P &parameters) const = 0;
virtual QUrlQuery query(const P &parameters) const = 0;
virtual QByteArray body(const P &parameters) const = 0;
virtual QNetworkAccessManager::Operation operation() const = 0;
private:
QNetworkReply *m_reply = nullptr;
QFutureWatcher<std::optional<R>> m_parsedWatcher;

View file

@ -36,6 +36,7 @@ import std.functional;
import std.path : buildPath, dirSeparator;
import std.parallelism : parallel;
import std.range;
import std.regex;
import std.string;
import std.stdio;
import std.uni;
@ -134,6 +135,8 @@ bool GENERATE_PROPERTIES = true;
string outputDirectory = "generated";
// END CODE GENERATION SETTINGS.
static immutable MimeType MIME_APPLICATION_JSON = MimeType("application", "json");
// Implementation
enum CasePolicy {
@ -194,6 +197,7 @@ void realMain(string[] args) {
foreach(string path, ref Node operations; root["paths"]) {
foreach (string operation, ref Node endpoint; operations) {
endpoint["path"] = path;
endpoint["operation"] = operation;
string tag;
if ("tags" in endpoint && endpoint["tags"].length > 0) {
tag = endpoint["tags"][0].as!string;
@ -329,6 +333,7 @@ void writeRequestTypesFile(R)(File headerFile, File implementationFile, R endpoi
RequestParameter[] requiredParameters = [];
RequestParameter[] optionalParameters = [];
RequestParameter[] parameters = [];
RequestParameter[] bodyParameters = [];
}
struct Controller {
@ -347,8 +352,10 @@ void writeRequestTypesFile(R)(File headerFile, File implementationFile, R endpoi
getParameters(endpoint.parameters, (e => e.required && e.location == ParameterLocation.QUERY));
endpointController.optionalQueryParameters =
getParameters(endpoint.parameters, (e => !e.required && e.location == ParameterLocation.QUERY));
endpointController.bodyParameters =
getParameters(endpoint.parameters, (e => e.location == ParameterLocation.BODY));
with (endpointController) {
parameters = requiredPathParameters ~ requiredQueryParameters ~ optionalQueryParameters;
parameters = requiredPathParameters ~ requiredQueryParameters ~ optionalQueryParameters ~ bodyParameters;
requiredParameters = requiredPathParameters ~ requiredQueryParameters;
optionalParameters = optionalQueryParameters;
@ -384,6 +391,7 @@ void generateFileForEndpoints(ref const Node[] endpointNodes,
string responseType = "void";
string parameterType = "void";
Endpoint endpoint;
string operation;
string pathStringInterpolation() {
string result = "QStringLiteral(\"" ~ endpoint.path ~ "\")";
@ -414,6 +422,7 @@ void generateFileForEndpoints(ref const Node[] endpointNodes,
endpoint.parameterType = name ~ "Params";
endpoint.description = endpointNode.getOr!string("summary", "");
endpoint.path = endpointNode["path"].as!string;
endpoint.operation = endpointNode["operation"].as!string.toLower();
// Find the most likely result response.
foreach(string code, const Node response; endpointNode["responses"]) {
@ -451,6 +460,47 @@ void generateFileForEndpoints(ref const Node[] endpointNodes,
}
}
if ("requestBody" in endpointNode) {
string description = "";
if ("description" in endpointNode["requestBody"]) {
description = endpointNode["requestBody"]["description"].as!string;
}
MimeType[] similarMimeTypes = [];
foreach(string contentType, const Node content; endpointNode["requestBody"]["content"]) {
MimeType mimeType = MimeType.parse(contentType);
// Skip if we already had a similar mime type before.
if (similarMimeTypes.any!((t) => t.compatible(mimeType))) continue;
similarMimeTypes ~= [mimeType];
RequestParameter param = new RequestParameter();
param.location = ParameterLocation.BODY;
param.description = description;
param.required = true;
// Hardcode this because the openapi description of Jellyfin seems to contain both
if (mimeType.type == "text" && mimeType.subtype == "json") continue;
if (mimeType.compatible(MIME_APPLICATION_JSON)) {
string name = "body";
param.type = getType(name, content["schema"], allSchemas);
} else {
MetaTypeInfo info = new MetaTypeInfo();
info.name = "body";
info.originalName = "body";
info.typeName = "QByteArray";
info.isTypeNullable = true;
info.needsSystemImport = true;
info.typeNullableCheck = ".isEmpty()";
info.typeNullableSetter = ".clear()";
param.type = info;
}
endpoint.bodyParameters ~= [param];
endpoint.parameters ~= [param];
}
}
// Build the parameter structure.
if ("parameters" in endpointNode && endpointNode["parameters"].length > 0) {
foreach (ref const Node yamlParameter; endpointNode["parameters"]) {
@ -488,18 +538,19 @@ void generateFileForEndpoints(ref const Node[] endpointNodes,
EndpointController endpointController = new EndpointController();
endpointController.className = name.applyCasePolicy(OPENAPI_CASING, CPP_CLASS_CASING);
endpointController.endpoint = endpoint;
endpointController.operation = endpoint.operation.applyCasePolicy(CasePolicy.CAMEL, CasePolicy.PASCAL);
endpointControllers ~= [endpointController];
}
// Render templates
class Controller {
struct Controller {
EndpointController[] endpoints;
string supportNamespace = namespaceString!CPP_NAMESPACE_SUPPORT;
string dtoNamespace = namespaceString!CPP_NAMESPACE_DTO;
}
Controller controller = new Controller();
Controller controller = Controller();
controller.endpoints = endpointControllers[];
writeHeaderPreamble(headerFile, CPP_NAMESPACE_LOADER_HTTP, categoryName, systemImports, userImports);
@ -1039,7 +1090,7 @@ class Endpoint {
string description;
/// HTTP method for this endpoint
string method;
string operation;
/// List of all parameters for this request
RequestParameter[] parameters = [];
@ -1047,13 +1098,15 @@ class Endpoint {
RequestParameter[] requiredPathParameters;
RequestParameter[] requiredQueryParameters;
RequestParameter[] optionalQueryParameters;
RequestParameter[] bodyParameters;
}
enum ParameterLocation {
PATH,
QUERY,
COOKIE,
HEADER
HEADER,
BODY
}
class RequestParameter {
@ -1062,6 +1115,8 @@ class RequestParameter {
bool required;
string description;
MetaTypeInfo type;
// Only for body parameters.
string mimeType;
}
/**
@ -1111,6 +1166,82 @@ unittest {
assert(namespaceString!["foo", "bar"] == "foo::bar");
}
bool areMimesCompatible(string expectedMime, string mime) @safe nothrow {
try {
MimeType type1 = MimeType.parse(expectedMime);
MimeType type2 = MimeType.parse(mime);
return type1.compatible(type2);
} catch(Exception e) {
return false;
}
}
class MimeParseException : Exception {
mixin basicExceptionCtors;
}
/**
* Data structure representing a mime type.
*/
struct MimeType {
public:
this(string type, string subtype, string suffix = null, string parameter = null) @safe {
this.type = type;
this.subtype = subtype;
this.suffix = suffix;
this.parameter = parameter;
}
string toString() const {
Appender!string result = appender!string;
result.reserve(type.length + subtype.length + (suffix ? suffix.length + 1 : 0) + (parameter ? parameter.length + 2 : 0));
result ~= type;
result ~= "/";
result ~= subtype;
if (suffix) {
result ~= "+";
result ~= suffix;
}
if (parameter) {
result ~= "; ";
result ~= parameter;
}
return result[];
}
static MimeType parse(string mime) @safe {
auto parts = mime.matchFirst(mimeRegex);
enforce(parts, mime ~ " is not a valid mimetype");
return MimeType(parts["type"], parts["subtype"], parts["suffix"], parts["parameter"]);
}
static auto mimeRegex = regex(`(?P<type>\w*)\/(?P<subtype>(([\w\-]+\.)+)?[\w\-\*]+)(\+(?P<suffix>[\w\-\.]+))?(; (?P<parameter>[\w+-\.=]+))?`);
string type = null;
string subtype = null;;
string suffix = null;
string parameter = null;
/**
* Checks if two mime types are compatible.
*
* Two mime types are considered compatible if either one of the following
* conditions is true:
* 1. The mime types are exactly the same
* 2. The expected mime type is in the form "x/*" and the mime type is in the form "x/y"
* 3. The expected mime type is in the form "x/z+y" and the mime type is in the form "x/y"
* 4. The expected mime type is in the form "x/y" and the mime type is in the form "x/z+y"
*/
bool compatible(const ref MimeType other) const @safe {
if (type != other.type) return false;
if (subtype == other.subtype || subtype == "*" || other.subtype == "*") return true;
if (subtype == other.suffix || suffix == other.subtype) return true;
return false;
}
}
/**
* Retrieves the given key from the node, if it does not exists, returns the or parameter.
*/

View file

@ -20,51 +20,167 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "JellyfinQt/apiclient.h"
#include "JellyfinQt/support/jsonconv.h"
#include "JellyfinQt/viewmodel/settings.h"
#include "JellyfinQt/websocket.h"
namespace Jellyfin {
class ApiClientPrivate {
public:
ApiClientPrivate(ApiClient *parent);
virtual ~ApiClientPrivate() {}
// Exposed properties
ViewModel::Settings *settings;
WebSocket *webSocket;
EventBus *eventbus;
CredentialsManager *credManager;
// Authentication-related variables
QString token;
QString baseUrl;
QString deviceName;
QString deviceId;
QString userId;
bool online = true;
QJsonObject deviceProfile;
QJsonObject playbackDeviceProfile;
QVariantList supportedCommands;
bool authenticated = false;
/**
* @brief Retrieves the device ID or generates a random one.
*/
QUuid retrieveDeviceId() const;
};
ApiClient::ApiClient(QObject *parent)
: QObject(parent),
m_webSocket(new WebSocket(this)),
m_eventbus(new EventBus(this)),
m_deviceName(QHostInfo::localHostName()) {
d_ptr(new ApiClientPrivate(this)) {
Q_D(ApiClient);
m_deviceId = Support::toString(retrieveDeviceId());
m_credManager = CredentialsManager::newInstance(this);
connect(m_credManager, &CredentialsManager::serversListed, this, &ApiClient::credManagerServersListed);
connect(m_credManager, &CredentialsManager::usersListed, this, &ApiClient::credManagerUsersListed);
connect(m_credManager, &CredentialsManager::tokenRetrieved, this, &ApiClient::credManagerTokenRetrieved);
d->deviceId = Support::toString(d->retrieveDeviceId());
d->deviceName = QHostInfo::localHostName();
d->credManager = CredentialsManager::newInstance(this);
connect(d->credManager, &CredentialsManager::serversListed, this, &ApiClient::credManagerServersListed);
connect(d->credManager, &CredentialsManager::usersListed, this, &ApiClient::credManagerUsersListed);
connect(d->credManager, &CredentialsManager::tokenRetrieved, this, &ApiClient::credManagerTokenRetrieved);
generateDeviceProfile();
}
ApiClient::~ApiClient() {
}
bool ApiClient::authenticated() const {
Q_D(const ApiClient);
return d->authenticated;
}
const QString &ApiClient::baseUrl() const {
Q_D(const ApiClient);
return d->baseUrl;
}
void ApiClient::setBaseUrl(const QString &url) {
Q_D(ApiClient);
d->baseUrl = url;
if (d->baseUrl.endsWith("/")) {
d->baseUrl.chop(1);
}
emit this->baseUrlChanged(d->baseUrl);
}
const QString &ApiClient::userId() const {
Q_D(const ApiClient);
return d->userId;
}
void ApiClient::setUserId(const QString &userId) {
Q_D(ApiClient);
d->userId = userId;
emit userIdChanged(userId);
}
const QString &ApiClient::deviceId() const {
Q_D(const ApiClient);
return d->deviceId;
}
EventBus *ApiClient::eventbus() const {
Q_D(const ApiClient);
return d->eventbus;
}
WebSocket *ApiClient::websocket() const {
Q_D(const ApiClient);
return d->webSocket;
}
QString ApiClient::version() const {
return QString(SAILFIN_VERSION);
}
bool ApiClient::online() const {
Q_D(const ApiClient);
return d->online;
}
const QString &ApiClient::token() const {
Q_D(const ApiClient);
return d->token;
}
ViewModel::Settings *ApiClient::settings() const {
Q_D(const ApiClient);
return d->settings;
}
QVariantList ApiClient::supportedCommands() const {
Q_D(const ApiClient);
return d->supportedCommands;
}
void ApiClient::setSupportedCommands(QVariantList newSupportedCommands) {
Q_D(ApiClient);
d->supportedCommands = newSupportedCommands;
emit supportedCommandsChanged();
}
const QJsonObject &ApiClient::deviceProfile() const {
Q_D(const ApiClient);
return d->deviceProfile;
}
const QJsonObject &ApiClient::playbackDeviceProfile() const {
Q_D(const ApiClient);
return d->playbackDeviceProfile;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
// BASE HTTP METHODS //
////////////////////////////////////////////////////////////////////////////////////////////////////
void ApiClient::addBaseRequestHeaders(QNetworkRequest &request, const QString &path, const QUrlQuery &params) {
void ApiClient::addBaseRequestHeaders(QNetworkRequest &request, const QString &path, const QUrlQuery &params) const {
Q_D(const ApiClient);
addTokenHeader(request);
request.setRawHeader("Accept", "application/json;"); // profile=\"CamelCase\"");
request.setHeader(QNetworkRequest::UserAgentHeader, QString("Sailfin/%1").arg(version()));
QString url = this->m_baseUrl + path;
QString url = d->baseUrl + path;
if (!params.isEmpty()) url += "?" + params.toString(QUrl::EncodeReserved);
request.setUrl(url);
}
void ApiClient::addTokenHeader(QNetworkRequest &request) {
void ApiClient::addTokenHeader(QNetworkRequest &request) const {
Q_D(const ApiClient);
QString authentication = "MediaBrowser ";
authentication += "Client=\"Sailfin\"";
authentication += ", Device=\"" + m_deviceName + "\"";
authentication += ", DeviceId=\"" + m_deviceId + "\"";
authentication += ", Device=\"" + d->deviceName + "\"";
authentication += ", DeviceId=\"" + d->deviceId + "\"";
authentication += ", Version=\"" + version() + "\"";
if (m_authenticated) {
authentication += ", token=\"" + m_token + "\"";
if (d->authenticated) {
authentication += ", token=\"" + d->token + "\"";
}
request.setRawHeader("X-Emby-Authorization", authentication.toUtf8());
}
@ -88,15 +204,29 @@ QNetworkReply *ApiClient::post(const QString &path, const QJsonDocument &data, c
}
}
QNetworkReply *ApiClient::post(const QString &path, const QByteArray &data, const QUrlQuery &params) {
QNetworkRequest req;
req.setHeader(QNetworkRequest::ContentTypeHeader, "application/json");
addBaseRequestHeaders(req, path, params);
qDebug() << "POST " << req.url();
if (data.isEmpty())
return m_naManager.post(req, QByteArray());
else {
return m_naManager.post(req, data);
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////
// Nice to have methods //
////////////////////////////////////////////////////////////////////////////////////////////////////
void ApiClient::restoreSavedSession(){
m_credManager->listServers();
Q_D(ApiClient);
d->credManager->listServers();
}
void ApiClient::credManagerServersListed(QStringList servers) {
Q_D(ApiClient);
qDebug() << "Servers listed: " << servers;
if (servers.size() == 0) {
emit this->setupRequired();
@ -105,12 +235,13 @@ void ApiClient::credManagerServersListed(QStringList servers) {
//FIXME: support multiple servers
QString server = servers[0];
this->m_baseUrl = server;
d->baseUrl = server;
qDebug() << "Chosen server: " << server;
m_credManager->listUsers(server);
d->credManager->listUsers(server);
}
void ApiClient::credManagerUsersListed(const QString &server, QStringList users) {
Q_D(ApiClient);
if (users.size() == 0) {
emit this->setupRequired();
return;
@ -119,10 +250,11 @@ void ApiClient::credManagerUsersListed(const QString &server, QStringList users)
QString user = users[0];
qDebug() << "Chosen user: " << user;
m_credManager->get(server, user);
d->credManager->get(server, user);
}
void ApiClient::credManagerTokenRetrieved(const QString &server, const QString &user, const QString &token) {
this->m_token = token;
Q_D(ApiClient);
d->token = token;
qDebug() << "Token retreived, logged in as user " << user;
this->setUserId(user);
this->setAuthenticated(true);
@ -130,10 +262,11 @@ void ApiClient::credManagerTokenRetrieved(const QString &server, const QString &
}
void ApiClient::setupConnection() {
Q_D(ApiClient);
// First detect redirects:
// Note that this is done without calling JellyfinApiClient::get since that automatically includes the base_url,
// which is something we want to avoid here.
QNetworkRequest req = QNetworkRequest(m_baseUrl);
QNetworkRequest req = QNetworkRequest(d->baseUrl);
#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
req.setAttribute(QNetworkRequest::RedirectPolicyAttribute, QNetworkRequest::NoLessSafeRedirectPolicy);
#else
@ -185,27 +318,29 @@ void ApiClient::getBrandingConfiguration() {
}
void ApiClient::authenticate(QString username, QString password, bool storeCredentials) {
Q_D(ApiClient);
QJsonObject requestData;
requestData["Username"] = username;
requestData["Pw"] = password;
QNetworkReply *rep = post("/Users/authenticatebyname", QJsonDocument(requestData));
connect(rep, &QNetworkReply::finished, this, [rep, username, storeCredentials, this]() {
Q_D(ApiClient);
int status = rep->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
qDebug() << "Got reply with status code " << status;
if (status >= 200 && status < 300) {
QJsonObject authInfo = QJsonDocument::fromJson(rep->readAll()).object();
this->m_token = authInfo["AccessToken"].toString();
d->token = authInfo["AccessToken"].toString();
// Fool this class's addRequestheaders to add the token, without
// notifying QML that we're authenticated, to prevent other requests going first.
this->m_authenticated = true;
d->authenticated = true;
this->setUserId(authInfo["User"].toObject()["Id"].toString());
this->postCapabilities();
this->setAuthenticated(true);
if (storeCredentials) {
m_credManager->store(this->m_baseUrl, this->m_userId, this->m_token);
d->credManager->store(d->baseUrl, d->userId, d->token);
}
} else if(status >= 400 && status < 500) {
if (status == 401) {
@ -222,7 +357,8 @@ void ApiClient::authenticate(QString username, QString password, bool storeCrede
void ApiClient::deleteSession() {
QNetworkReply *rep = post("/Sessions/Logout");
connect(rep, &QNetworkReply::finished, this, [rep, this] {
m_credManager->remove(m_baseUrl, m_userId);
Q_D(ApiClient);
d->credManager->remove(d->baseUrl, d->userId);
this->setAuthenticated(false);
emit this->setupRequired();
rep->deleteLater();
@ -230,12 +366,13 @@ void ApiClient::deleteSession() {
}
void ApiClient::postCapabilities() {
Q_D(const ApiClient);
QJsonObject capabilities;
QList<DTO::GeneralCommandType> supportedCommands;
supportedCommands.reserve(m_supportedCommands.size());
for (int i = 0; i < m_supportedCommands.size(); i++) {
if (m_supportedCommands[i].canConvert<DTO::GeneralCommandType>()) {
supportedCommands.append(m_supportedCommands[i].value<DTO::GeneralCommandType>());
supportedCommands.reserve(d->supportedCommands.size());
for (int i = 0; i < d->supportedCommands.size(); i++) {
if (d->supportedCommands[i].canConvert<DTO::GeneralCommandType>()) {
supportedCommands.append(d->supportedCommands[i].value<DTO::GeneralCommandType>());
}
}
QList<int> foo = {1, 2, 3};
@ -248,20 +385,22 @@ void ApiClient::postCapabilities() {
capabilities["SupportsContentUploading"] = false;
capabilities["AppStoreUrl"] = "https://chris.netsoj.nl/projects/harbour-sailfin";
capabilities["IconUrl"] = "https://chris.netsoj.nl/static/img/logo.png";
capabilities["DeviceProfile"] = m_deviceProfile;
capabilities["DeviceProfile"] = d->deviceProfile;
QNetworkReply *rep = post("/Sessions/Capabilities/Full", QJsonDocument(capabilities));
setDefaultErrorHandler(rep);
}
QString ApiClient::downloadUrl(const QString &itemId) const {
return m_baseUrl + "/Items/" + itemId + "/Download?api_key=" + this->m_token;
Q_D(const ApiClient);
return d->baseUrl + "/Items/" + itemId + "/Download?api_key=" + d->token;
}
void ApiClient::generateDeviceProfile() {
Q_D(ApiClient);
QJsonObject root = Model::DeviceProfile::generateProfile();
m_playbackDeviceProfile = QJsonObject(root);
root["Name"] = m_deviceName;
root["Id"] = m_deviceId;
d->playbackDeviceProfile = QJsonObject(root);
root["Name"] = d->deviceName;
root["Id"] = d->deviceId;
root["FriendlyName"] = QSysInfo::prettyProductName();
QJsonArray playableMediaTypes;
playableMediaTypes.append("Audio");
@ -269,7 +408,7 @@ void ApiClient::generateDeviceProfile() {
playableMediaTypes.append("Photo");
root["PlayableMediaTypes"] = playableMediaTypes;
m_deviceProfile = root;
d->deviceProfile = root;
emit deviceProfileChanged();
}
@ -291,12 +430,13 @@ void ApiClient::onUserDataChanged(const QString &itemId, UserData *userData) {
}
void ApiClient::setAuthenticated(bool authenticated) {
this->m_authenticated = authenticated;
if (authenticated) m_webSocket->open();
Q_D(ApiClient);
d->authenticated = authenticated;
if (authenticated) d->webSocket->open();
emit authenticatedChanged(authenticated);
}
QUuid ApiClient::retrieveDeviceId() {
QUuid ApiClientPrivate::retrieveDeviceId() const {
// This should probably not block the main thread, but on the other side,
// the file is not too big.
QString path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
@ -336,4 +476,15 @@ QUuid ApiClient::retrieveDeviceId() {
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////
// PRIVATE //
////////////////////////////////////////////////////////////////////////////////////////////////////
ApiClientPrivate::ApiClientPrivate(ApiClient *apiClient)
: settings(new ViewModel::Settings(apiClient)),
webSocket(new WebSocket(apiClient)),
eventbus(new EventBus(apiClient)) {
}
}

View file

@ -29,6 +29,7 @@ void registerTypes(const char *uri) {
qmlRegisterUncreatableType<EventBus>(uri, 1, 0, "EventBus", "Obtain one via your ApiClient");
qmlRegisterUncreatableType<WebSocket>(uri, 1, 0, "WebSocket", "Obtain one via your ApiClient");
qmlRegisterUncreatableType<ViewModel::MediaStream>(uri, 1, 0, "MediaStream", "Obtain one via an Item");
qmlRegisterUncreatableType<ViewModel::Settings>(uri, 1, 0, "Settings", "Obtain one via your ApiClient");
qmlRegisterUncreatableType<ViewModel::UserData>(uri, 1, 0, "UserData", "Obtain one via an Item");
// AbstractItemModels

View file

@ -66,6 +66,16 @@ QUrlQuery GetLogEntriesLoader::query(const GetLogEntriesParams &params) const {
return result;
}
QByteArray GetLogEntriesLoader::body(const GetLogEntriesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetLogEntriesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetKeysLoader::query(const GetKeysParams &params) const {
return result;
}
QByteArray GetKeysLoader::body(const GetKeysParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetKeysLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -144,6 +144,16 @@ QUrlQuery GetArtistsLoader::query(const GetArtistsParams &params) const {
return result;
}
QByteArray GetArtistsLoader::body(const GetArtistsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetArtistsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetArtistByNameLoader::GetArtistByNameLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDto, GetArtistByNameParams>(apiClient) {}
@ -166,6 +176,16 @@ QUrlQuery GetArtistByNameLoader::query(const GetArtistByNameParams &params) cons
return result;
}
QByteArray GetArtistByNameLoader::body(const GetArtistByNameParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetArtistByNameLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetAlbumArtistsLoader::GetAlbumArtistsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetAlbumArtistsParams>(apiClient) {}
@ -275,6 +295,16 @@ QUrlQuery GetAlbumArtistsLoader::query(const GetAlbumArtistsParams &params) cons
return result;
}
QByteArray GetAlbumArtistsLoader::body(const GetAlbumArtistsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetAlbumArtistsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetBrandingOptionsLoader::query(const GetBrandingOptionsParams &params
return result;
}
QByteArray GetBrandingOptionsLoader::body(const GetBrandingOptionsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetBrandingOptionsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetBrandingCssLoader::GetBrandingCssLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QString, GetBrandingCssParams>(apiClient) {}
@ -73,6 +83,16 @@ QUrlQuery GetBrandingCssLoader::query(const GetBrandingCssParams &params) const
return result;
}
QByteArray GetBrandingCssLoader::body(const GetBrandingCssParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetBrandingCssLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetBrandingCss_2Loader::GetBrandingCss_2Loader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QString, GetBrandingCss_2Params>(apiClient) {}
@ -92,6 +112,16 @@ QUrlQuery GetBrandingCss_2Loader::query(const GetBrandingCss_2Params &params) co
return result;
}
QByteArray GetBrandingCss_2Loader::body(const GetBrandingCss_2Params &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetBrandingCss_2Loader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -72,6 +72,16 @@ QUrlQuery GetChannelsLoader::query(const GetChannelsParams &params) const {
return result;
}
QByteArray GetChannelsLoader::body(const GetChannelsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetChannelsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetChannelFeaturesLoader::GetChannelFeaturesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<ChannelFeatures, GetChannelFeaturesParams>(apiClient) {}
@ -91,6 +101,16 @@ QUrlQuery GetChannelFeaturesLoader::query(const GetChannelFeaturesParams &params
return result;
}
QByteArray GetChannelFeaturesLoader::body(const GetChannelFeaturesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetChannelFeaturesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetChannelItemsLoader::GetChannelItemsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetChannelItemsParams>(apiClient) {}
@ -134,6 +154,16 @@ QUrlQuery GetChannelItemsLoader::query(const GetChannelItemsParams &params) cons
return result;
}
QByteArray GetChannelItemsLoader::body(const GetChannelItemsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetChannelItemsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetAllChannelFeaturesLoader::GetAllChannelFeaturesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<ChannelFeatures>, GetAllChannelFeaturesParams>(apiClient) {}
@ -153,6 +183,16 @@ QUrlQuery GetAllChannelFeaturesLoader::query(const GetAllChannelFeaturesParams &
return result;
}
QByteArray GetAllChannelFeaturesLoader::body(const GetAllChannelFeaturesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetAllChannelFeaturesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetLatestChannelItemsLoader::GetLatestChannelItemsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetLatestChannelItemsParams>(apiClient) {}
@ -190,6 +230,16 @@ QUrlQuery GetLatestChannelItemsLoader::query(const GetLatestChannelItemsParams &
return result;
}
QByteArray GetLatestChannelItemsLoader::body(const GetLatestChannelItemsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetLatestChannelItemsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -66,6 +66,16 @@ QUrlQuery CreateCollectionLoader::query(const CreateCollectionParams &params) co
return result;
}
QByteArray CreateCollectionLoader::body(const CreateCollectionParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation CreateCollectionLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetConfigurationLoader::query(const GetConfigurationParams &params) co
return result;
}
QByteArray GetConfigurationLoader::body(const GetConfigurationParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetConfigurationLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetNamedConfigurationLoader::GetNamedConfigurationLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QString, GetNamedConfigurationParams>(apiClient) {}
@ -73,6 +83,16 @@ QUrlQuery GetNamedConfigurationLoader::query(const GetNamedConfigurationParams &
return result;
}
QByteArray GetNamedConfigurationLoader::body(const GetNamedConfigurationParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetNamedConfigurationLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetDefaultMetadataOptionsLoader::GetDefaultMetadataOptionsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<MetadataOptions, GetDefaultMetadataOptionsParams>(apiClient) {}
@ -92,6 +112,16 @@ QUrlQuery GetDefaultMetadataOptionsLoader::query(const GetDefaultMetadataOptions
return result;
}
QByteArray GetDefaultMetadataOptionsLoader::body(const GetDefaultMetadataOptionsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetDefaultMetadataOptionsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -60,6 +60,16 @@ QUrlQuery GetConfigurationPagesLoader::query(const GetConfigurationPagesParams &
return result;
}
QByteArray GetConfigurationPagesLoader::body(const GetConfigurationPagesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetConfigurationPagesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -60,6 +60,16 @@ QUrlQuery GetDevicesLoader::query(const GetDevicesParams &params) const {
return result;
}
QByteArray GetDevicesLoader::body(const GetDevicesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetDevicesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetDeviceInfoLoader::GetDeviceInfoLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<DeviceInfo, GetDeviceInfoParams>(apiClient) {}
@ -80,6 +90,16 @@ QUrlQuery GetDeviceInfoLoader::query(const GetDeviceInfoParams &params) const {
return result;
}
QByteArray GetDeviceInfoLoader::body(const GetDeviceInfoParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetDeviceInfoLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetDeviceOptionsLoader::GetDeviceOptionsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<DeviceOptions, GetDeviceOptionsParams>(apiClient) {}
@ -100,6 +120,16 @@ QUrlQuery GetDeviceOptionsLoader::query(const GetDeviceOptionsParams &params) co
return result;
}
QByteArray GetDeviceOptionsLoader::body(const GetDeviceOptionsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetDeviceOptionsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -56,6 +56,16 @@ QUrlQuery GetDisplayPreferencesLoader::query(const GetDisplayPreferencesParams &
return result;
}
QByteArray GetDisplayPreferencesLoader::body(const GetDisplayPreferencesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetDisplayPreferencesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetProfileInfosLoader::query(const GetProfileInfosParams &params) cons
return result;
}
QByteArray GetProfileInfosLoader::body(const GetProfileInfosParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetProfileInfosLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetProfileLoader::GetProfileLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<DeviceProfile, GetProfileParams>(apiClient) {}
@ -73,6 +83,16 @@ QUrlQuery GetProfileLoader::query(const GetProfileParams &params) const {
return result;
}
QByteArray GetProfileLoader::body(const GetProfileParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetProfileLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetDefaultProfileLoader::GetDefaultProfileLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<DeviceProfile, GetDefaultProfileParams>(apiClient) {}
@ -92,6 +112,16 @@ QUrlQuery GetDefaultProfileLoader::query(const GetDefaultProfileParams &params)
return result;
}
QByteArray GetDefaultProfileLoader::body(const GetDefaultProfileParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetDefaultProfileLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetDefaultDirectoryBrowserLoader::query(const GetDefaultDirectoryBrows
return result;
}
QByteArray GetDefaultDirectoryBrowserLoader::body(const GetDefaultDirectoryBrowserParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetDefaultDirectoryBrowserLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetDirectoryContentsLoader::GetDirectoryContentsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<FileSystemEntryInfo>, GetDirectoryContentsParams>(apiClient) {}
@ -80,6 +90,16 @@ QUrlQuery GetDirectoryContentsLoader::query(const GetDirectoryContentsParams &pa
return result;
}
QByteArray GetDirectoryContentsLoader::body(const GetDirectoryContentsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetDirectoryContentsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetDrivesLoader::GetDrivesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<FileSystemEntryInfo>, GetDrivesParams>(apiClient) {}
@ -99,6 +119,16 @@ QUrlQuery GetDrivesLoader::query(const GetDrivesParams &params) const {
return result;
}
QByteArray GetDrivesLoader::body(const GetDrivesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetDrivesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetNetworkSharesLoader::GetNetworkSharesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<FileSystemEntryInfo>, GetNetworkSharesParams>(apiClient) {}
@ -118,6 +148,16 @@ QUrlQuery GetNetworkSharesLoader::query(const GetNetworkSharesParams &params) co
return result;
}
QByteArray GetNetworkSharesLoader::body(const GetNetworkSharesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetNetworkSharesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetParentPathLoader::GetParentPathLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QString, GetParentPathParams>(apiClient) {}
@ -138,6 +178,16 @@ QUrlQuery GetParentPathLoader::query(const GetParentPathParams &params) const {
return result;
}
QByteArray GetParentPathLoader::body(const GetParentPathParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetParentPathLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -66,6 +66,16 @@ QUrlQuery GetQueryFiltersLegacyLoader::query(const GetQueryFiltersLegacyParams &
return result;
}
QByteArray GetQueryFiltersLegacyLoader::body(const GetQueryFiltersLegacyParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetQueryFiltersLegacyLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetQueryFiltersLoader::GetQueryFiltersLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QueryFilters, GetQueryFiltersParams>(apiClient) {}
@ -115,6 +125,16 @@ QUrlQuery GetQueryFiltersLoader::query(const GetQueryFiltersParams &params) cons
return result;
}
QByteArray GetQueryFiltersLoader::body(const GetQueryFiltersParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetQueryFiltersLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -102,6 +102,16 @@ QUrlQuery GetGenresLoader::query(const GetGenresParams &params) const {
return result;
}
QByteArray GetGenresLoader::body(const GetGenresParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetGenresLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetGenreLoader::GetGenreLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDto, GetGenreParams>(apiClient) {}
@ -124,6 +134,16 @@ QUrlQuery GetGenreLoader::query(const GetGenreParams &params) const {
return result;
}
QByteArray GetGenreLoader::body(const GetGenreParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetGenreLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetItemImageInfosLoader::query(const GetItemImageInfosParams &params)
return result;
}
QByteArray GetItemImageInfosLoader::body(const GetItemImageInfosParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetItemImageInfosLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetGeneralImagesLoader::query(const GetGeneralImagesParams &params) co
return result;
}
QByteArray GetGeneralImagesLoader::body(const GetGeneralImagesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetGeneralImagesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetMediaInfoImagesLoader::GetMediaInfoImagesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<ImageByNameInfo>, GetMediaInfoImagesParams>(apiClient) {}
@ -73,6 +83,16 @@ QUrlQuery GetMediaInfoImagesLoader::query(const GetMediaInfoImagesParams &params
return result;
}
QByteArray GetMediaInfoImagesLoader::body(const GetMediaInfoImagesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetMediaInfoImagesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetRatingImagesLoader::GetRatingImagesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<ImageByNameInfo>, GetRatingImagesParams>(apiClient) {}
@ -92,6 +112,16 @@ QUrlQuery GetRatingImagesLoader::query(const GetRatingImagesParams &params) cons
return result;
}
QByteArray GetRatingImagesLoader::body(const GetRatingImagesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetRatingImagesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -75,6 +75,16 @@ QUrlQuery GetInstantMixFromAlbumLoader::query(const GetInstantMixFromAlbumParams
return result;
}
QByteArray GetInstantMixFromAlbumLoader::body(const GetInstantMixFromAlbumParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetInstantMixFromAlbumLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetInstantMixFromArtistsLoader::GetInstantMixFromArtistsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromArtistsParams>(apiClient) {}
@ -115,6 +125,16 @@ QUrlQuery GetInstantMixFromArtistsLoader::query(const GetInstantMixFromArtistsPa
return result;
}
QByteArray GetInstantMixFromArtistsLoader::body(const GetInstantMixFromArtistsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetInstantMixFromArtistsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetInstantMixFromItemLoader::GetInstantMixFromItemLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromItemParams>(apiClient) {}
@ -155,6 +175,16 @@ QUrlQuery GetInstantMixFromItemLoader::query(const GetInstantMixFromItemParams &
return result;
}
QByteArray GetInstantMixFromItemLoader::body(const GetInstantMixFromItemParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetInstantMixFromItemLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetInstantMixFromMusicGenresLoader::GetInstantMixFromMusicGenresLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromMusicGenresParams>(apiClient) {}
@ -195,6 +225,16 @@ QUrlQuery GetInstantMixFromMusicGenresLoader::query(const GetInstantMixFromMusic
return result;
}
QByteArray GetInstantMixFromMusicGenresLoader::body(const GetInstantMixFromMusicGenresParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetInstantMixFromMusicGenresLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetInstantMixFromMusicGenreLoader::GetInstantMixFromMusicGenreLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromMusicGenreParams>(apiClient) {}
@ -235,6 +275,16 @@ QUrlQuery GetInstantMixFromMusicGenreLoader::query(const GetInstantMixFromMusicG
return result;
}
QByteArray GetInstantMixFromMusicGenreLoader::body(const GetInstantMixFromMusicGenreParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetInstantMixFromMusicGenreLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetInstantMixFromPlaylistLoader::GetInstantMixFromPlaylistLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromPlaylistParams>(apiClient) {}
@ -275,6 +325,16 @@ QUrlQuery GetInstantMixFromPlaylistLoader::query(const GetInstantMixFromPlaylist
return result;
}
QByteArray GetInstantMixFromPlaylistLoader::body(const GetInstantMixFromPlaylistParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetInstantMixFromPlaylistLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetInstantMixFromSongLoader::GetInstantMixFromSongLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetInstantMixFromSongParams>(apiClient) {}
@ -315,6 +375,16 @@ QUrlQuery GetInstantMixFromSongLoader::query(const GetInstantMixFromSongParams &
return result;
}
QByteArray GetInstantMixFromSongLoader::body(const GetInstantMixFromSongParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetInstantMixFromSongLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetExternalIdInfosLoader::query(const GetExternalIdInfosParams &params
return result;
}
QByteArray GetExternalIdInfosLoader::body(const GetExternalIdInfosParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetExternalIdInfosLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetBookRemoteSearchResultsLoader::GetBookRemoteSearchResultsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetBookRemoteSearchResultsParams>(apiClient) {}
@ -73,6 +83,16 @@ QUrlQuery GetBookRemoteSearchResultsLoader::query(const GetBookRemoteSearchResul
return result;
}
QByteArray GetBookRemoteSearchResultsLoader::body(const GetBookRemoteSearchResultsParams &params) const {
return Support::toString<QSharedPointer<BookInfoRemoteSearchQuery>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation GetBookRemoteSearchResultsLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetBoxSetRemoteSearchResultsLoader::GetBoxSetRemoteSearchResultsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetBoxSetRemoteSearchResultsParams>(apiClient) {}
@ -92,6 +112,16 @@ QUrlQuery GetBoxSetRemoteSearchResultsLoader::query(const GetBoxSetRemoteSearchR
return result;
}
QByteArray GetBoxSetRemoteSearchResultsLoader::body(const GetBoxSetRemoteSearchResultsParams &params) const {
return Support::toString<QSharedPointer<BoxSetInfoRemoteSearchQuery>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation GetBoxSetRemoteSearchResultsLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetMovieRemoteSearchResultsLoader::GetMovieRemoteSearchResultsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetMovieRemoteSearchResultsParams>(apiClient) {}
@ -111,6 +141,16 @@ QUrlQuery GetMovieRemoteSearchResultsLoader::query(const GetMovieRemoteSearchRes
return result;
}
QByteArray GetMovieRemoteSearchResultsLoader::body(const GetMovieRemoteSearchResultsParams &params) const {
return Support::toString<QSharedPointer<MovieInfoRemoteSearchQuery>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation GetMovieRemoteSearchResultsLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetMusicAlbumRemoteSearchResultsLoader::GetMusicAlbumRemoteSearchResultsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetMusicAlbumRemoteSearchResultsParams>(apiClient) {}
@ -130,6 +170,16 @@ QUrlQuery GetMusicAlbumRemoteSearchResultsLoader::query(const GetMusicAlbumRemot
return result;
}
QByteArray GetMusicAlbumRemoteSearchResultsLoader::body(const GetMusicAlbumRemoteSearchResultsParams &params) const {
return Support::toString<QSharedPointer<AlbumInfoRemoteSearchQuery>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation GetMusicAlbumRemoteSearchResultsLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetMusicArtistRemoteSearchResultsLoader::GetMusicArtistRemoteSearchResultsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetMusicArtistRemoteSearchResultsParams>(apiClient) {}
@ -149,6 +199,16 @@ QUrlQuery GetMusicArtistRemoteSearchResultsLoader::query(const GetMusicArtistRem
return result;
}
QByteArray GetMusicArtistRemoteSearchResultsLoader::body(const GetMusicArtistRemoteSearchResultsParams &params) const {
return Support::toString<QSharedPointer<ArtistInfoRemoteSearchQuery>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation GetMusicArtistRemoteSearchResultsLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetMusicVideoRemoteSearchResultsLoader::GetMusicVideoRemoteSearchResultsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetMusicVideoRemoteSearchResultsParams>(apiClient) {}
@ -168,6 +228,16 @@ QUrlQuery GetMusicVideoRemoteSearchResultsLoader::query(const GetMusicVideoRemot
return result;
}
QByteArray GetMusicVideoRemoteSearchResultsLoader::body(const GetMusicVideoRemoteSearchResultsParams &params) const {
return Support::toString<QSharedPointer<MusicVideoInfoRemoteSearchQuery>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation GetMusicVideoRemoteSearchResultsLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetPersonRemoteSearchResultsLoader::GetPersonRemoteSearchResultsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetPersonRemoteSearchResultsParams>(apiClient) {}
@ -187,6 +257,16 @@ QUrlQuery GetPersonRemoteSearchResultsLoader::query(const GetPersonRemoteSearchR
return result;
}
QByteArray GetPersonRemoteSearchResultsLoader::body(const GetPersonRemoteSearchResultsParams &params) const {
return Support::toString<QSharedPointer<PersonLookupInfoRemoteSearchQuery>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation GetPersonRemoteSearchResultsLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetSeriesRemoteSearchResultsLoader::GetSeriesRemoteSearchResultsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetSeriesRemoteSearchResultsParams>(apiClient) {}
@ -206,6 +286,16 @@ QUrlQuery GetSeriesRemoteSearchResultsLoader::query(const GetSeriesRemoteSearchR
return result;
}
QByteArray GetSeriesRemoteSearchResultsLoader::body(const GetSeriesRemoteSearchResultsParams &params) const {
return Support::toString<QSharedPointer<SeriesInfoRemoteSearchQuery>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation GetSeriesRemoteSearchResultsLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetTrailerRemoteSearchResultsLoader::GetTrailerRemoteSearchResultsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<RemoteSearchResult>, GetTrailerRemoteSearchResultsParams>(apiClient) {}
@ -225,6 +315,16 @@ QUrlQuery GetTrailerRemoteSearchResultsLoader::query(const GetTrailerRemoteSearc
return result;
}
QByteArray GetTrailerRemoteSearchResultsLoader::body(const GetTrailerRemoteSearchResultsParams &params) const {
return Support::toString<QSharedPointer<TrailerInfoRemoteSearchQuery>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation GetTrailerRemoteSearchResultsLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -294,6 +294,16 @@ QUrlQuery GetItemsLoader::query(const GetItemsParams &params) const {
return result;
}
QByteArray GetItemsLoader::body(const GetItemsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetItemsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetItemsByUserIdLoader::GetItemsByUserIdLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetItemsByUserIdParams>(apiClient) {}
@ -550,6 +560,16 @@ QUrlQuery GetItemsByUserIdLoader::query(const GetItemsByUserIdParams &params) co
return result;
}
QByteArray GetItemsByUserIdLoader::body(const GetItemsByUserIdParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetItemsByUserIdLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetResumeItemsLoader::GetResumeItemsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetResumeItemsParams>(apiClient) {}
@ -608,6 +628,16 @@ QUrlQuery GetResumeItemsLoader::query(const GetResumeItemsParams &params) const
return result;
}
QByteArray GetResumeItemsLoader::body(const GetResumeItemsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetResumeItemsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetMetadataEditorInfoLoader::query(const GetMetadataEditorInfoParams &
return result;
}
QByteArray GetMetadataEditorInfoLoader::body(const GetMetadataEditorInfoParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetMetadataEditorInfoLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -66,6 +66,16 @@ QUrlQuery GetSimilarAlbumsLoader::query(const GetSimilarAlbumsParams &params) co
return result;
}
QByteArray GetSimilarAlbumsLoader::body(const GetSimilarAlbumsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetSimilarAlbumsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetSimilarArtistsLoader::GetSimilarArtistsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetSimilarArtistsParams>(apiClient) {}
@ -97,6 +107,16 @@ QUrlQuery GetSimilarArtistsLoader::query(const GetSimilarArtistsParams &params)
return result;
}
QByteArray GetSimilarArtistsLoader::body(const GetSimilarArtistsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetSimilarArtistsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetAncestorsLoader::GetAncestorsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<BaseItemDto>, GetAncestorsParams>(apiClient) {}
@ -119,6 +139,16 @@ QUrlQuery GetAncestorsLoader::query(const GetAncestorsParams &params) const {
return result;
}
QByteArray GetAncestorsLoader::body(const GetAncestorsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetAncestorsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetCriticReviewsLoader::GetCriticReviewsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetCriticReviewsParams>(apiClient) {}
@ -138,6 +168,16 @@ QUrlQuery GetCriticReviewsLoader::query(const GetCriticReviewsParams &params) co
return result;
}
QByteArray GetCriticReviewsLoader::body(const GetCriticReviewsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetCriticReviewsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetSimilarItemsLoader::GetSimilarItemsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetSimilarItemsParams>(apiClient) {}
@ -169,6 +209,16 @@ QUrlQuery GetSimilarItemsLoader::query(const GetSimilarItemsParams &params) cons
return result;
}
QByteArray GetSimilarItemsLoader::body(const GetSimilarItemsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetSimilarItemsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetThemeMediaLoader::GetThemeMediaLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<AllThemeMediaResult, GetThemeMediaParams>(apiClient) {}
@ -194,6 +244,16 @@ QUrlQuery GetThemeMediaLoader::query(const GetThemeMediaParams &params) const {
return result;
}
QByteArray GetThemeMediaLoader::body(const GetThemeMediaParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetThemeMediaLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetThemeSongsLoader::GetThemeSongsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<ThemeMediaResult, GetThemeSongsParams>(apiClient) {}
@ -219,6 +279,16 @@ QUrlQuery GetThemeSongsLoader::query(const GetThemeSongsParams &params) const {
return result;
}
QByteArray GetThemeSongsLoader::body(const GetThemeSongsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetThemeSongsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetThemeVideosLoader::GetThemeVideosLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<ThemeMediaResult, GetThemeVideosParams>(apiClient) {}
@ -244,6 +314,16 @@ QUrlQuery GetThemeVideosLoader::query(const GetThemeVideosParams &params) const
return result;
}
QByteArray GetThemeVideosLoader::body(const GetThemeVideosParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetThemeVideosLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetItemCountsLoader::GetItemCountsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<ItemCounts, GetItemCountsParams>(apiClient) {}
@ -269,6 +349,16 @@ QUrlQuery GetItemCountsLoader::query(const GetItemCountsParams &params) const {
return result;
}
QByteArray GetItemCountsLoader::body(const GetItemCountsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetItemCountsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetLibraryOptionsInfoLoader::GetLibraryOptionsInfoLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<LibraryOptionsResultDto, GetLibraryOptionsInfoParams>(apiClient) {}
@ -294,6 +384,16 @@ QUrlQuery GetLibraryOptionsInfoLoader::query(const GetLibraryOptionsInfoParams &
return result;
}
QByteArray GetLibraryOptionsInfoLoader::body(const GetLibraryOptionsInfoParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetLibraryOptionsInfoLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetMediaFoldersLoader::GetMediaFoldersLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetMediaFoldersParams>(apiClient) {}
@ -316,6 +416,16 @@ QUrlQuery GetMediaFoldersLoader::query(const GetMediaFoldersParams &params) cons
return result;
}
QByteArray GetMediaFoldersLoader::body(const GetMediaFoldersParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetMediaFoldersLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetPhysicalPathsLoader::GetPhysicalPathsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QStringList, GetPhysicalPathsParams>(apiClient) {}
@ -335,6 +445,16 @@ QUrlQuery GetPhysicalPathsLoader::query(const GetPhysicalPathsParams &params) co
return result;
}
QByteArray GetPhysicalPathsLoader::body(const GetPhysicalPathsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetPhysicalPathsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetSimilarMoviesLoader::GetSimilarMoviesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetSimilarMoviesParams>(apiClient) {}
@ -366,6 +486,16 @@ QUrlQuery GetSimilarMoviesLoader::query(const GetSimilarMoviesParams &params) co
return result;
}
QByteArray GetSimilarMoviesLoader::body(const GetSimilarMoviesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetSimilarMoviesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetSimilarShowsLoader::GetSimilarShowsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetSimilarShowsParams>(apiClient) {}
@ -397,6 +527,16 @@ QUrlQuery GetSimilarShowsLoader::query(const GetSimilarShowsParams &params) cons
return result;
}
QByteArray GetSimilarShowsLoader::body(const GetSimilarShowsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetSimilarShowsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetSimilarTrailersLoader::GetSimilarTrailersLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetSimilarTrailersParams>(apiClient) {}
@ -428,6 +568,16 @@ QUrlQuery GetSimilarTrailersLoader::query(const GetSimilarTrailersParams &params
return result;
}
QByteArray GetSimilarTrailersLoader::body(const GetSimilarTrailersParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetSimilarTrailersLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetVirtualFoldersLoader::query(const GetVirtualFoldersParams &params)
return result;
}
QByteArray GetVirtualFoldersLoader::body(const GetVirtualFoldersParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetVirtualFoldersLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -57,6 +57,16 @@ QUrlQuery GetChannelMappingOptionsLoader::query(const GetChannelMappingOptionsPa
return result;
}
QByteArray GetChannelMappingOptionsLoader::body(const GetChannelMappingOptionsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetChannelMappingOptionsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
SetChannelMappingLoader::SetChannelMappingLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<TunerChannelMapping, SetChannelMappingParams>(apiClient) {}
@ -76,6 +86,16 @@ QUrlQuery SetChannelMappingLoader::query(const SetChannelMappingParams &params)
return result;
}
QByteArray SetChannelMappingLoader::body(const SetChannelMappingParams &params) const {
return Support::toString<QSharedPointer<SetChannelMappingDto>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation SetChannelMappingLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetLiveTvChannelsLoader::GetLiveTvChannelsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetLiveTvChannelsParams>(apiClient) {}
@ -158,6 +178,16 @@ QUrlQuery GetLiveTvChannelsLoader::query(const GetLiveTvChannelsParams &params)
return result;
}
QByteArray GetLiveTvChannelsLoader::body(const GetLiveTvChannelsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetLiveTvChannelsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetChannelLoader::GetChannelLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDto, GetChannelParams>(apiClient) {}
@ -180,6 +210,16 @@ QUrlQuery GetChannelLoader::query(const GetChannelParams &params) const {
return result;
}
QByteArray GetChannelLoader::body(const GetChannelParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetChannelLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetGuideInfoLoader::GetGuideInfoLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<GuideInfo, GetGuideInfoParams>(apiClient) {}
@ -199,6 +239,16 @@ QUrlQuery GetGuideInfoLoader::query(const GetGuideInfoParams &params) const {
return result;
}
QByteArray GetGuideInfoLoader::body(const GetGuideInfoParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetGuideInfoLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetLiveTvInfoLoader::GetLiveTvInfoLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<LiveTvInfo, GetLiveTvInfoParams>(apiClient) {}
@ -218,6 +268,16 @@ QUrlQuery GetLiveTvInfoLoader::query(const GetLiveTvInfoParams &params) const {
return result;
}
QByteArray GetLiveTvInfoLoader::body(const GetLiveTvInfoParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetLiveTvInfoLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
AddListingProviderLoader::AddListingProviderLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<ListingsProviderInfo, AddListingProviderParams>(apiClient) {}
@ -246,6 +306,16 @@ QUrlQuery AddListingProviderLoader::query(const AddListingProviderParams &params
return result;
}
QByteArray AddListingProviderLoader::body(const AddListingProviderParams &params) const {
return Support::toString<QSharedPointer<ListingsProviderInfo>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation AddListingProviderLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetDefaultListingProviderLoader::GetDefaultListingProviderLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<ListingsProviderInfo, GetDefaultListingProviderParams>(apiClient) {}
@ -265,6 +335,16 @@ QUrlQuery GetDefaultListingProviderLoader::query(const GetDefaultListingProvider
return result;
}
QByteArray GetDefaultListingProviderLoader::body(const GetDefaultListingProviderParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetDefaultListingProviderLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetLineupsLoader::GetLineupsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<NameIdPair>, GetLineupsParams>(apiClient) {}
@ -296,6 +376,16 @@ QUrlQuery GetLineupsLoader::query(const GetLineupsParams &params) const {
return result;
}
QByteArray GetLineupsLoader::body(const GetLineupsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetLineupsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetSchedulesDirectCountriesLoader::GetSchedulesDirectCountriesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QString, GetSchedulesDirectCountriesParams>(apiClient) {}
@ -315,6 +405,16 @@ QUrlQuery GetSchedulesDirectCountriesLoader::query(const GetSchedulesDirectCount
return result;
}
QByteArray GetSchedulesDirectCountriesLoader::body(const GetSchedulesDirectCountriesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetSchedulesDirectCountriesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetLiveTvProgramsLoader::GetLiveTvProgramsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetLiveTvProgramsParams>(apiClient) {}
@ -415,6 +515,16 @@ QUrlQuery GetLiveTvProgramsLoader::query(const GetLiveTvProgramsParams &params)
return result;
}
QByteArray GetLiveTvProgramsLoader::body(const GetLiveTvProgramsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetLiveTvProgramsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetProgramsLoader::GetProgramsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetProgramsParams>(apiClient) {}
@ -434,6 +544,16 @@ QUrlQuery GetProgramsLoader::query(const GetProgramsParams &params) const {
return result;
}
QByteArray GetProgramsLoader::body(const GetProgramsParams &params) const {
return Support::toString<QSharedPointer<GetProgramsDto>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation GetProgramsLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetProgramLoader::GetProgramLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDto, GetProgramParams>(apiClient) {}
@ -456,6 +576,16 @@ QUrlQuery GetProgramLoader::query(const GetProgramParams &params) const {
return result;
}
QByteArray GetProgramLoader::body(const GetProgramParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetProgramLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetRecommendedProgramsLoader::GetRecommendedProgramsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetRecommendedProgramsParams>(apiClient) {}
@ -523,6 +653,16 @@ QUrlQuery GetRecommendedProgramsLoader::query(const GetRecommendedProgramsParams
return result;
}
QByteArray GetRecommendedProgramsLoader::body(const GetRecommendedProgramsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetRecommendedProgramsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetRecordingsLoader::GetRecordingsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetRecordingsParams>(apiClient) {}
@ -599,6 +739,16 @@ QUrlQuery GetRecordingsLoader::query(const GetRecordingsParams &params) const {
return result;
}
QByteArray GetRecordingsLoader::body(const GetRecordingsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetRecordingsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetRecordingLoader::GetRecordingLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDto, GetRecordingParams>(apiClient) {}
@ -621,6 +771,16 @@ QUrlQuery GetRecordingLoader::query(const GetRecordingParams &params) const {
return result;
}
QByteArray GetRecordingLoader::body(const GetRecordingParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetRecordingLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetRecordingFoldersLoader::GetRecordingFoldersLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetRecordingFoldersParams>(apiClient) {}
@ -643,6 +803,16 @@ QUrlQuery GetRecordingFoldersLoader::query(const GetRecordingFoldersParams &para
return result;
}
QByteArray GetRecordingFoldersLoader::body(const GetRecordingFoldersParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetRecordingFoldersLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetRecordingGroupsLoader::GetRecordingGroupsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetRecordingGroupsParams>(apiClient) {}
@ -665,6 +835,16 @@ QUrlQuery GetRecordingGroupsLoader::query(const GetRecordingGroupsParams &params
return result;
}
QByteArray GetRecordingGroupsLoader::body(const GetRecordingGroupsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetRecordingGroupsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetRecordingsSeriesLoader::GetRecordingsSeriesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetRecordingsSeriesParams>(apiClient) {}
@ -726,6 +906,16 @@ QUrlQuery GetRecordingsSeriesLoader::query(const GetRecordingsSeriesParams &para
return result;
}
QByteArray GetRecordingsSeriesLoader::body(const GetRecordingsSeriesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetRecordingsSeriesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetSeriesTimersLoader::GetSeriesTimersLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<SeriesTimerInfoDtoQueryResult, GetSeriesTimersParams>(apiClient) {}
@ -751,6 +941,16 @@ QUrlQuery GetSeriesTimersLoader::query(const GetSeriesTimersParams &params) cons
return result;
}
QByteArray GetSeriesTimersLoader::body(const GetSeriesTimersParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetSeriesTimersLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetSeriesTimerLoader::GetSeriesTimerLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<SeriesTimerInfoDto, GetSeriesTimerParams>(apiClient) {}
@ -770,6 +970,16 @@ QUrlQuery GetSeriesTimerLoader::query(const GetSeriesTimerParams &params) const
return result;
}
QByteArray GetSeriesTimerLoader::body(const GetSeriesTimerParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetSeriesTimerLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetTimersLoader::GetTimersLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<TimerInfoDtoQueryResult, GetTimersParams>(apiClient) {}
@ -801,6 +1011,16 @@ QUrlQuery GetTimersLoader::query(const GetTimersParams &params) const {
return result;
}
QByteArray GetTimersLoader::body(const GetTimersParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetTimersLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetTimerLoader::GetTimerLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<TimerInfoDto, GetTimerParams>(apiClient) {}
@ -820,6 +1040,16 @@ QUrlQuery GetTimerLoader::query(const GetTimerParams &params) const {
return result;
}
QByteArray GetTimerLoader::body(const GetTimerParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetTimerLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetDefaultTimerLoader::GetDefaultTimerLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<SeriesTimerInfoDto, GetDefaultTimerParams>(apiClient) {}
@ -842,6 +1072,16 @@ QUrlQuery GetDefaultTimerLoader::query(const GetDefaultTimerParams &params) cons
return result;
}
QByteArray GetDefaultTimerLoader::body(const GetDefaultTimerParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetDefaultTimerLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
AddTunerHostLoader::AddTunerHostLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<TunerHostInfo, AddTunerHostParams>(apiClient) {}
@ -861,6 +1101,16 @@ QUrlQuery AddTunerHostLoader::query(const AddTunerHostParams &params) const {
return result;
}
QByteArray AddTunerHostLoader::body(const AddTunerHostParams &params) const {
return Support::toString<QSharedPointer<TunerHostInfo>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation AddTunerHostLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetTunerHostTypesLoader::GetTunerHostTypesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<NameIdPair>, GetTunerHostTypesParams>(apiClient) {}
@ -880,6 +1130,16 @@ QUrlQuery GetTunerHostTypesLoader::query(const GetTunerHostTypesParams &params)
return result;
}
QByteArray GetTunerHostTypesLoader::body(const GetTunerHostTypesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetTunerHostTypesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
DiscoverTunersLoader::DiscoverTunersLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<TunerHostInfo>, DiscoverTunersParams>(apiClient) {}
@ -902,6 +1162,16 @@ QUrlQuery DiscoverTunersLoader::query(const DiscoverTunersParams &params) const
return result;
}
QByteArray DiscoverTunersLoader::body(const DiscoverTunersParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation DiscoverTunersLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
DiscvoverTunersLoader::DiscvoverTunersLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<TunerHostInfo>, DiscvoverTunersParams>(apiClient) {}
@ -924,6 +1194,16 @@ QUrlQuery DiscvoverTunersLoader::query(const DiscvoverTunersParams &params) cons
return result;
}
QByteArray DiscvoverTunersLoader::body(const DiscvoverTunersParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation DiscvoverTunersLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetCountriesLoader::query(const GetCountriesParams &params) const {
return result;
}
QByteArray GetCountriesLoader::body(const GetCountriesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetCountriesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetCulturesLoader::GetCulturesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<CultureDto>, GetCulturesParams>(apiClient) {}
@ -73,6 +83,16 @@ QUrlQuery GetCulturesLoader::query(const GetCulturesParams &params) const {
return result;
}
QByteArray GetCulturesLoader::body(const GetCulturesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetCulturesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetLocalizationOptionsLoader::GetLocalizationOptionsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<LocalizationOption>, GetLocalizationOptionsParams>(apiClient) {}
@ -92,6 +112,16 @@ QUrlQuery GetLocalizationOptionsLoader::query(const GetLocalizationOptionsParams
return result;
}
QByteArray GetLocalizationOptionsLoader::body(const GetLocalizationOptionsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetLocalizationOptionsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetParentalRatingsLoader::GetParentalRatingsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<ParentalRating>, GetParentalRatingsParams>(apiClient) {}
@ -111,6 +141,16 @@ QUrlQuery GetParentalRatingsLoader::query(const GetParentalRatingsParams &params
return result;
}
QByteArray GetParentalRatingsLoader::body(const GetParentalRatingsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetParentalRatingsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -55,6 +55,16 @@ QUrlQuery GetPlaybackInfoLoader::query(const GetPlaybackInfoParams &params) cons
return result;
}
QByteArray GetPlaybackInfoLoader::body(const GetPlaybackInfoParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetPlaybackInfoLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetPostedPlaybackInfoLoader::GetPostedPlaybackInfoLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<PlaybackInfoResponse, GetPostedPlaybackInfoParams>(apiClient) {}
@ -116,6 +126,16 @@ QUrlQuery GetPostedPlaybackInfoLoader::query(const GetPostedPlaybackInfoParams &
return result;
}
QByteArray GetPostedPlaybackInfoLoader::body(const GetPostedPlaybackInfoParams &params) const {
return Support::toString<QSharedPointer<PlaybackInfoDto>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation GetPostedPlaybackInfoLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
OpenLiveStreamLoader::OpenLiveStreamLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<LiveStreamResponse, OpenLiveStreamParams>(apiClient) {}
@ -168,6 +188,16 @@ QUrlQuery OpenLiveStreamLoader::query(const OpenLiveStreamParams &params) const
return result;
}
QByteArray OpenLiveStreamLoader::body(const OpenLiveStreamParams &params) const {
return Support::toString<QSharedPointer<OpenLiveStreamDto>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation OpenLiveStreamLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -69,6 +69,16 @@ QUrlQuery GetMovieRecommendationsLoader::query(const GetMovieRecommendationsPara
return result;
}
QByteArray GetMovieRecommendationsLoader::body(const GetMovieRecommendationsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetMovieRecommendationsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -102,6 +102,16 @@ QUrlQuery GetMusicGenresLoader::query(const GetMusicGenresParams &params) const
return result;
}
QByteArray GetMusicGenresLoader::body(const GetMusicGenresParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetMusicGenresLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetMusicGenreLoader::GetMusicGenreLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDto, GetMusicGenreParams>(apiClient) {}
@ -124,6 +134,16 @@ QUrlQuery GetMusicGenreLoader::query(const GetMusicGenreParams &params) const {
return result;
}
QByteArray GetMusicGenreLoader::body(const GetMusicGenreParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetMusicGenreLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetNotificationsLoader::query(const GetNotificationsParams &params) co
return result;
}
QByteArray GetNotificationsLoader::body(const GetNotificationsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetNotificationsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetNotificationsSummaryLoader::GetNotificationsSummaryLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<NotificationsSummaryDto, GetNotificationsSummaryParams>(apiClient) {}
@ -73,6 +83,16 @@ QUrlQuery GetNotificationsSummaryLoader::query(const GetNotificationsSummaryPara
return result;
}
QByteArray GetNotificationsSummaryLoader::body(const GetNotificationsSummaryParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetNotificationsSummaryLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetNotificationServicesLoader::GetNotificationServicesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<NameIdPair>, GetNotificationServicesParams>(apiClient) {}
@ -92,6 +112,16 @@ QUrlQuery GetNotificationServicesLoader::query(const GetNotificationServicesPara
return result;
}
QByteArray GetNotificationServicesLoader::body(const GetNotificationServicesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetNotificationServicesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetNotificationTypesLoader::GetNotificationTypesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<NotificationTypeInfo>, GetNotificationTypesParams>(apiClient) {}
@ -111,6 +141,16 @@ QUrlQuery GetNotificationTypesLoader::query(const GetNotificationTypesParams &pa
return result;
}
QByteArray GetNotificationTypesLoader::body(const GetNotificationTypesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetNotificationTypesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetPackagesLoader::query(const GetPackagesParams &params) const {
return result;
}
QByteArray GetPackagesLoader::body(const GetPackagesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetPackagesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetPackageInfoLoader::GetPackageInfoLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<PackageInfo, GetPackageInfoParams>(apiClient) {}
@ -76,6 +86,16 @@ QUrlQuery GetPackageInfoLoader::query(const GetPackageInfoParams &params) const
return result;
}
QByteArray GetPackageInfoLoader::body(const GetPackageInfoParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetPackageInfoLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetRepositoriesLoader::GetRepositoriesLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<RepositoryInfo>, GetRepositoriesParams>(apiClient) {}
@ -95,6 +115,16 @@ QUrlQuery GetRepositoriesLoader::query(const GetRepositoriesParams &params) cons
return result;
}
QByteArray GetRepositoriesLoader::body(const GetRepositoriesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetRepositoriesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -93,6 +93,16 @@ QUrlQuery GetPersonsLoader::query(const GetPersonsParams &params) const {
return result;
}
QByteArray GetPersonsLoader::body(const GetPersonsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetPersonsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetPersonLoader::GetPersonLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDto, GetPersonParams>(apiClient) {}
@ -115,6 +125,16 @@ QUrlQuery GetPersonLoader::query(const GetPersonParams &params) const {
return result;
}
QByteArray GetPersonLoader::body(const GetPersonParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetPersonLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -66,6 +66,16 @@ QUrlQuery CreatePlaylistLoader::query(const CreatePlaylistParams &params) const
return result;
}
QByteArray CreatePlaylistLoader::body(const CreatePlaylistParams &params) const {
return Support::toString<QSharedPointer<CreatePlaylistDto>>(params.body()).toUtf8();
}
QNetworkAccessManager::Operation CreatePlaylistLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
GetPlaylistItemsLoader::GetPlaylistItemsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BaseItemDtoQueryResult, GetPlaylistItemsParams>(apiClient) {}
@ -107,6 +117,16 @@ QUrlQuery GetPlaylistItemsLoader::query(const GetPlaylistItemsParams &params) co
return result;
}
QByteArray GetPlaylistItemsLoader::body(const GetPlaylistItemsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetPlaylistItemsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -57,6 +57,16 @@ QUrlQuery MarkPlayedItemLoader::query(const MarkPlayedItemParams &params) const
return result;
}
QByteArray MarkPlayedItemLoader::body(const MarkPlayedItemParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation MarkPlayedItemLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
MarkUnplayedItemLoader::MarkUnplayedItemLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<UserItemDataDto, MarkUnplayedItemParams>(apiClient) {}
@ -76,6 +86,16 @@ QUrlQuery MarkUnplayedItemLoader::query(const MarkUnplayedItemParams &params) co
return result;
}
QByteArray MarkUnplayedItemLoader::body(const MarkUnplayedItemParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation MarkUnplayedItemLoader::operation() const {
// HTTP method Delete
return QNetworkAccessManager::DeleteOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetPluginsLoader::query(const GetPluginsParams &params) const {
return result;
}
QByteArray GetPluginsLoader::body(const GetPluginsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetPluginsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetPluginConfigurationLoader::GetPluginConfigurationLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<BasePluginConfiguration, GetPluginConfigurationParams>(apiClient) {}
@ -73,6 +83,16 @@ QUrlQuery GetPluginConfigurationLoader::query(const GetPluginConfigurationParams
return result;
}
QByteArray GetPluginConfigurationLoader::body(const GetPluginConfigurationParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetPluginConfigurationLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -55,6 +55,16 @@ QUrlQuery AuthorizeLoader::query(const AuthorizeParams &params) const {
return result;
}
QByteArray AuthorizeLoader::body(const AuthorizeParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation AuthorizeLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
ConnectLoader::ConnectLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QuickConnectResult, ConnectParams>(apiClient) {}
@ -75,6 +85,16 @@ QUrlQuery ConnectLoader::query(const ConnectParams &params) const {
return result;
}
QByteArray ConnectLoader::body(const ConnectParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation ConnectLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
DeauthorizeLoader::DeauthorizeLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<qint32, DeauthorizeParams>(apiClient) {}
@ -94,6 +114,16 @@ QUrlQuery DeauthorizeLoader::query(const DeauthorizeParams &params) const {
return result;
}
QByteArray DeauthorizeLoader::body(const DeauthorizeParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation DeauthorizeLoader::operation() const {
// HTTP method Post
return QNetworkAccessManager::PostOperation;
}
InitiateLoader::InitiateLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QuickConnectResult, InitiateParams>(apiClient) {}
@ -113,6 +143,16 @@ QUrlQuery InitiateLoader::query(const InitiateParams &params) const {
return result;
}
QByteArray InitiateLoader::body(const InitiateParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation InitiateLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetStatusLoader::GetStatusLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QuickConnectState, GetStatusParams>(apiClient) {}
@ -132,6 +172,16 @@ QUrlQuery GetStatusLoader::query(const GetStatusParams &params) const {
return result;
}
QByteArray GetStatusLoader::body(const GetStatusParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetStatusLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -69,6 +69,16 @@ QUrlQuery GetRemoteImagesLoader::query(const GetRemoteImagesParams &params) cons
return result;
}
QByteArray GetRemoteImagesLoader::body(const GetRemoteImagesParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetRemoteImagesLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetRemoteImageProvidersLoader::GetRemoteImageProvidersLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<ImageProviderInfo>, GetRemoteImageProvidersParams>(apiClient) {}
@ -88,6 +98,16 @@ QUrlQuery GetRemoteImageProvidersLoader::query(const GetRemoteImageProvidersPara
return result;
}
QByteArray GetRemoteImageProvidersLoader::body(const GetRemoteImageProvidersParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetRemoteImageProvidersLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -60,6 +60,16 @@ QUrlQuery GetTasksLoader::query(const GetTasksParams &params) const {
return result;
}
QByteArray GetTasksLoader::body(const GetTasksParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetTasksLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetTaskLoader::GetTaskLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<TaskInfo, GetTaskParams>(apiClient) {}
@ -79,6 +89,16 @@ QUrlQuery GetTaskLoader::query(const GetTaskParams &params) const {
return result;
}
QByteArray GetTaskLoader::body(const GetTaskParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetTaskLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -106,6 +106,16 @@ QUrlQuery GetLoader::query(const GetParams &params) const {
return result;
}
QByteArray GetLoader::body(const GetParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

View file

@ -54,6 +54,16 @@ QUrlQuery GetPasswordResetProvidersLoader::query(const GetPasswordResetProviders
return result;
}
QByteArray GetPasswordResetProvidersLoader::body(const GetPasswordResetProvidersParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetPasswordResetProvidersLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetAuthProvidersLoader::GetAuthProvidersLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<NameIdPair>, GetAuthProvidersParams>(apiClient) {}
@ -73,6 +83,16 @@ QUrlQuery GetAuthProvidersLoader::query(const GetAuthProvidersParams &params) co
return result;
}
QByteArray GetAuthProvidersLoader::body(const GetAuthProvidersParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetAuthProvidersLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
GetSessionsLoader::GetSessionsLoader(ApiClient *apiClient)
: Jellyfin::Support::HttpLoader<QList<SessionInfo>, GetSessionsParams>(apiClient) {}
@ -101,6 +121,16 @@ QUrlQuery GetSessionsLoader::query(const GetSessionsParams &params) const {
return result;
}
QByteArray GetSessionsLoader::body(const GetSessionsParams &params) const {
return QByteArray();
}
QNetworkAccessManager::Operation GetSessionsLoader::operation() const {
// HTTP method Get
return QNetworkAccessManager::GetOperation;
}
} // NS HTTP
} // NS Loader

Some files were not shown because too many files have changed in this diff Show more