/* * Sailfin: a Jellyfin client written using Qt * Copyright (C) 2021 Chris Josten and the Sailfin Contributors. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * WARNING: THIS IS AN AUTOMATICALLY GENERATED FILE! PLEASE DO NOT EDIT THIS, AS YOUR EDITS WILL GET * OVERWRITTEN AT SOME POINT! * * If there is a bug in this file, please fix the code generator used to generate this file found in * core/openapigenerator.d. * * This file is generated based on Jellyfin's OpenAPI description, "openapi.json". Please update that * file with a newer file if needed instead of manually updating the files. */ #include namespace Jellyfin { namespace Loader { namespace HTTP { using namespace Jellyfin::DTO; GetChannelMappingOptionsLoader::GetChannelMappingOptionsLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetChannelMappingOptionsLoader::path(const GetChannelMappingOptionsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/ChannelMappingOptions"); } QUrlQuery GetChannelMappingOptionsLoader::query(const GetChannelMappingOptionsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.providerIdNull()) { result.addQueryItem("providerId", Support::toString(params.providerId())); } return result; } QByteArray GetChannelMappingOptionsLoader::body(const GetChannelMappingOptionsParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetChannelMappingOptionsLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } SetChannelMappingLoader::SetChannelMappingLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString SetChannelMappingLoader::path(const SetChannelMappingParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/ChannelMappings"); } QUrlQuery SetChannelMappingLoader::query(const SetChannelMappingParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters return result; } QByteArray SetChannelMappingLoader::body(const SetChannelMappingParams ¶ms) const { return Support::toString>(params.body()).toUtf8(); } QNetworkAccessManager::Operation SetChannelMappingLoader::operation() const { // HTTP method Post return QNetworkAccessManager::PostOperation; } GetLiveTvChannelsLoader::GetLiveTvChannelsLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetLiveTvChannelsLoader::path(const GetLiveTvChannelsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Channels"); } QUrlQuery GetLiveTvChannelsLoader::query(const GetLiveTvChannelsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.typeNull()) { result.addQueryItem("type", Support::toString(params.type())); } if (!params.userIdNull()) { result.addQueryItem("userId", Support::toString(params.userId())); } if (!params.startIndexNull()) { result.addQueryItem("startIndex", Support::toString>(params.startIndex())); } if (!params.isMovieNull()) { result.addQueryItem("isMovie", Support::toString>(params.isMovie())); } if (!params.isSeriesNull()) { result.addQueryItem("isSeries", Support::toString>(params.isSeries())); } if (!params.isNewsNull()) { result.addQueryItem("isNews", Support::toString>(params.isNews())); } if (!params.isKidsNull()) { result.addQueryItem("isKids", Support::toString>(params.isKids())); } if (!params.isSportsNull()) { result.addQueryItem("isSports", Support::toString>(params.isSports())); } if (!params.limitNull()) { result.addQueryItem("limit", Support::toString>(params.limit())); } if (!params.isFavoriteNull()) { result.addQueryItem("isFavorite", Support::toString>(params.isFavorite())); } if (!params.isLikedNull()) { result.addQueryItem("isLiked", Support::toString>(params.isLiked())); } if (!params.isDislikedNull()) { result.addQueryItem("isDisliked", Support::toString>(params.isDisliked())); } if (!params.enableImagesNull()) { result.addQueryItem("enableImages", Support::toString>(params.enableImages())); } if (!params.imageTypeLimitNull()) { result.addQueryItem("imageTypeLimit", Support::toString>(params.imageTypeLimit())); } if (!params.enableImageTypesNull()) { result.addQueryItem("enableImageTypes", Support::toString>(params.enableImageTypes())); } if (!params.fieldsNull()) { result.addQueryItem("fields", Support::toString>(params.fields())); } if (!params.enableUserDataNull()) { result.addQueryItem("enableUserData", Support::toString>(params.enableUserData())); } if (!params.sortByNull()) { result.addQueryItem("sortBy", Support::toString(params.sortBy())); } if (!params.sortOrderNull()) { result.addQueryItem("sortOrder", Support::toString(params.sortOrder())); } if (!params.enableFavoriteSortingNull()) { result.addQueryItem("enableFavoriteSorting", Support::toString>(params.enableFavoriteSorting())); } if (!params.addCurrentProgramNull()) { result.addQueryItem("addCurrentProgram", Support::toString>(params.addCurrentProgram())); } return result; } QByteArray GetLiveTvChannelsLoader::body(const GetLiveTvChannelsParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetLiveTvChannelsLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetChannelLoader::GetChannelLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetChannelLoader::path(const GetChannelParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Channels/") + Support::toString< QString>(params.channelId()) ; } QUrlQuery GetChannelLoader::query(const GetChannelParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.userIdNull()) { result.addQueryItem("userId", Support::toString(params.userId())); } return result; } QByteArray GetChannelLoader::body(const GetChannelParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetChannelLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetGuideInfoLoader::GetGuideInfoLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetGuideInfoLoader::path(const GetGuideInfoParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/GuideInfo"); } QUrlQuery GetGuideInfoLoader::query(const GetGuideInfoParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters return result; } QByteArray GetGuideInfoLoader::body(const GetGuideInfoParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetGuideInfoLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetLiveTvInfoLoader::GetLiveTvInfoLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetLiveTvInfoLoader::path(const GetLiveTvInfoParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Info"); } QUrlQuery GetLiveTvInfoLoader::query(const GetLiveTvInfoParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters return result; } QByteArray GetLiveTvInfoLoader::body(const GetLiveTvInfoParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetLiveTvInfoLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } AddListingProviderLoader::AddListingProviderLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString AddListingProviderLoader::path(const AddListingProviderParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/ListingProviders"); } QUrlQuery AddListingProviderLoader::query(const AddListingProviderParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.pwNull()) { result.addQueryItem("pw", Support::toString(params.pw())); } if (!params.validateListingsNull()) { result.addQueryItem("validateListings", Support::toString>(params.validateListings())); } if (!params.validateLoginNull()) { result.addQueryItem("validateLogin", Support::toString>(params.validateLogin())); } return result; } QByteArray AddListingProviderLoader::body(const AddListingProviderParams ¶ms) const { return Support::toString>(params.body()).toUtf8(); } QNetworkAccessManager::Operation AddListingProviderLoader::operation() const { // HTTP method Post return QNetworkAccessManager::PostOperation; } GetDefaultListingProviderLoader::GetDefaultListingProviderLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetDefaultListingProviderLoader::path(const GetDefaultListingProviderParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/ListingProviders/Default"); } QUrlQuery GetDefaultListingProviderLoader::query(const GetDefaultListingProviderParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters return result; } QByteArray GetDefaultListingProviderLoader::body(const GetDefaultListingProviderParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetDefaultListingProviderLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetLineupsLoader::GetLineupsLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader, GetLineupsParams>(apiClient) {} QString GetLineupsLoader::path(const GetLineupsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/ListingProviders/Lineups"); } QUrlQuery GetLineupsLoader::query(const GetLineupsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.jellyfinIdNull()) { result.addQueryItem("id", Support::toString(params.jellyfinId())); } if (!params.typeNull()) { result.addQueryItem("type", Support::toString(params.type())); } if (!params.locationNull()) { result.addQueryItem("location", Support::toString(params.location())); } if (!params.countryNull()) { result.addQueryItem("country", Support::toString(params.country())); } return result; } QByteArray GetLineupsLoader::body(const GetLineupsParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetLineupsLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetSchedulesDirectCountriesLoader::GetSchedulesDirectCountriesLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetSchedulesDirectCountriesLoader::path(const GetSchedulesDirectCountriesParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/ListingProviders/SchedulesDirect/Countries"); } QUrlQuery GetSchedulesDirectCountriesLoader::query(const GetSchedulesDirectCountriesParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters return result; } QByteArray GetSchedulesDirectCountriesLoader::body(const GetSchedulesDirectCountriesParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetSchedulesDirectCountriesLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetLiveTvProgramsLoader::GetLiveTvProgramsLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetLiveTvProgramsLoader::path(const GetLiveTvProgramsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Programs"); } QUrlQuery GetLiveTvProgramsLoader::query(const GetLiveTvProgramsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.channelIdsNull()) { result.addQueryItem("channelIds", Support::toString(params.channelIds())); } if (!params.userIdNull()) { result.addQueryItem("userId", Support::toString(params.userId())); } if (!params.minStartDateNull()) { result.addQueryItem("minStartDate", Support::toString(params.minStartDate())); } if (!params.hasAiredNull()) { result.addQueryItem("hasAired", Support::toString>(params.hasAired())); } if (!params.isAiringNull()) { result.addQueryItem("isAiring", Support::toString>(params.isAiring())); } if (!params.maxStartDateNull()) { result.addQueryItem("maxStartDate", Support::toString(params.maxStartDate())); } if (!params.minEndDateNull()) { result.addQueryItem("minEndDate", Support::toString(params.minEndDate())); } if (!params.maxEndDateNull()) { result.addQueryItem("maxEndDate", Support::toString(params.maxEndDate())); } if (!params.isMovieNull()) { result.addQueryItem("isMovie", Support::toString>(params.isMovie())); } if (!params.isSeriesNull()) { result.addQueryItem("isSeries", Support::toString>(params.isSeries())); } if (!params.isNewsNull()) { result.addQueryItem("isNews", Support::toString>(params.isNews())); } if (!params.isKidsNull()) { result.addQueryItem("isKids", Support::toString>(params.isKids())); } if (!params.isSportsNull()) { result.addQueryItem("isSports", Support::toString>(params.isSports())); } if (!params.startIndexNull()) { result.addQueryItem("startIndex", Support::toString>(params.startIndex())); } if (!params.limitNull()) { result.addQueryItem("limit", Support::toString>(params.limit())); } if (!params.sortByNull()) { result.addQueryItem("sortBy", Support::toString(params.sortBy())); } if (!params.sortOrderNull()) { result.addQueryItem("sortOrder", Support::toString(params.sortOrder())); } if (!params.genresNull()) { result.addQueryItem("genres", Support::toString(params.genres())); } if (!params.genreIdsNull()) { result.addQueryItem("genreIds", Support::toString(params.genreIds())); } if (!params.enableImagesNull()) { result.addQueryItem("enableImages", Support::toString>(params.enableImages())); } if (!params.imageTypeLimitNull()) { result.addQueryItem("imageTypeLimit", Support::toString>(params.imageTypeLimit())); } if (!params.enableImageTypesNull()) { result.addQueryItem("enableImageTypes", Support::toString>(params.enableImageTypes())); } if (!params.enableUserDataNull()) { result.addQueryItem("enableUserData", Support::toString>(params.enableUserData())); } if (!params.seriesTimerIdNull()) { result.addQueryItem("seriesTimerId", Support::toString(params.seriesTimerId())); } if (!params.librarySeriesIdNull()) { result.addQueryItem("librarySeriesId", Support::toString(params.librarySeriesId())); } if (!params.fieldsNull()) { result.addQueryItem("fields", Support::toString>(params.fields())); } if (!params.enableTotalRecordCountNull()) { result.addQueryItem("enableTotalRecordCount", Support::toString>(params.enableTotalRecordCount())); } return result; } QByteArray GetLiveTvProgramsLoader::body(const GetLiveTvProgramsParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetLiveTvProgramsLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetProgramsLoader::GetProgramsLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetProgramsLoader::path(const GetProgramsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Programs"); } QUrlQuery GetProgramsLoader::query(const GetProgramsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters return result; } QByteArray GetProgramsLoader::body(const GetProgramsParams ¶ms) const { return Support::toString>(params.body()).toUtf8(); } QNetworkAccessManager::Operation GetProgramsLoader::operation() const { // HTTP method Post return QNetworkAccessManager::PostOperation; } GetProgramLoader::GetProgramLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetProgramLoader::path(const GetProgramParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Programs/") + Support::toString< QString>(params.programId()) ; } QUrlQuery GetProgramLoader::query(const GetProgramParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.userIdNull()) { result.addQueryItem("userId", Support::toString(params.userId())); } return result; } QByteArray GetProgramLoader::body(const GetProgramParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetProgramLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetRecommendedProgramsLoader::GetRecommendedProgramsLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetRecommendedProgramsLoader::path(const GetRecommendedProgramsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Programs/Recommended"); } QUrlQuery GetRecommendedProgramsLoader::query(const GetRecommendedProgramsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.userIdNull()) { result.addQueryItem("userId", Support::toString(params.userId())); } if (!params.limitNull()) { result.addQueryItem("limit", Support::toString>(params.limit())); } if (!params.isAiringNull()) { result.addQueryItem("isAiring", Support::toString>(params.isAiring())); } if (!params.hasAiredNull()) { result.addQueryItem("hasAired", Support::toString>(params.hasAired())); } if (!params.isSeriesNull()) { result.addQueryItem("isSeries", Support::toString>(params.isSeries())); } if (!params.isMovieNull()) { result.addQueryItem("isMovie", Support::toString>(params.isMovie())); } if (!params.isNewsNull()) { result.addQueryItem("isNews", Support::toString>(params.isNews())); } if (!params.isKidsNull()) { result.addQueryItem("isKids", Support::toString>(params.isKids())); } if (!params.isSportsNull()) { result.addQueryItem("isSports", Support::toString>(params.isSports())); } if (!params.enableImagesNull()) { result.addQueryItem("enableImages", Support::toString>(params.enableImages())); } if (!params.imageTypeLimitNull()) { result.addQueryItem("imageTypeLimit", Support::toString>(params.imageTypeLimit())); } if (!params.enableImageTypesNull()) { result.addQueryItem("enableImageTypes", Support::toString>(params.enableImageTypes())); } if (!params.genreIdsNull()) { result.addQueryItem("genreIds", Support::toString(params.genreIds())); } if (!params.fieldsNull()) { result.addQueryItem("fields", Support::toString>(params.fields())); } if (!params.enableUserDataNull()) { result.addQueryItem("enableUserData", Support::toString>(params.enableUserData())); } if (!params.enableTotalRecordCountNull()) { result.addQueryItem("enableTotalRecordCount", Support::toString>(params.enableTotalRecordCount())); } return result; } QByteArray GetRecommendedProgramsLoader::body(const GetRecommendedProgramsParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetRecommendedProgramsLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetRecordingsLoader::GetRecordingsLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetRecordingsLoader::path(const GetRecordingsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Recordings"); } QUrlQuery GetRecordingsLoader::query(const GetRecordingsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.channelIdNull()) { result.addQueryItem("channelId", Support::toString(params.channelId())); } if (!params.userIdNull()) { result.addQueryItem("userId", Support::toString(params.userId())); } if (!params.startIndexNull()) { result.addQueryItem("startIndex", Support::toString>(params.startIndex())); } if (!params.limitNull()) { result.addQueryItem("limit", Support::toString>(params.limit())); } if (!params.statusNull()) { result.addQueryItem("status", Support::toString(params.status())); } if (!params.isInProgressNull()) { result.addQueryItem("isInProgress", Support::toString>(params.isInProgress())); } if (!params.seriesTimerIdNull()) { result.addQueryItem("seriesTimerId", Support::toString(params.seriesTimerId())); } if (!params.enableImagesNull()) { result.addQueryItem("enableImages", Support::toString>(params.enableImages())); } if (!params.imageTypeLimitNull()) { result.addQueryItem("imageTypeLimit", Support::toString>(params.imageTypeLimit())); } if (!params.enableImageTypesNull()) { result.addQueryItem("enableImageTypes", Support::toString>(params.enableImageTypes())); } if (!params.fieldsNull()) { result.addQueryItem("fields", Support::toString>(params.fields())); } if (!params.enableUserDataNull()) { result.addQueryItem("enableUserData", Support::toString>(params.enableUserData())); } if (!params.isMovieNull()) { result.addQueryItem("isMovie", Support::toString>(params.isMovie())); } if (!params.isSeriesNull()) { result.addQueryItem("isSeries", Support::toString>(params.isSeries())); } if (!params.isKidsNull()) { result.addQueryItem("isKids", Support::toString>(params.isKids())); } if (!params.isSportsNull()) { result.addQueryItem("isSports", Support::toString>(params.isSports())); } if (!params.isNewsNull()) { result.addQueryItem("isNews", Support::toString>(params.isNews())); } if (!params.isLibraryItemNull()) { result.addQueryItem("isLibraryItem", Support::toString>(params.isLibraryItem())); } if (!params.enableTotalRecordCountNull()) { result.addQueryItem("enableTotalRecordCount", Support::toString>(params.enableTotalRecordCount())); } return result; } QByteArray GetRecordingsLoader::body(const GetRecordingsParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetRecordingsLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetRecordingLoader::GetRecordingLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetRecordingLoader::path(const GetRecordingParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Recordings/") + Support::toString< QString>(params.recordingId()) ; } QUrlQuery GetRecordingLoader::query(const GetRecordingParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.userIdNull()) { result.addQueryItem("userId", Support::toString(params.userId())); } return result; } QByteArray GetRecordingLoader::body(const GetRecordingParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetRecordingLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetRecordingFoldersLoader::GetRecordingFoldersLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetRecordingFoldersLoader::path(const GetRecordingFoldersParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Recordings/Folders"); } QUrlQuery GetRecordingFoldersLoader::query(const GetRecordingFoldersParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.userIdNull()) { result.addQueryItem("userId", Support::toString(params.userId())); } return result; } QByteArray GetRecordingFoldersLoader::body(const GetRecordingFoldersParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetRecordingFoldersLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetRecordingGroupsLoader::GetRecordingGroupsLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetRecordingGroupsLoader::path(const GetRecordingGroupsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Recordings/Groups"); } QUrlQuery GetRecordingGroupsLoader::query(const GetRecordingGroupsParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.userIdNull()) { result.addQueryItem("userId", Support::toString(params.userId())); } return result; } QByteArray GetRecordingGroupsLoader::body(const GetRecordingGroupsParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetRecordingGroupsLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetRecordingsSeriesLoader::GetRecordingsSeriesLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetRecordingsSeriesLoader::path(const GetRecordingsSeriesParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Recordings/Series"); } QUrlQuery GetRecordingsSeriesLoader::query(const GetRecordingsSeriesParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.channelIdNull()) { result.addQueryItem("channelId", Support::toString(params.channelId())); } if (!params.userIdNull()) { result.addQueryItem("userId", Support::toString(params.userId())); } if (!params.groupIdNull()) { result.addQueryItem("groupId", Support::toString(params.groupId())); } if (!params.startIndexNull()) { result.addQueryItem("startIndex", Support::toString>(params.startIndex())); } if (!params.limitNull()) { result.addQueryItem("limit", Support::toString>(params.limit())); } if (!params.statusNull()) { result.addQueryItem("status", Support::toString(params.status())); } if (!params.isInProgressNull()) { result.addQueryItem("isInProgress", Support::toString>(params.isInProgress())); } if (!params.seriesTimerIdNull()) { result.addQueryItem("seriesTimerId", Support::toString(params.seriesTimerId())); } if (!params.enableImagesNull()) { result.addQueryItem("enableImages", Support::toString>(params.enableImages())); } if (!params.imageTypeLimitNull()) { result.addQueryItem("imageTypeLimit", Support::toString>(params.imageTypeLimit())); } if (!params.enableImageTypesNull()) { result.addQueryItem("enableImageTypes", Support::toString>(params.enableImageTypes())); } if (!params.fieldsNull()) { result.addQueryItem("fields", Support::toString>(params.fields())); } if (!params.enableUserDataNull()) { result.addQueryItem("enableUserData", Support::toString>(params.enableUserData())); } if (!params.enableTotalRecordCountNull()) { result.addQueryItem("enableTotalRecordCount", Support::toString>(params.enableTotalRecordCount())); } return result; } QByteArray GetRecordingsSeriesLoader::body(const GetRecordingsSeriesParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetRecordingsSeriesLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetSeriesTimersLoader::GetSeriesTimersLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetSeriesTimersLoader::path(const GetSeriesTimersParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/SeriesTimers"); } QUrlQuery GetSeriesTimersLoader::query(const GetSeriesTimersParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.sortByNull()) { result.addQueryItem("sortBy", Support::toString(params.sortBy())); } if (!params.sortOrderNull()) { result.addQueryItem("sortOrder", Support::toString(params.sortOrder())); } return result; } QByteArray GetSeriesTimersLoader::body(const GetSeriesTimersParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetSeriesTimersLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetSeriesTimerLoader::GetSeriesTimerLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetSeriesTimerLoader::path(const GetSeriesTimerParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/SeriesTimers/") + Support::toString< QString>(params.timerId()) ; } QUrlQuery GetSeriesTimerLoader::query(const GetSeriesTimerParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters return result; } QByteArray GetSeriesTimerLoader::body(const GetSeriesTimerParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetSeriesTimerLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetTimersLoader::GetTimersLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetTimersLoader::path(const GetTimersParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Timers"); } QUrlQuery GetTimersLoader::query(const GetTimersParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.channelIdNull()) { result.addQueryItem("channelId", Support::toString(params.channelId())); } if (!params.seriesTimerIdNull()) { result.addQueryItem("seriesTimerId", Support::toString(params.seriesTimerId())); } if (!params.isActiveNull()) { result.addQueryItem("isActive", Support::toString>(params.isActive())); } if (!params.isScheduledNull()) { result.addQueryItem("isScheduled", Support::toString>(params.isScheduled())); } return result; } QByteArray GetTimersLoader::body(const GetTimersParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetTimersLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetTimerLoader::GetTimerLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetTimerLoader::path(const GetTimerParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Timers/") + Support::toString< QString>(params.timerId()) ; } QUrlQuery GetTimerLoader::query(const GetTimerParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters return result; } QByteArray GetTimerLoader::body(const GetTimerParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetTimerLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } GetDefaultTimerLoader::GetDefaultTimerLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString GetDefaultTimerLoader::path(const GetDefaultTimerParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Timers/Defaults"); } QUrlQuery GetDefaultTimerLoader::query(const GetDefaultTimerParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.programIdNull()) { result.addQueryItem("programId", Support::toString(params.programId())); } return result; } QByteArray GetDefaultTimerLoader::body(const GetDefaultTimerParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetDefaultTimerLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } AddTunerHostLoader::AddTunerHostLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader(apiClient) {} QString AddTunerHostLoader::path(const AddTunerHostParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/TunerHosts"); } QUrlQuery AddTunerHostLoader::query(const AddTunerHostParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters return result; } QByteArray AddTunerHostLoader::body(const AddTunerHostParams ¶ms) const { return Support::toString>(params.body()).toUtf8(); } QNetworkAccessManager::Operation AddTunerHostLoader::operation() const { // HTTP method Post return QNetworkAccessManager::PostOperation; } GetTunerHostTypesLoader::GetTunerHostTypesLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader, GetTunerHostTypesParams>(apiClient) {} QString GetTunerHostTypesLoader::path(const GetTunerHostTypesParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/TunerHosts/Types"); } QUrlQuery GetTunerHostTypesLoader::query(const GetTunerHostTypesParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters return result; } QByteArray GetTunerHostTypesLoader::body(const GetTunerHostTypesParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation GetTunerHostTypesLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } DiscoverTunersLoader::DiscoverTunersLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader, DiscoverTunersParams>(apiClient) {} QString DiscoverTunersLoader::path(const DiscoverTunersParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Tuners/Discover"); } QUrlQuery DiscoverTunersLoader::query(const DiscoverTunersParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.newDevicesOnlyNull()) { result.addQueryItem("newDevicesOnly", Support::toString>(params.newDevicesOnly())); } return result; } QByteArray DiscoverTunersLoader::body(const DiscoverTunersParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation DiscoverTunersLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } DiscvoverTunersLoader::DiscvoverTunersLoader(ApiClient *apiClient) : Jellyfin::Support::HttpLoader, DiscvoverTunersParams>(apiClient) {} QString DiscvoverTunersLoader::path(const DiscvoverTunersParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings return QStringLiteral("/LiveTv/Tuners/Discvover"); } QUrlQuery DiscvoverTunersLoader::query(const DiscvoverTunersParams ¶ms) const { Q_UNUSED(params) // Might be overzealous, but I don't like theses kind of warnings QUrlQuery result; // Optional parameters if (!params.newDevicesOnlyNull()) { result.addQueryItem("newDevicesOnly", Support::toString>(params.newDevicesOnly())); } return result; } QByteArray DiscvoverTunersLoader::body(const DiscvoverTunersParams ¶ms) const { return QByteArray(); } QNetworkAccessManager::Operation DiscvoverTunersLoader::operation() const { // HTTP method Get return QNetworkAccessManager::GetOperation; } } // NS HTTP } // NS Loader } // NS Jellyfin