mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 10:12:46 +00:00
Replace not-fully-initializing DTO constructors
There were some constructors in the DTOs which allowed construction of DTO which weren't fully initialized. These constructors have been made private, as they are still used in the 'fromJson' methods. Additionally, a constructor with all required parameters to fully initialize the class has been added. Additionally, the Loader class has been modified, since it no longer can assume it is able to default construct the parameter type. The parameter is now stored as an optional. Closes #15
This commit is contained in:
parent
1e795ae8b6
commit
90db983c30
358 changed files with 3785 additions and 322 deletions
|
@ -33,6 +33,20 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
AccessSchedule::AccessSchedule() {}
|
||||
AccessSchedule::AccessSchedule (
|
||||
qint32 jellyfinId,
|
||||
QString userId,
|
||||
DynamicDayOfWeek dayOfWeek,
|
||||
double startHour,
|
||||
double endHour
|
||||
) :
|
||||
m_jellyfinId(jellyfinId),
|
||||
m_userId(userId),
|
||||
m_dayOfWeek(dayOfWeek),
|
||||
m_startHour(startHour),
|
||||
m_endHour(endHour) { }
|
||||
|
||||
|
||||
|
||||
AccessSchedule::AccessSchedule(const AccessSchedule &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,18 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ActivityLogEntry::ActivityLogEntry() {}
|
||||
ActivityLogEntry::ActivityLogEntry (
|
||||
qint64 jellyfinId,
|
||||
QDateTime date,
|
||||
QString userId,
|
||||
LogLevel severity
|
||||
) :
|
||||
m_jellyfinId(jellyfinId),
|
||||
m_date(date),
|
||||
m_userId(userId),
|
||||
m_severity(severity) { }
|
||||
|
||||
|
||||
|
||||
ActivityLogEntry::ActivityLogEntry(const ActivityLogEntry &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ActivityLogEntryQueryResult::ActivityLogEntryQueryResult() {}
|
||||
ActivityLogEntryQueryResult::ActivityLogEntryQueryResult (
|
||||
qint32 totalRecordCount,
|
||||
qint32 startIndex
|
||||
) :
|
||||
m_totalRecordCount(totalRecordCount),
|
||||
m_startIndex(startIndex) { }
|
||||
|
||||
|
||||
|
||||
ActivityLogEntryQueryResult::ActivityLogEntryQueryResult(const ActivityLogEntryQueryResult &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
AddVirtualFolderDto::AddVirtualFolderDto() {}
|
||||
AddVirtualFolderDto::AddVirtualFolderDto (
|
||||
QSharedPointer<LibraryOptions> libraryOptions
|
||||
) :
|
||||
m_libraryOptions(libraryOptions) { }
|
||||
|
||||
|
||||
|
||||
AddVirtualFolderDto::AddVirtualFolderDto(const AddVirtualFolderDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
AlbumInfo::AlbumInfo() {}
|
||||
AlbumInfo::AlbumInfo (
|
||||
bool isAutomated
|
||||
) :
|
||||
m_isAutomated(isAutomated) { }
|
||||
|
||||
|
||||
|
||||
AlbumInfo::AlbumInfo(const AlbumInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
AlbumInfoRemoteSearchQuery::AlbumInfoRemoteSearchQuery() {}
|
||||
AlbumInfoRemoteSearchQuery::AlbumInfoRemoteSearchQuery (
|
||||
QSharedPointer<AlbumInfo> searchInfo,
|
||||
QString itemId,
|
||||
bool includeDisabledProviders
|
||||
) :
|
||||
m_searchInfo(searchInfo),
|
||||
m_itemId(itemId),
|
||||
m_includeDisabledProviders(includeDisabledProviders) { }
|
||||
|
||||
|
||||
|
||||
AlbumInfoRemoteSearchQuery::AlbumInfoRemoteSearchQuery(const AlbumInfoRemoteSearchQuery &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
AllThemeMediaResult::AllThemeMediaResult() {}
|
||||
AllThemeMediaResult::AllThemeMediaResult (
|
||||
QSharedPointer<ThemeMediaResult> themeVideosResult,
|
||||
QSharedPointer<ThemeMediaResult> themeSongsResult,
|
||||
QSharedPointer<ThemeMediaResult> soundtrackSongsResult
|
||||
) :
|
||||
m_themeVideosResult(themeVideosResult),
|
||||
m_themeSongsResult(themeSongsResult),
|
||||
m_soundtrackSongsResult(soundtrackSongsResult) { }
|
||||
|
||||
|
||||
|
||||
AllThemeMediaResult::AllThemeMediaResult(const AllThemeMediaResult &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ArtistInfo::ArtistInfo() {}
|
||||
ArtistInfo::ArtistInfo (
|
||||
bool isAutomated
|
||||
) :
|
||||
m_isAutomated(isAutomated) { }
|
||||
|
||||
|
||||
|
||||
ArtistInfo::ArtistInfo(const ArtistInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ArtistInfoRemoteSearchQuery::ArtistInfoRemoteSearchQuery() {}
|
||||
ArtistInfoRemoteSearchQuery::ArtistInfoRemoteSearchQuery (
|
||||
QSharedPointer<ArtistInfo> searchInfo,
|
||||
QString itemId,
|
||||
bool includeDisabledProviders
|
||||
) :
|
||||
m_searchInfo(searchInfo),
|
||||
m_itemId(itemId),
|
||||
m_includeDisabledProviders(includeDisabledProviders) { }
|
||||
|
||||
|
||||
|
||||
ArtistInfoRemoteSearchQuery::ArtistInfoRemoteSearchQuery(const ArtistInfoRemoteSearchQuery &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,20 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
AuthenticationInfo::AuthenticationInfo() {}
|
||||
AuthenticationInfo::AuthenticationInfo (
|
||||
qint64 jellyfinId,
|
||||
QString userId,
|
||||
bool isActive,
|
||||
QDateTime dateCreated,
|
||||
QDateTime dateLastActivity
|
||||
) :
|
||||
m_jellyfinId(jellyfinId),
|
||||
m_userId(userId),
|
||||
m_isActive(isActive),
|
||||
m_dateCreated(dateCreated),
|
||||
m_dateLastActivity(dateLastActivity) { }
|
||||
|
||||
|
||||
|
||||
AuthenticationInfo::AuthenticationInfo(const AuthenticationInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
AuthenticationInfoQueryResult::AuthenticationInfoQueryResult() {}
|
||||
AuthenticationInfoQueryResult::AuthenticationInfoQueryResult (
|
||||
qint32 totalRecordCount,
|
||||
qint32 startIndex
|
||||
) :
|
||||
m_totalRecordCount(totalRecordCount),
|
||||
m_startIndex(startIndex) { }
|
||||
|
||||
|
||||
|
||||
AuthenticationInfoQueryResult::AuthenticationInfoQueryResult(const AuthenticationInfoQueryResult &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
AuthenticationResult::AuthenticationResult() {}
|
||||
AuthenticationResult::AuthenticationResult (
|
||||
QSharedPointer<UserDto> user,
|
||||
QSharedPointer<SessionInfo> sessionInfo
|
||||
) :
|
||||
m_user(user),
|
||||
m_sessionInfo(sessionInfo) { }
|
||||
|
||||
|
||||
|
||||
AuthenticationResult::AuthenticationResult(const AuthenticationResult &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,22 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
BaseItem::BaseItem() {}
|
||||
BaseItem::BaseItem (
|
||||
QDateTime dateLastSaved,
|
||||
bool isHD,
|
||||
bool isShortcut,
|
||||
qint32 width,
|
||||
qint32 height,
|
||||
bool supportsExternalTransfer
|
||||
) :
|
||||
m_dateLastSaved(dateLastSaved),
|
||||
m_isHD(isHD),
|
||||
m_isShortcut(isShortcut),
|
||||
m_width(width),
|
||||
m_height(height),
|
||||
m_supportsExternalTransfer(supportsExternalTransfer) { }
|
||||
|
||||
|
||||
|
||||
BaseItem::BaseItem(const BaseItem &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,32 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
BaseItemDto::BaseItemDto() {}
|
||||
BaseItemDto::BaseItemDto (
|
||||
QString jellyfinId,
|
||||
Video3DFormat video3DFormat,
|
||||
PlayAccess playAccess,
|
||||
QSharedPointer<UserItemDataDto> userData,
|
||||
VideoType videoType,
|
||||
LocationType locationType,
|
||||
IsoType isoType,
|
||||
ImageOrientation imageOrientation,
|
||||
ChannelType channelType,
|
||||
ProgramAudio audio,
|
||||
QSharedPointer<BaseItemDto> currentProgram
|
||||
) :
|
||||
m_jellyfinId(jellyfinId),
|
||||
m_video3DFormat(video3DFormat),
|
||||
m_playAccess(playAccess),
|
||||
m_userData(userData),
|
||||
m_videoType(videoType),
|
||||
m_locationType(locationType),
|
||||
m_isoType(isoType),
|
||||
m_imageOrientation(imageOrientation),
|
||||
m_channelType(channelType),
|
||||
m_audio(audio),
|
||||
m_currentProgram(currentProgram) { }
|
||||
|
||||
|
||||
|
||||
BaseItemDto::BaseItemDto(const BaseItemDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
BaseItemDtoQueryResult::BaseItemDtoQueryResult() {}
|
||||
BaseItemDtoQueryResult::BaseItemDtoQueryResult (
|
||||
qint32 totalRecordCount,
|
||||
qint32 startIndex
|
||||
) :
|
||||
m_totalRecordCount(totalRecordCount),
|
||||
m_startIndex(startIndex) { }
|
||||
|
||||
|
||||
|
||||
BaseItemDtoQueryResult::BaseItemDtoQueryResult(const BaseItemDtoQueryResult &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
BookInfo::BookInfo() {}
|
||||
BookInfo::BookInfo (
|
||||
bool isAutomated
|
||||
) :
|
||||
m_isAutomated(isAutomated) { }
|
||||
|
||||
|
||||
|
||||
BookInfo::BookInfo(const BookInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
BookInfoRemoteSearchQuery::BookInfoRemoteSearchQuery() {}
|
||||
BookInfoRemoteSearchQuery::BookInfoRemoteSearchQuery (
|
||||
QSharedPointer<BookInfo> searchInfo,
|
||||
QString itemId,
|
||||
bool includeDisabledProviders
|
||||
) :
|
||||
m_searchInfo(searchInfo),
|
||||
m_itemId(itemId),
|
||||
m_includeDisabledProviders(includeDisabledProviders) { }
|
||||
|
||||
|
||||
|
||||
BookInfoRemoteSearchQuery::BookInfoRemoteSearchQuery(const BookInfoRemoteSearchQuery &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
BoxSetInfo::BoxSetInfo() {}
|
||||
BoxSetInfo::BoxSetInfo (
|
||||
bool isAutomated
|
||||
) :
|
||||
m_isAutomated(isAutomated) { }
|
||||
|
||||
|
||||
|
||||
BoxSetInfo::BoxSetInfo(const BoxSetInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
BoxSetInfoRemoteSearchQuery::BoxSetInfoRemoteSearchQuery() {}
|
||||
BoxSetInfoRemoteSearchQuery::BoxSetInfoRemoteSearchQuery (
|
||||
QSharedPointer<BoxSetInfo> searchInfo,
|
||||
QString itemId,
|
||||
bool includeDisabledProviders
|
||||
) :
|
||||
m_searchInfo(searchInfo),
|
||||
m_itemId(itemId),
|
||||
m_includeDisabledProviders(includeDisabledProviders) { }
|
||||
|
||||
|
||||
|
||||
BoxSetInfoRemoteSearchQuery::BoxSetInfoRemoteSearchQuery(const BoxSetInfoRemoteSearchQuery &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,18 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
BufferRequestDto::BufferRequestDto() {}
|
||||
BufferRequestDto::BufferRequestDto (
|
||||
QDateTime when,
|
||||
qint64 positionTicks,
|
||||
bool isPlaying,
|
||||
QString playlistItemId
|
||||
) :
|
||||
m_when(when),
|
||||
m_positionTicks(positionTicks),
|
||||
m_isPlaying(isPlaying),
|
||||
m_playlistItemId(playlistItemId) { }
|
||||
|
||||
|
||||
|
||||
BufferRequestDto::BufferRequestDto(const BufferRequestDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,20 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ChannelFeatures::ChannelFeatures() {}
|
||||
ChannelFeatures::ChannelFeatures (
|
||||
bool canSearch,
|
||||
bool supportsSortOrderToggle,
|
||||
bool supportsLatestMedia,
|
||||
bool canFilter,
|
||||
bool supportsContentDownloading
|
||||
) :
|
||||
m_canSearch(canSearch),
|
||||
m_supportsSortOrderToggle(supportsSortOrderToggle),
|
||||
m_supportsLatestMedia(supportsLatestMedia),
|
||||
m_canFilter(canFilter),
|
||||
m_supportsContentDownloading(supportsContentDownloading) { }
|
||||
|
||||
|
||||
|
||||
ChannelFeatures::ChannelFeatures(const ChannelFeatures &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ChapterInfo::ChapterInfo() {}
|
||||
ChapterInfo::ChapterInfo (
|
||||
qint64 startPositionTicks,
|
||||
QDateTime imageDateModified
|
||||
) :
|
||||
m_startPositionTicks(startPositionTicks),
|
||||
m_imageDateModified(imageDateModified) { }
|
||||
|
||||
|
||||
|
||||
ChapterInfo::ChapterInfo(const ChapterInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,20 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ClientCapabilities::ClientCapabilities() {}
|
||||
ClientCapabilities::ClientCapabilities (
|
||||
bool supportsMediaControl,
|
||||
bool supportsContentUploading,
|
||||
bool supportsPersistentIdentifier,
|
||||
bool supportsSync,
|
||||
QSharedPointer<DeviceProfile> deviceProfile
|
||||
) :
|
||||
m_supportsMediaControl(supportsMediaControl),
|
||||
m_supportsContentUploading(supportsContentUploading),
|
||||
m_supportsPersistentIdentifier(supportsPersistentIdentifier),
|
||||
m_supportsSync(supportsSync),
|
||||
m_deviceProfile(deviceProfile) { }
|
||||
|
||||
|
||||
|
||||
ClientCapabilities::ClientCapabilities(const ClientCapabilities &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,20 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ClientCapabilitiesDto::ClientCapabilitiesDto() {}
|
||||
ClientCapabilitiesDto::ClientCapabilitiesDto (
|
||||
bool supportsMediaControl,
|
||||
bool supportsContentUploading,
|
||||
bool supportsPersistentIdentifier,
|
||||
bool supportsSync,
|
||||
QSharedPointer<DeviceProfile> deviceProfile
|
||||
) :
|
||||
m_supportsMediaControl(supportsMediaControl),
|
||||
m_supportsContentUploading(supportsContentUploading),
|
||||
m_supportsPersistentIdentifier(supportsPersistentIdentifier),
|
||||
m_supportsSync(supportsSync),
|
||||
m_deviceProfile(deviceProfile) { }
|
||||
|
||||
|
||||
|
||||
ClientCapabilitiesDto::ClientCapabilitiesDto(const ClientCapabilitiesDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
CodecProfile::CodecProfile() {}
|
||||
CodecProfile::CodecProfile (
|
||||
CodecType type
|
||||
) :
|
||||
m_type(type) { }
|
||||
|
||||
|
||||
|
||||
CodecProfile::CodecProfile(const CodecProfile &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
CollectionCreationResult::CollectionCreationResult() {}
|
||||
CollectionCreationResult::CollectionCreationResult (
|
||||
QString jellyfinId
|
||||
) :
|
||||
m_jellyfinId(jellyfinId) { }
|
||||
|
||||
|
||||
|
||||
CollectionCreationResult::CollectionCreationResult(const CollectionCreationResult &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ConfigurationPageInfo::ConfigurationPageInfo() {}
|
||||
ConfigurationPageInfo::ConfigurationPageInfo (
|
||||
bool enableInMainMenu,
|
||||
ConfigurationPageType configurationPageType
|
||||
) :
|
||||
m_enableInMainMenu(enableInMainMenu),
|
||||
m_configurationPageType(configurationPageType) { }
|
||||
|
||||
|
||||
|
||||
ConfigurationPageInfo::ConfigurationPageInfo(const ConfigurationPageInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ContainerProfile::ContainerProfile() {}
|
||||
ContainerProfile::ContainerProfile (
|
||||
DlnaProfileType type
|
||||
) :
|
||||
m_type(type) { }
|
||||
|
||||
|
||||
|
||||
ContainerProfile::ContainerProfile(const ContainerProfile &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ControlResponse::ControlResponse() {}
|
||||
ControlResponse::ControlResponse (
|
||||
bool isSuccessful
|
||||
) :
|
||||
m_isSuccessful(isSuccessful) { }
|
||||
|
||||
|
||||
|
||||
ControlResponse::ControlResponse(const ControlResponse &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
DeviceInfo::DeviceInfo() {}
|
||||
DeviceInfo::DeviceInfo (
|
||||
QString lastUserId,
|
||||
QDateTime dateLastActivity,
|
||||
QSharedPointer<ClientCapabilities> capabilities
|
||||
) :
|
||||
m_lastUserId(lastUserId),
|
||||
m_dateLastActivity(dateLastActivity),
|
||||
m_capabilities(capabilities) { }
|
||||
|
||||
|
||||
|
||||
DeviceInfo::DeviceInfo(const DeviceInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
DeviceInfoQueryResult::DeviceInfoQueryResult() {}
|
||||
DeviceInfoQueryResult::DeviceInfoQueryResult (
|
||||
qint32 totalRecordCount,
|
||||
qint32 startIndex
|
||||
) :
|
||||
m_totalRecordCount(totalRecordCount),
|
||||
m_startIndex(startIndex) { }
|
||||
|
||||
|
||||
|
||||
DeviceInfoQueryResult::DeviceInfoQueryResult(const DeviceInfoQueryResult &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,32 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
DeviceProfile::DeviceProfile() {}
|
||||
DeviceProfile::DeviceProfile (
|
||||
QSharedPointer<DeviceIdentification> identification,
|
||||
bool enableAlbumArtInDidl,
|
||||
bool enableSingleAlbumArtLimit,
|
||||
bool enableSingleSubtitleLimit,
|
||||
qint32 maxAlbumArtWidth,
|
||||
qint32 maxAlbumArtHeight,
|
||||
qint32 timelineOffsetSeconds,
|
||||
bool requiresPlainVideoItems,
|
||||
bool requiresPlainFolders,
|
||||
bool enableMSMediaReceiverRegistrar,
|
||||
bool ignoreTranscodeByteRangeRequests
|
||||
) :
|
||||
m_identification(identification),
|
||||
m_enableAlbumArtInDidl(enableAlbumArtInDidl),
|
||||
m_enableSingleAlbumArtLimit(enableSingleAlbumArtLimit),
|
||||
m_enableSingleSubtitleLimit(enableSingleSubtitleLimit),
|
||||
m_maxAlbumArtWidth(maxAlbumArtWidth),
|
||||
m_maxAlbumArtHeight(maxAlbumArtHeight),
|
||||
m_timelineOffsetSeconds(timelineOffsetSeconds),
|
||||
m_requiresPlainVideoItems(requiresPlainVideoItems),
|
||||
m_requiresPlainFolders(requiresPlainFolders),
|
||||
m_enableMSMediaReceiverRegistrar(enableMSMediaReceiverRegistrar),
|
||||
m_ignoreTranscodeByteRangeRequests(ignoreTranscodeByteRangeRequests) { }
|
||||
|
||||
|
||||
|
||||
DeviceProfile::DeviceProfile(const DeviceProfile &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
DeviceProfileInfo::DeviceProfileInfo() {}
|
||||
DeviceProfileInfo::DeviceProfileInfo (
|
||||
DeviceProfileType type
|
||||
) :
|
||||
m_type(type) { }
|
||||
|
||||
|
||||
|
||||
DeviceProfileInfo::DeviceProfileInfo(const DeviceProfileInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
DirectPlayProfile::DirectPlayProfile() {}
|
||||
DirectPlayProfile::DirectPlayProfile (
|
||||
DlnaProfileType type
|
||||
) :
|
||||
m_type(type) { }
|
||||
|
||||
|
||||
|
||||
DirectPlayProfile::DirectPlayProfile(const DirectPlayProfile &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,26 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
DisplayPreferencesDto::DisplayPreferencesDto() {}
|
||||
DisplayPreferencesDto::DisplayPreferencesDto (
|
||||
bool rememberIndexing,
|
||||
qint32 primaryImageHeight,
|
||||
qint32 primaryImageWidth,
|
||||
ScrollDirection scrollDirection,
|
||||
bool showBackdrop,
|
||||
bool rememberSorting,
|
||||
SortOrder sortOrder,
|
||||
bool showSidebar
|
||||
) :
|
||||
m_rememberIndexing(rememberIndexing),
|
||||
m_primaryImageHeight(primaryImageHeight),
|
||||
m_primaryImageWidth(primaryImageWidth),
|
||||
m_scrollDirection(scrollDirection),
|
||||
m_showBackdrop(showBackdrop),
|
||||
m_rememberSorting(rememberSorting),
|
||||
m_sortOrder(sortOrder),
|
||||
m_showSidebar(showSidebar) { }
|
||||
|
||||
|
||||
|
||||
DisplayPreferencesDto::DisplayPreferencesDto(const DisplayPreferencesDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
EndPointInfo::EndPointInfo() {}
|
||||
EndPointInfo::EndPointInfo (
|
||||
bool isLocal,
|
||||
bool isInNetwork
|
||||
) :
|
||||
m_isLocal(isLocal),
|
||||
m_isInNetwork(isInNetwork) { }
|
||||
|
||||
|
||||
|
||||
EndPointInfo::EndPointInfo(const EndPointInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ExternalIdInfo::ExternalIdInfo() {}
|
||||
ExternalIdInfo::ExternalIdInfo (
|
||||
ExternalIdMediaType type
|
||||
) :
|
||||
m_type(type) { }
|
||||
|
||||
|
||||
|
||||
ExternalIdInfo::ExternalIdInfo(const ExternalIdInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
FileSystemEntryInfo::FileSystemEntryInfo() {}
|
||||
FileSystemEntryInfo::FileSystemEntryInfo (
|
||||
FileSystemEntryType type
|
||||
) :
|
||||
m_type(type) { }
|
||||
|
||||
|
||||
|
||||
FileSystemEntryInfo::FileSystemEntryInfo(const FileSystemEntryInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
FontFile::FontFile() {}
|
||||
FontFile::FontFile (
|
||||
qint64 size,
|
||||
QDateTime dateCreated,
|
||||
QDateTime dateModified
|
||||
) :
|
||||
m_size(size),
|
||||
m_dateCreated(dateCreated),
|
||||
m_dateModified(dateModified) { }
|
||||
|
||||
|
||||
|
||||
FontFile::FontFile(const FontFile &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ForgotPasswordDto::ForgotPasswordDto() {}
|
||||
ForgotPasswordDto::ForgotPasswordDto (
|
||||
QString enteredUsername
|
||||
) :
|
||||
m_enteredUsername(enteredUsername) { }
|
||||
|
||||
|
||||
|
||||
ForgotPasswordDto::ForgotPasswordDto(const ForgotPasswordDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ForgotPasswordResult::ForgotPasswordResult() {}
|
||||
ForgotPasswordResult::ForgotPasswordResult (
|
||||
ForgotPasswordAction action
|
||||
) :
|
||||
m_action(action) { }
|
||||
|
||||
|
||||
|
||||
ForgotPasswordResult::ForgotPasswordResult(const ForgotPasswordResult &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
GeneralCommand::GeneralCommand() {}
|
||||
GeneralCommand::GeneralCommand (
|
||||
GeneralCommandType name,
|
||||
QString controllingUserId
|
||||
) :
|
||||
m_name(name),
|
||||
m_controllingUserId(controllingUserId) { }
|
||||
|
||||
|
||||
|
||||
GeneralCommand::GeneralCommand(const GeneralCommand &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
GetProgramsDto::GetProgramsDto() {}
|
||||
GetProgramsDto::GetProgramsDto (
|
||||
QString userId,
|
||||
bool enableTotalRecordCount,
|
||||
QString librarySeriesId
|
||||
) :
|
||||
m_userId(userId),
|
||||
m_enableTotalRecordCount(enableTotalRecordCount),
|
||||
m_librarySeriesId(librarySeriesId) { }
|
||||
|
||||
|
||||
|
||||
GetProgramsDto::GetProgramsDto(const GetProgramsDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
GroupInfoDto::GroupInfoDto() {}
|
||||
GroupInfoDto::GroupInfoDto (
|
||||
QString groupId,
|
||||
GroupStateType state,
|
||||
QDateTime lastUpdatedAt
|
||||
) :
|
||||
m_groupId(groupId),
|
||||
m_state(state),
|
||||
m_lastUpdatedAt(lastUpdatedAt) { }
|
||||
|
||||
|
||||
|
||||
GroupInfoDto::GroupInfoDto(const GroupInfoDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
GuideInfo::GuideInfo() {}
|
||||
GuideInfo::GuideInfo (
|
||||
QDateTime startDate,
|
||||
QDateTime endDate
|
||||
) :
|
||||
m_startDate(startDate),
|
||||
m_endDate(endDate) { }
|
||||
|
||||
|
||||
|
||||
GuideInfo::GuideInfo(const GuideInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
HttpHeaderInfo::HttpHeaderInfo() {}
|
||||
HttpHeaderInfo::HttpHeaderInfo (
|
||||
HeaderMatchType match
|
||||
) :
|
||||
m_match(match) { }
|
||||
|
||||
|
||||
|
||||
HttpHeaderInfo::HttpHeaderInfo(const HttpHeaderInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
IgnoreWaitRequestDto::IgnoreWaitRequestDto() {}
|
||||
IgnoreWaitRequestDto::IgnoreWaitRequestDto (
|
||||
bool ignoreWait
|
||||
) :
|
||||
m_ignoreWait(ignoreWait) { }
|
||||
|
||||
|
||||
|
||||
IgnoreWaitRequestDto::IgnoreWaitRequestDto(const IgnoreWaitRequestDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ImageByNameInfo::ImageByNameInfo() {}
|
||||
ImageByNameInfo::ImageByNameInfo (
|
||||
qint64 fileLength
|
||||
) :
|
||||
m_fileLength(fileLength) { }
|
||||
|
||||
|
||||
|
||||
ImageByNameInfo::ImageByNameInfo(const ImageByNameInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ImageInfo::ImageInfo() {}
|
||||
ImageInfo::ImageInfo (
|
||||
ImageType imageType,
|
||||
qint64 size
|
||||
) :
|
||||
m_imageType(imageType),
|
||||
m_size(size) { }
|
||||
|
||||
|
||||
|
||||
ImageInfo::ImageInfo(const ImageInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ImageOption::ImageOption() {}
|
||||
ImageOption::ImageOption (
|
||||
ImageType type,
|
||||
qint32 limit,
|
||||
qint32 minWidth
|
||||
) :
|
||||
m_type(type),
|
||||
m_limit(limit),
|
||||
m_minWidth(minWidth) { }
|
||||
|
||||
|
||||
|
||||
ImageOption::ImageOption(const ImageOption &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
InstallationInfo::InstallationInfo() {}
|
||||
InstallationInfo::InstallationInfo (
|
||||
QString guid,
|
||||
QSharedPointer<Version> version
|
||||
) :
|
||||
m_guid(guid),
|
||||
m_version(version) { }
|
||||
|
||||
|
||||
|
||||
InstallationInfo::InstallationInfo(const InstallationInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
IPlugin::IPlugin() {}
|
||||
IPlugin::IPlugin (
|
||||
QString jellyfinId,
|
||||
QSharedPointer<Version> version,
|
||||
bool canUninstall
|
||||
) :
|
||||
m_jellyfinId(jellyfinId),
|
||||
m_version(version),
|
||||
m_canUninstall(canUninstall) { }
|
||||
|
||||
|
||||
|
||||
IPlugin::IPlugin(const IPlugin &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,34 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ItemCounts::ItemCounts() {}
|
||||
ItemCounts::ItemCounts (
|
||||
qint32 movieCount,
|
||||
qint32 seriesCount,
|
||||
qint32 episodeCount,
|
||||
qint32 artistCount,
|
||||
qint32 programCount,
|
||||
qint32 trailerCount,
|
||||
qint32 songCount,
|
||||
qint32 albumCount,
|
||||
qint32 musicVideoCount,
|
||||
qint32 boxSetCount,
|
||||
qint32 bookCount,
|
||||
qint32 itemCount
|
||||
) :
|
||||
m_movieCount(movieCount),
|
||||
m_seriesCount(seriesCount),
|
||||
m_episodeCount(episodeCount),
|
||||
m_artistCount(artistCount),
|
||||
m_programCount(programCount),
|
||||
m_trailerCount(trailerCount),
|
||||
m_songCount(songCount),
|
||||
m_albumCount(albumCount),
|
||||
m_musicVideoCount(musicVideoCount),
|
||||
m_boxSetCount(boxSetCount),
|
||||
m_bookCount(bookCount),
|
||||
m_itemCount(itemCount) { }
|
||||
|
||||
|
||||
|
||||
ItemCounts::ItemCounts(const ItemCounts &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
JoinGroupRequestDto::JoinGroupRequestDto() {}
|
||||
JoinGroupRequestDto::JoinGroupRequestDto (
|
||||
QString groupId
|
||||
) :
|
||||
m_groupId(groupId) { }
|
||||
|
||||
|
||||
|
||||
JoinGroupRequestDto::JoinGroupRequestDto(const JoinGroupRequestDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
LibraryOptionInfoDto::LibraryOptionInfoDto() {}
|
||||
LibraryOptionInfoDto::LibraryOptionInfoDto (
|
||||
bool defaultEnabled
|
||||
) :
|
||||
m_defaultEnabled(defaultEnabled) { }
|
||||
|
||||
|
||||
|
||||
LibraryOptionInfoDto::LibraryOptionInfoDto(const LibraryOptionInfoDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,38 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
LibraryOptions::LibraryOptions() {}
|
||||
LibraryOptions::LibraryOptions (
|
||||
bool enablePhotos,
|
||||
bool enableRealtimeMonitor,
|
||||
bool enableChapterImageExtraction,
|
||||
bool extractChapterImagesDuringLibraryScan,
|
||||
bool saveLocalMetadata,
|
||||
bool enableInternetProviders,
|
||||
bool enableAutomaticSeriesGrouping,
|
||||
bool enableEmbeddedTitles,
|
||||
bool enableEmbeddedEpisodeInfos,
|
||||
qint32 automaticRefreshIntervalDays,
|
||||
bool skipSubtitlesIfEmbeddedSubtitlesPresent,
|
||||
bool skipSubtitlesIfAudioTrackMatches,
|
||||
bool requirePerfectSubtitleMatch,
|
||||
bool saveSubtitlesWithMedia
|
||||
) :
|
||||
m_enablePhotos(enablePhotos),
|
||||
m_enableRealtimeMonitor(enableRealtimeMonitor),
|
||||
m_enableChapterImageExtraction(enableChapterImageExtraction),
|
||||
m_extractChapterImagesDuringLibraryScan(extractChapterImagesDuringLibraryScan),
|
||||
m_saveLocalMetadata(saveLocalMetadata),
|
||||
m_enableInternetProviders(enableInternetProviders),
|
||||
m_enableAutomaticSeriesGrouping(enableAutomaticSeriesGrouping),
|
||||
m_enableEmbeddedTitles(enableEmbeddedTitles),
|
||||
m_enableEmbeddedEpisodeInfos(enableEmbeddedEpisodeInfos),
|
||||
m_automaticRefreshIntervalDays(automaticRefreshIntervalDays),
|
||||
m_skipSubtitlesIfEmbeddedSubtitlesPresent(skipSubtitlesIfEmbeddedSubtitlesPresent),
|
||||
m_skipSubtitlesIfAudioTrackMatches(skipSubtitlesIfAudioTrackMatches),
|
||||
m_requirePerfectSubtitleMatch(requirePerfectSubtitleMatch),
|
||||
m_saveSubtitlesWithMedia(saveSubtitlesWithMedia) { }
|
||||
|
||||
|
||||
|
||||
LibraryOptions::LibraryOptions(const LibraryOptions &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
LibraryUpdateInfo::LibraryUpdateInfo() {}
|
||||
LibraryUpdateInfo::LibraryUpdateInfo (
|
||||
bool isEmpty
|
||||
) :
|
||||
m_isEmpty(isEmpty) { }
|
||||
|
||||
|
||||
|
||||
LibraryUpdateInfo::LibraryUpdateInfo(const LibraryUpdateInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ListingsProviderInfo::ListingsProviderInfo() {}
|
||||
ListingsProviderInfo::ListingsProviderInfo (
|
||||
bool enableAllTuners
|
||||
) :
|
||||
m_enableAllTuners(enableAllTuners) { }
|
||||
|
||||
|
||||
|
||||
ListingsProviderInfo::ListingsProviderInfo(const ListingsProviderInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
LiveStreamResponse::LiveStreamResponse() {}
|
||||
LiveStreamResponse::LiveStreamResponse (
|
||||
QSharedPointer<MediaSourceInfo> mediaSource
|
||||
) :
|
||||
m_mediaSource(mediaSource) { }
|
||||
|
||||
|
||||
|
||||
LiveStreamResponse::LiveStreamResponse(const LiveStreamResponse &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
LiveTvInfo::LiveTvInfo() {}
|
||||
LiveTvInfo::LiveTvInfo (
|
||||
bool isEnabled
|
||||
) :
|
||||
m_isEnabled(isEnabled) { }
|
||||
|
||||
|
||||
|
||||
LiveTvInfo::LiveTvInfo(const LiveTvInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
LiveTvServiceInfo::LiveTvServiceInfo() {}
|
||||
LiveTvServiceInfo::LiveTvServiceInfo (
|
||||
LiveTvServiceStatus status,
|
||||
bool hasUpdateAvailable,
|
||||
bool isVisible
|
||||
) :
|
||||
m_status(status),
|
||||
m_hasUpdateAvailable(hasUpdateAvailable),
|
||||
m_isVisible(isVisible) { }
|
||||
|
||||
|
||||
|
||||
LiveTvServiceInfo::LiveTvServiceInfo(const LiveTvServiceInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
LogFile::LogFile() {}
|
||||
LogFile::LogFile (
|
||||
QDateTime dateCreated,
|
||||
QDateTime dateModified,
|
||||
qint64 size
|
||||
) :
|
||||
m_dateCreated(dateCreated),
|
||||
m_dateModified(dateModified),
|
||||
m_size(size) { }
|
||||
|
||||
|
||||
|
||||
LogFile::LogFile(const LogFile &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
MediaAttachment::MediaAttachment() {}
|
||||
MediaAttachment::MediaAttachment (
|
||||
qint32 index
|
||||
) :
|
||||
m_index(index) { }
|
||||
|
||||
|
||||
|
||||
MediaAttachment::MediaAttachment(const MediaAttachment &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
MediaPathDto::MediaPathDto() {}
|
||||
MediaPathDto::MediaPathDto (
|
||||
QString name,
|
||||
QSharedPointer<MediaPathInfo> pathInfo
|
||||
) :
|
||||
m_name(name),
|
||||
m_pathInfo(pathInfo) { }
|
||||
|
||||
|
||||
|
||||
MediaPathDto::MediaPathDto(const MediaPathDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,50 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
MediaSourceInfo::MediaSourceInfo() {}
|
||||
MediaSourceInfo::MediaSourceInfo (
|
||||
MediaProtocol protocol,
|
||||
MediaProtocol encoderProtocol,
|
||||
MediaSourceType type,
|
||||
bool isRemote,
|
||||
bool readAtNativeFramerate,
|
||||
bool ignoreDts,
|
||||
bool ignoreIndex,
|
||||
bool genPtsInput,
|
||||
bool supportsTranscoding,
|
||||
bool supportsDirectStream,
|
||||
bool supportsDirectPlay,
|
||||
bool isInfiniteStream,
|
||||
bool requiresOpening,
|
||||
bool requiresClosing,
|
||||
bool requiresLooping,
|
||||
bool supportsProbing,
|
||||
VideoType videoType,
|
||||
IsoType isoType,
|
||||
Video3DFormat video3DFormat,
|
||||
TransportStreamTimestamp timestamp
|
||||
) :
|
||||
m_protocol(protocol),
|
||||
m_encoderProtocol(encoderProtocol),
|
||||
m_type(type),
|
||||
m_isRemote(isRemote),
|
||||
m_readAtNativeFramerate(readAtNativeFramerate),
|
||||
m_ignoreDts(ignoreDts),
|
||||
m_ignoreIndex(ignoreIndex),
|
||||
m_genPtsInput(genPtsInput),
|
||||
m_supportsTranscoding(supportsTranscoding),
|
||||
m_supportsDirectStream(supportsDirectStream),
|
||||
m_supportsDirectPlay(supportsDirectPlay),
|
||||
m_isInfiniteStream(isInfiniteStream),
|
||||
m_requiresOpening(requiresOpening),
|
||||
m_requiresClosing(requiresClosing),
|
||||
m_requiresLooping(requiresLooping),
|
||||
m_supportsProbing(supportsProbing),
|
||||
m_videoType(videoType),
|
||||
m_isoType(isoType),
|
||||
m_video3DFormat(video3DFormat),
|
||||
m_timestamp(timestamp) { }
|
||||
|
||||
|
||||
|
||||
MediaSourceInfo::MediaSourceInfo(const MediaSourceInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,28 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
MediaStream::MediaStream() {}
|
||||
MediaStream::MediaStream (
|
||||
bool isInterlaced,
|
||||
bool isDefault,
|
||||
bool isForced,
|
||||
MediaStreamType type,
|
||||
qint32 index,
|
||||
bool isExternal,
|
||||
SubtitleDeliveryMethod deliveryMethod,
|
||||
bool isTextSubtitleStream,
|
||||
bool supportsExternalStream
|
||||
) :
|
||||
m_isInterlaced(isInterlaced),
|
||||
m_isDefault(isDefault),
|
||||
m_isForced(isForced),
|
||||
m_type(type),
|
||||
m_index(index),
|
||||
m_isExternal(isExternal),
|
||||
m_deliveryMethod(deliveryMethod),
|
||||
m_isTextSubtitleStream(isTextSubtitleStream),
|
||||
m_supportsExternalStream(supportsExternalStream) { }
|
||||
|
||||
|
||||
|
||||
MediaStream::MediaStream(const MediaStream &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
MovePlaylistItemRequestDto::MovePlaylistItemRequestDto() {}
|
||||
MovePlaylistItemRequestDto::MovePlaylistItemRequestDto (
|
||||
QString playlistItemId,
|
||||
qint32 newIndex
|
||||
) :
|
||||
m_playlistItemId(playlistItemId),
|
||||
m_newIndex(newIndex) { }
|
||||
|
||||
|
||||
|
||||
MovePlaylistItemRequestDto::MovePlaylistItemRequestDto(const MovePlaylistItemRequestDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
MovieInfo::MovieInfo() {}
|
||||
MovieInfo::MovieInfo (
|
||||
bool isAutomated
|
||||
) :
|
||||
m_isAutomated(isAutomated) { }
|
||||
|
||||
|
||||
|
||||
MovieInfo::MovieInfo(const MovieInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
MovieInfoRemoteSearchQuery::MovieInfoRemoteSearchQuery() {}
|
||||
MovieInfoRemoteSearchQuery::MovieInfoRemoteSearchQuery (
|
||||
QSharedPointer<MovieInfo> searchInfo,
|
||||
QString itemId,
|
||||
bool includeDisabledProviders
|
||||
) :
|
||||
m_searchInfo(searchInfo),
|
||||
m_itemId(itemId),
|
||||
m_includeDisabledProviders(includeDisabledProviders) { }
|
||||
|
||||
|
||||
|
||||
MovieInfoRemoteSearchQuery::MovieInfoRemoteSearchQuery(const MovieInfoRemoteSearchQuery &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
MusicVideoInfo::MusicVideoInfo() {}
|
||||
MusicVideoInfo::MusicVideoInfo (
|
||||
bool isAutomated
|
||||
) :
|
||||
m_isAutomated(isAutomated) { }
|
||||
|
||||
|
||||
|
||||
MusicVideoInfo::MusicVideoInfo(const MusicVideoInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
MusicVideoInfoRemoteSearchQuery::MusicVideoInfoRemoteSearchQuery() {}
|
||||
MusicVideoInfoRemoteSearchQuery::MusicVideoInfoRemoteSearchQuery (
|
||||
QSharedPointer<MusicVideoInfo> searchInfo,
|
||||
QString itemId,
|
||||
bool includeDisabledProviders
|
||||
) :
|
||||
m_searchInfo(searchInfo),
|
||||
m_itemId(itemId),
|
||||
m_includeDisabledProviders(includeDisabledProviders) { }
|
||||
|
||||
|
||||
|
||||
MusicVideoInfoRemoteSearchQuery::MusicVideoInfoRemoteSearchQuery(const MusicVideoInfoRemoteSearchQuery &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
NameGuidPair::NameGuidPair() {}
|
||||
NameGuidPair::NameGuidPair (
|
||||
QString jellyfinId
|
||||
) :
|
||||
m_jellyfinId(jellyfinId) { }
|
||||
|
||||
|
||||
|
||||
NameGuidPair::NameGuidPair(const NameGuidPair &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
NextItemRequestDto::NextItemRequestDto() {}
|
||||
NextItemRequestDto::NextItemRequestDto (
|
||||
QString playlistItemId
|
||||
) :
|
||||
m_playlistItemId(playlistItemId) { }
|
||||
|
||||
|
||||
|
||||
NextItemRequestDto::NextItemRequestDto(const NextItemRequestDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
NotificationDto::NotificationDto() {}
|
||||
NotificationDto::NotificationDto (
|
||||
QDateTime date,
|
||||
bool isRead,
|
||||
NotificationLevel level
|
||||
) :
|
||||
m_date(date),
|
||||
m_isRead(isRead),
|
||||
m_level(level) { }
|
||||
|
||||
|
||||
|
||||
NotificationDto::NotificationDto(const NotificationDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
NotificationResultDto::NotificationResultDto() {}
|
||||
NotificationResultDto::NotificationResultDto (
|
||||
qint32 totalRecordCount
|
||||
) :
|
||||
m_totalRecordCount(totalRecordCount) { }
|
||||
|
||||
|
||||
|
||||
NotificationResultDto::NotificationResultDto(const NotificationResultDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
NotificationsSummaryDto::NotificationsSummaryDto() {}
|
||||
NotificationsSummaryDto::NotificationsSummaryDto (
|
||||
qint32 unreadCount,
|
||||
NotificationLevel maxUnreadNotificationLevel
|
||||
) :
|
||||
m_unreadCount(unreadCount),
|
||||
m_maxUnreadNotificationLevel(maxUnreadNotificationLevel) { }
|
||||
|
||||
|
||||
|
||||
NotificationsSummaryDto::NotificationsSummaryDto(const NotificationsSummaryDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
NotificationTypeInfo::NotificationTypeInfo() {}
|
||||
NotificationTypeInfo::NotificationTypeInfo (
|
||||
bool enabled,
|
||||
bool isBasedOnUserEvent
|
||||
) :
|
||||
m_enabled(enabled),
|
||||
m_isBasedOnUserEvent(isBasedOnUserEvent) { }
|
||||
|
||||
|
||||
|
||||
NotificationTypeInfo::NotificationTypeInfo(const NotificationTypeInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ObjectGroupUpdate::ObjectGroupUpdate() {}
|
||||
ObjectGroupUpdate::ObjectGroupUpdate (
|
||||
QString groupId,
|
||||
GroupUpdateType type,
|
||||
QVariant data
|
||||
) :
|
||||
m_groupId(groupId),
|
||||
m_type(type),
|
||||
m_data(data) { }
|
||||
|
||||
|
||||
|
||||
ObjectGroupUpdate::ObjectGroupUpdate(const ObjectGroupUpdate &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
OpenLiveStreamDto::OpenLiveStreamDto() {}
|
||||
OpenLiveStreamDto::OpenLiveStreamDto (
|
||||
QSharedPointer<DeviceProfile> deviceProfile
|
||||
) :
|
||||
m_deviceProfile(deviceProfile) { }
|
||||
|
||||
|
||||
|
||||
OpenLiveStreamDto::OpenLiveStreamDto(const OpenLiveStreamDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ParentalRating::ParentalRating() {}
|
||||
ParentalRating::ParentalRating (
|
||||
qint32 value
|
||||
) :
|
||||
m_value(value) { }
|
||||
|
||||
|
||||
|
||||
ParentalRating::ParentalRating(const ParentalRating &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PersonLookupInfo::PersonLookupInfo() {}
|
||||
PersonLookupInfo::PersonLookupInfo (
|
||||
bool isAutomated
|
||||
) :
|
||||
m_isAutomated(isAutomated) { }
|
||||
|
||||
|
||||
|
||||
PersonLookupInfo::PersonLookupInfo(const PersonLookupInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PersonLookupInfoRemoteSearchQuery::PersonLookupInfoRemoteSearchQuery() {}
|
||||
PersonLookupInfoRemoteSearchQuery::PersonLookupInfoRemoteSearchQuery (
|
||||
QSharedPointer<PersonLookupInfo> searchInfo,
|
||||
QString itemId,
|
||||
bool includeDisabledProviders
|
||||
) :
|
||||
m_searchInfo(searchInfo),
|
||||
m_itemId(itemId),
|
||||
m_includeDisabledProviders(includeDisabledProviders) { }
|
||||
|
||||
|
||||
|
||||
PersonLookupInfoRemoteSearchQuery::PersonLookupInfoRemoteSearchQuery(const PersonLookupInfoRemoteSearchQuery &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PingRequestDto::PingRequestDto() {}
|
||||
PingRequestDto::PingRequestDto (
|
||||
qint64 ping
|
||||
) :
|
||||
m_ping(ping) { }
|
||||
|
||||
|
||||
|
||||
PingRequestDto::PingRequestDto(const PingRequestDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PinRedeemResult::PinRedeemResult() {}
|
||||
PinRedeemResult::PinRedeemResult (
|
||||
bool success
|
||||
) :
|
||||
m_success(success) { }
|
||||
|
||||
|
||||
|
||||
PinRedeemResult::PinRedeemResult(const PinRedeemResult &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PlaybackInfoDto::PlaybackInfoDto() {}
|
||||
PlaybackInfoDto::PlaybackInfoDto (
|
||||
QSharedPointer<DeviceProfile> deviceProfile
|
||||
) :
|
||||
m_deviceProfile(deviceProfile) { }
|
||||
|
||||
|
||||
|
||||
PlaybackInfoDto::PlaybackInfoDto(const PlaybackInfoDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PlaybackInfoResponse::PlaybackInfoResponse() {}
|
||||
PlaybackInfoResponse::PlaybackInfoResponse (
|
||||
PlaybackErrorCode errorCode
|
||||
) :
|
||||
m_errorCode(errorCode) { }
|
||||
|
||||
|
||||
|
||||
PlaybackInfoResponse::PlaybackInfoResponse(const PlaybackInfoResponse &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,24 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PlaybackProgressInfo::PlaybackProgressInfo() {}
|
||||
PlaybackProgressInfo::PlaybackProgressInfo (
|
||||
bool canSeek,
|
||||
QSharedPointer<BaseItemDto> item,
|
||||
QString itemId,
|
||||
bool isPaused,
|
||||
bool isMuted,
|
||||
PlayMethod playMethod,
|
||||
RepeatMode repeatMode
|
||||
) :
|
||||
m_canSeek(canSeek),
|
||||
m_item(item),
|
||||
m_itemId(itemId),
|
||||
m_isPaused(isPaused),
|
||||
m_isMuted(isMuted),
|
||||
m_playMethod(playMethod),
|
||||
m_repeatMode(repeatMode) { }
|
||||
|
||||
|
||||
|
||||
PlaybackProgressInfo::PlaybackProgressInfo(const PlaybackProgressInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,24 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PlaybackStartInfo::PlaybackStartInfo() {}
|
||||
PlaybackStartInfo::PlaybackStartInfo (
|
||||
bool canSeek,
|
||||
QSharedPointer<BaseItemDto> item,
|
||||
QString itemId,
|
||||
bool isPaused,
|
||||
bool isMuted,
|
||||
PlayMethod playMethod,
|
||||
RepeatMode repeatMode
|
||||
) :
|
||||
m_canSeek(canSeek),
|
||||
m_item(item),
|
||||
m_itemId(itemId),
|
||||
m_isPaused(isPaused),
|
||||
m_isMuted(isMuted),
|
||||
m_playMethod(playMethod),
|
||||
m_repeatMode(repeatMode) { }
|
||||
|
||||
|
||||
|
||||
PlaybackStartInfo::PlaybackStartInfo(const PlaybackStartInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PlaybackStopInfo::PlaybackStopInfo() {}
|
||||
PlaybackStopInfo::PlaybackStopInfo (
|
||||
QSharedPointer<BaseItemDto> item,
|
||||
QString itemId,
|
||||
bool failed
|
||||
) :
|
||||
m_item(item),
|
||||
m_itemId(itemId),
|
||||
m_failed(failed) { }
|
||||
|
||||
|
||||
|
||||
PlaybackStopInfo::PlaybackStopInfo(const PlaybackStopInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,20 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PlayerStateInfo::PlayerStateInfo() {}
|
||||
PlayerStateInfo::PlayerStateInfo (
|
||||
bool canSeek,
|
||||
bool isPaused,
|
||||
bool isMuted,
|
||||
PlayMethod playMethod,
|
||||
RepeatMode repeatMode
|
||||
) :
|
||||
m_canSeek(canSeek),
|
||||
m_isPaused(isPaused),
|
||||
m_isMuted(isMuted),
|
||||
m_playMethod(playMethod),
|
||||
m_repeatMode(repeatMode) { }
|
||||
|
||||
|
||||
|
||||
PlayerStateInfo::PlayerStateInfo(const PlayerStateInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PlayRequest::PlayRequest() {}
|
||||
PlayRequest::PlayRequest (
|
||||
PlayCommand playCommand,
|
||||
QString controllingUserId
|
||||
) :
|
||||
m_playCommand(playCommand),
|
||||
m_controllingUserId(controllingUserId) { }
|
||||
|
||||
|
||||
|
||||
PlayRequest::PlayRequest(const PlayRequest &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,14 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PlayRequestDto::PlayRequestDto() {}
|
||||
PlayRequestDto::PlayRequestDto (
|
||||
qint32 playingItemPosition,
|
||||
qint64 startPositionTicks
|
||||
) :
|
||||
m_playingItemPosition(playingItemPosition),
|
||||
m_startPositionTicks(startPositionTicks) { }
|
||||
|
||||
|
||||
|
||||
PlayRequestDto::PlayRequestDto(const PlayRequestDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PlaystateRequest::PlaystateRequest() {}
|
||||
PlaystateRequest::PlaystateRequest (
|
||||
PlaystateCommand command
|
||||
) :
|
||||
m_command(command) { }
|
||||
|
||||
|
||||
|
||||
PlaystateRequest::PlaystateRequest(const PlaystateRequest &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,20 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PluginInfo::PluginInfo() {}
|
||||
PluginInfo::PluginInfo (
|
||||
QSharedPointer<Version> version,
|
||||
QString jellyfinId,
|
||||
bool canUninstall,
|
||||
bool hasImage,
|
||||
PluginStatus status
|
||||
) :
|
||||
m_version(version),
|
||||
m_jellyfinId(jellyfinId),
|
||||
m_canUninstall(canUninstall),
|
||||
m_hasImage(hasImage),
|
||||
m_status(status) { }
|
||||
|
||||
|
||||
|
||||
PluginInfo::PluginInfo(const PluginInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PluginSecurityInfo::PluginSecurityInfo() {}
|
||||
PluginSecurityInfo::PluginSecurityInfo (
|
||||
bool isMbSupporter
|
||||
) :
|
||||
m_isMbSupporter(isMbSupporter) { }
|
||||
|
||||
|
||||
|
||||
PluginSecurityInfo::PluginSecurityInfo(const PluginSecurityInfo &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
PreviousItemRequestDto::PreviousItemRequestDto() {}
|
||||
PreviousItemRequestDto::PreviousItemRequestDto (
|
||||
QString playlistItemId
|
||||
) :
|
||||
m_playlistItemId(playlistItemId) { }
|
||||
|
||||
|
||||
|
||||
PreviousItemRequestDto::PreviousItemRequestDto(const PreviousItemRequestDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,16 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
ProfileCondition::ProfileCondition() {}
|
||||
ProfileCondition::ProfileCondition (
|
||||
ProfileConditionType condition,
|
||||
ProfileConditionValue property,
|
||||
bool isRequired
|
||||
) :
|
||||
m_condition(condition),
|
||||
m_property(property),
|
||||
m_isRequired(isRequired) { }
|
||||
|
||||
|
||||
|
||||
ProfileCondition::ProfileCondition(const ProfileCondition &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
QueueItem::QueueItem() {}
|
||||
QueueItem::QueueItem (
|
||||
QString jellyfinId
|
||||
) :
|
||||
m_jellyfinId(jellyfinId) { }
|
||||
|
||||
|
||||
|
||||
QueueItem::QueueItem(const QueueItem &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
QueueRequestDto::QueueRequestDto() {}
|
||||
QueueRequestDto::QueueRequestDto (
|
||||
GroupQueueMode mode
|
||||
) :
|
||||
m_mode(mode) { }
|
||||
|
||||
|
||||
|
||||
QueueRequestDto::QueueRequestDto(const QueueRequestDto &other) :
|
||||
|
||||
|
|
|
@ -33,6 +33,12 @@ namespace Jellyfin {
|
|||
namespace DTO {
|
||||
|
||||
QuickConnectDto::QuickConnectDto() {}
|
||||
QuickConnectDto::QuickConnectDto (
|
||||
QString token
|
||||
) :
|
||||
m_token(token) { }
|
||||
|
||||
|
||||
|
||||
QuickConnectDto::QuickConnectDto(const QuickConnectDto &other) :
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue