swiftformat lint

This commit is contained in:
Ethan Pippin 2022-08-08 14:29:07 -06:00
parent 0f87185399
commit 251471840a
695 changed files with 10396 additions and 2628 deletions

46
.swiftformat Normal file
View File

@ -0,0 +1,46 @@
# version: 0.49.11
--swiftversion 5.5
--tabwidth 4
--xcodeindentation enabled
--semicolons never
--stripunusedargs closure-only
--maxwidth 140
--assetliterals visual-width
--wraparguments before-first
--wrapparameters before-first
--wrapcollections before-first
--wrapconditions after-first
--funcattributes prev-line
--typeattributes prev-line
--varattributes prev-line
--trailingclosures
--shortoptionals "always"
--enable isEmpty, \
leadingDelimiters, \
wrapEnumCases, \
typeSugar, \
void, \
trailingSpace, \
spaceInsideParens, \
spaceInsideGenerics, \
spaceInsideComments, \
spaceInsideBrackets, \
spaceInsideBraces, \
blankLinesAroundMark, \
redundantLet, \
redundantInit, \
blankLinesAroundMark
--disable strongOutlets, \
yodaConditions, \
blankLinesAtStartOfScope,\
andOperator, \
redundantFileprivate, \
redundantSelf, \
redundantClosure, \
redundantType
--header "\nSwiftfin is subject to the terms of the Mozilla Public\nLicense, v2.0. If a copy of the MPL was not distributed with this\nfile, you can obtain one at https://mozilla.org/MPL/2.0/.\n\nCopyright (c) {year} Jellyfin & Jellyfin Contributors\n"

View File

@ -11,12 +11,12 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/kean/Get", from: "1.0.2"),
.package(url: "https://github.com/CreateAPI/URLQueryEncoder", from: "0.2.0")
.package(url: "https://github.com/CreateAPI/URLQueryEncoder", from: "0.2.0"),
],
targets: [
.target(name: "JellyfinAPI", dependencies: [
.product(name: "Get", package: "Get"),
.product(name: "URLQueryEncoder", package: "URLQueryEncoder")
], path: "Sources")
.product(name: "URLQueryEncoder", package: "URLQueryEncoder"),
], path: "Sources"),
]
)

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -12,11 +17,11 @@ public enum AnyJSON: Equatable, Codable {
var value: Any {
switch self {
case .string(let string): return string
case .number(let double): return double
case .object(let dictionary): return dictionary
case .array(let array): return array
case .bool(let bool): return bool
case let .string(string): return string
case let .number(double): return double
case let .object(dictionary): return dictionary
case let .array(array): return array
case let .bool(bool): return bool
}
}

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -28,7 +33,18 @@ public struct ActivityLogEntry: Codable, Identifiable {
/// - warning: Deprecated.
public var userPrimaryImageTag: String?
public init(date: Date? = nil, id: Int? = nil, itemID: String? = nil, name: String? = nil, overview: String? = nil, severity: LogLevel? = nil, shortOverview: String? = nil, type: String? = nil, userID: UUID? = nil, userPrimaryImageTag: String? = nil) {
public init(
date: Date? = nil,
id: Int? = nil,
itemID: String? = nil,
name: String? = nil,
overview: String? = nil,
severity: LogLevel? = nil,
shortOverview: String? = nil,
type: String? = nil,
userID: UUID? = nil,
userPrimaryImageTag: String? = nil
) {
self.date = date
self.id = id
self.itemID = itemID

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -28,7 +33,22 @@ public struct AlbumInfo: Codable {
/// Gets or sets the year.
public var year: Int?
public init(albumArtists: [String]? = nil, artistProviderIDs: [String: String]? = nil, indexNumber: Int? = nil, isAutomated: Bool? = nil, metadataCountryCode: String? = nil, metadataLanguage: String? = nil, name: String? = nil, originalTitle: String? = nil, parentIndexNumber: Int? = nil, path: String? = nil, premiereDate: Date? = nil, providerIDs: [String: String]? = nil, songInfos: [SongInfo]? = nil, year: Int? = nil) {
public init(
albumArtists: [String]? = nil,
artistProviderIDs: [String: String]? = nil,
indexNumber: Int? = nil,
isAutomated: Bool? = nil,
metadataCountryCode: String? = nil,
metadataLanguage: String? = nil,
name: String? = nil,
originalTitle: String? = nil,
parentIndexNumber: Int? = nil,
path: String? = nil,
premiereDate: Date? = nil,
providerIDs: [String: String]? = nil,
songInfos: [SongInfo]? = nil,
year: Int? = nil
) {
self.albumArtists = albumArtists
self.artistProviderIDs = artistProviderIDs
self.indexNumber = indexNumber

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -11,7 +16,12 @@ public struct AlbumInfoRemoteSearchQuery: Codable {
/// Gets or sets the provider name to search within if set.
public var searchProviderName: String?
public init(isIncludeDisabledProviders: Bool? = nil, itemID: UUID? = nil, searchInfo: AlbumInfo? = nil, searchProviderName: String? = nil) {
public init(
isIncludeDisabledProviders: Bool? = nil,
itemID: UUID? = nil,
searchInfo: AlbumInfo? = nil,
searchProviderName: String? = nil
) {
self.isIncludeDisabledProviders = isIncludeDisabledProviders
self.itemID = itemID
self.searchInfo = searchInfo

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -11,7 +16,11 @@ public struct AllThemeMediaResult: Codable {
/// Class ThemeMediaResult.
public var themeVideosResult: ThemeMediaResult?
public init(soundtrackSongsResult: ThemeMediaResult? = nil, themeSongsResult: ThemeMediaResult? = nil, themeVideosResult: ThemeMediaResult? = nil) {
public init(
soundtrackSongsResult: ThemeMediaResult? = nil,
themeSongsResult: ThemeMediaResult? = nil,
themeVideosResult: ThemeMediaResult? = nil
) {
self.soundtrackSongsResult = soundtrackSongsResult
self.themeSongsResult = themeSongsResult
self.themeVideosResult = themeVideosResult

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -24,7 +29,20 @@ public struct ArtistInfo: Codable {
/// Gets or sets the year.
public var year: Int?
public init(indexNumber: Int? = nil, isAutomated: Bool? = nil, metadataCountryCode: String? = nil, metadataLanguage: String? = nil, name: String? = nil, originalTitle: String? = nil, parentIndexNumber: Int? = nil, path: String? = nil, premiereDate: Date? = nil, providerIDs: [String: String]? = nil, songInfos: [SongInfo]? = nil, year: Int? = nil) {
public init(
indexNumber: Int? = nil,
isAutomated: Bool? = nil,
metadataCountryCode: String? = nil,
metadataLanguage: String? = nil,
name: String? = nil,
originalTitle: String? = nil,
parentIndexNumber: Int? = nil,
path: String? = nil,
premiereDate: Date? = nil,
providerIDs: [String: String]? = nil,
songInfos: [SongInfo]? = nil,
year: Int? = nil
) {
self.indexNumber = indexNumber
self.isAutomated = isAutomated
self.metadataCountryCode = metadataCountryCode

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -11,7 +16,12 @@ public struct ArtistInfoRemoteSearchQuery: Codable {
/// Gets or sets the provider name to search within if set.
public var searchProviderName: String?
public init(isIncludeDisabledProviders: Bool? = nil, itemID: UUID? = nil, searchInfo: ArtistInfo? = nil, searchProviderName: String? = nil) {
public init(
isIncludeDisabledProviders: Bool? = nil,
itemID: UUID? = nil,
searchInfo: ArtistInfo? = nil,
searchProviderName: String? = nil
) {
self.isIncludeDisabledProviders = isIncludeDisabledProviders
self.itemID = itemID
self.searchInfo = searchInfo

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -27,7 +32,20 @@ public struct AuthenticationInfo: Codable, Identifiable {
public var userID: UUID?
public var userName: String?
public init(accessToken: String? = nil, appName: String? = nil, appVersion: String? = nil, dateCreated: Date? = nil, dateLastActivity: Date? = nil, dateRevoked: Date? = nil, deviceID: String? = nil, deviceName: String? = nil, id: Int? = nil, isActive: Bool? = nil, userID: UUID? = nil, userName: String? = nil) {
public init(
accessToken: String? = nil,
appName: String? = nil,
appVersion: String? = nil,
dateCreated: Date? = nil,
dateLastActivity: Date? = nil,
dateRevoked: Date? = nil,
deviceID: String? = nil,
deviceName: String? = nil,
id: Int? = nil,
isActive: Bool? = nil,
userID: UUID? = nil,
userName: String? = nil
) {
self.accessToken = accessToken
self.appName = appName
self.appVersion = appVersion

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -18,7 +23,19 @@ public struct BaseItem: Codable {
public var isSupportsExternalTransfer: Bool?
public var width: Int?
public init(container: String? = nil, dateLastSaved: Date? = nil, extraIDs: [UUID]? = nil, height: Int? = nil, isHD: Bool? = nil, isShortcut: Bool? = nil, remoteTrailers: [MediaURL]? = nil, shortcutPath: String? = nil, size: Int? = nil, isSupportsExternalTransfer: Bool? = nil, width: Int? = nil) {
public init(
container: String? = nil,
dateLastSaved: Date? = nil,
extraIDs: [UUID]? = nil,
height: Int? = nil,
isHD: Bool? = nil,
isShortcut: Bool? = nil,
remoteTrailers: [MediaURL]? = nil,
shortcutPath: String? = nil,
size: Int? = nil,
isSupportsExternalTransfer: Bool? = nil,
width: Int? = nil
) {
self.container = container
self.dateLastSaved = dateLastSaved
self.extraIDs = extraIDs

View File

@ -1,10 +1,15 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
/// This is strictly used as a data transfer object from the api layer.
///
///
/// This holds information about a BaseItem in a format that is convenient for the client.
public final class BaseItemDto: Codable, Identifiable {
/// Gets or sets the air days.
@ -100,7 +105,7 @@ public final class BaseItemDto: Codable, Identifiable {
/// Gets or sets the id.
public let id: UUID?
/// Gets or sets the blurhashes for the image tags.
///
///
/// Maps image type to dictionary mapping image tag to blurhash value.
public let imageBlurHashes: ImageBlurHashes?
public let imageOrientation: ImageOrientation?
@ -278,7 +283,7 @@ public final class BaseItemDto: Codable, Identifiable {
public let width: Int?
/// Gets or sets the blurhashes for the image tags.
///
///
/// Maps image type to dictionary mapping image tag to blurhash value.
public struct ImageBlurHashes: Codable {
public var art: [String: String]?
@ -295,7 +300,21 @@ public final class BaseItemDto: Codable, Identifiable {
public var screenshot: [String: String]?
public var thumb: [String: String]?
public init(art: [String: String]? = nil, backdrop: [String: String]? = nil, banner: [String: String]? = nil, box: [String: String]? = nil, boxRear: [String: String]? = nil, chapter: [String: String]? = nil, disc: [String: String]? = nil, logo: [String: String]? = nil, menu: [String: String]? = nil, primary: [String: String]? = nil, profile: [String: String]? = nil, screenshot: [String: String]? = nil, thumb: [String: String]? = nil) {
public init(
art: [String: String]? = nil,
backdrop: [String: String]? = nil,
banner: [String: String]? = nil,
box: [String: String]? = nil,
boxRear: [String: String]? = nil,
chapter: [String: String]? = nil,
disc: [String: String]? = nil,
logo: [String: String]? = nil,
menu: [String: String]? = nil,
primary: [String: String]? = nil,
profile: [String: String]? = nil,
screenshot: [String: String]? = nil,
thumb: [String: String]? = nil
) {
self.art = art
self.backdrop = backdrop
self.banner = banner
@ -346,7 +365,159 @@ public final class BaseItemDto: Codable, Identifiable {
}
}
public init(airDays: [DayOfWeek]? = nil, airTime: String? = nil, airsAfterSeasonNumber: Int? = nil, airsBeforeEpisodeNumber: Int? = nil, airsBeforeSeasonNumber: Int? = nil, album: String? = nil, albumArtist: String? = nil, albumArtists: [NameGuidPair]? = nil, albumCount: Int? = nil, albumID: UUID? = nil, albumPrimaryImageTag: String? = nil, altitude: Double? = nil, aperture: Double? = nil, artistCount: Int? = nil, artistItems: [NameGuidPair]? = nil, artists: [String]? = nil, aspectRatio: String? = nil, audio: ProgramAudio? = nil, backdropImageTags: [String]? = nil, cameraMake: String? = nil, cameraModel: String? = nil, canDelete: Bool? = nil, canDownload: Bool? = nil, channelID: UUID? = nil, channelName: String? = nil, channelNumber: String? = nil, channelPrimaryImageTag: String? = nil, channelType: ChannelType? = nil, chapters: [ChapterInfo]? = nil, childCount: Int? = nil, collectionType: String? = nil, communityRating: Double? = nil, completionPercentage: Double? = nil, container: String? = nil, criticRating: Double? = nil, cumulativeRunTimeTicks: Int? = nil, currentProgram: BaseItemDto? = nil, customRating: String? = nil, dateCreated: Date? = nil, dateLastMediaAdded: Date? = nil, displayOrder: String? = nil, displayPreferencesID: String? = nil, enableMediaSourceDisplay: Bool? = nil, endDate: Date? = nil, episodeCount: Int? = nil, episodeTitle: String? = nil, etag: String? = nil, exposureTime: Double? = nil, externalURLs: [ExternalURL]? = nil, extraType: String? = nil, focalLength: Double? = nil, forcedSortName: String? = nil, genreItems: [NameGuidPair]? = nil, genres: [String]? = nil, hasSubtitles: Bool? = nil, height: Int? = nil, id: UUID? = nil, imageBlurHashes: ImageBlurHashes? = nil, imageOrientation: ImageOrientation? = nil, imageTags: [String: String]? = nil, indexNumber: Int? = nil, indexNumberEnd: Int? = nil, isFolder: Bool? = nil, isHD: Bool? = nil, isKids: Bool? = nil, isLive: Bool? = nil, isMovie: Bool? = nil, isNews: Bool? = nil, isPlaceHolder: Bool? = nil, isPremiere: Bool? = nil, isRepeat: Bool? = nil, isSeries: Bool? = nil, isSports: Bool? = nil, isoSpeedRating: Int? = nil, isoType: IsoType? = nil, latitude: Double? = nil, localTrailerCount: Int? = nil, locationType: LocationType? = nil, lockData: Bool? = nil, lockedFields: [MetadataField]? = nil, longitude: Double? = nil, mediaSourceCount: Int? = nil, mediaSources: [MediaSourceInfo]? = nil, mediaStreams: [MediaStream]? = nil, mediaType: String? = nil, movieCount: Int? = nil, musicVideoCount: Int? = nil, name: String? = nil, number: String? = nil, officialRating: String? = nil, originalTitle: String? = nil, overview: String? = nil, parentArtImageTag: String? = nil, parentArtItemID: UUID? = nil, parentBackdropImageTags: [String]? = nil, parentBackdropItemID: UUID? = nil, parentID: UUID? = nil, parentIndexNumber: Int? = nil, parentLogoImageTag: String? = nil, parentLogoItemID: UUID? = nil, parentPrimaryImageItemID: String? = nil, parentPrimaryImageTag: String? = nil, parentThumbImageTag: String? = nil, parentThumbItemID: UUID? = nil, partCount: Int? = nil, path: String? = nil, people: [BaseItemPerson]? = nil, playAccess: PlayAccess? = nil, playlistItemID: String? = nil, preferredMetadataCountryCode: String? = nil, preferredMetadataLanguage: String? = nil, premiereDate: Date? = nil, primaryImageAspectRatio: Double? = nil, productionLocations: [String]? = nil, productionYear: Int? = nil, programCount: Int? = nil, programID: String? = nil, providerIDs: [String: String]? = nil, recursiveItemCount: Int? = nil, remoteTrailers: [MediaURL]? = nil, runTimeTicks: Int? = nil, screenshotImageTags: [String]? = nil, seasonID: UUID? = nil, seasonName: String? = nil, seriesCount: Int? = nil, seriesID: UUID? = nil, seriesName: String? = nil, seriesPrimaryImageTag: String? = nil, seriesStudio: String? = nil, seriesThumbImageTag: String? = nil, seriesTimerID: String? = nil, serverID: String? = nil, shutterSpeed: Double? = nil, software: String? = nil, songCount: Int? = nil, sortName: String? = nil, sourceType: String? = nil, specialFeatureCount: Int? = nil, startDate: Date? = nil, status: String? = nil, studios: [NameGuidPair]? = nil, isSupportsSync: Bool? = nil, taglines: [String]? = nil, tags: [String]? = nil, timerID: String? = nil, trailerCount: Int? = nil, type: BaseItemKind? = nil, userData: UserItemDataDto? = nil, video3DFormat: Video3DFormat? = nil, videoType: VideoType? = nil, width: Int? = nil) {
public init(
airDays: [DayOfWeek]? = nil,
airTime: String? = nil,
airsAfterSeasonNumber: Int? = nil,
airsBeforeEpisodeNumber: Int? = nil,
airsBeforeSeasonNumber: Int? = nil,
album: String? = nil,
albumArtist: String? = nil,
albumArtists: [NameGuidPair]? = nil,
albumCount: Int? = nil,
albumID: UUID? = nil,
albumPrimaryImageTag: String? = nil,
altitude: Double? = nil,
aperture: Double? = nil,
artistCount: Int? = nil,
artistItems: [NameGuidPair]? = nil,
artists: [String]? = nil,
aspectRatio: String? = nil,
audio: ProgramAudio? = nil,
backdropImageTags: [String]? = nil,
cameraMake: String? = nil,
cameraModel: String? = nil,
canDelete: Bool? = nil,
canDownload: Bool? = nil,
channelID: UUID? = nil,
channelName: String? = nil,
channelNumber: String? = nil,
channelPrimaryImageTag: String? = nil,
channelType: ChannelType? = nil,
chapters: [ChapterInfo]? = nil,
childCount: Int? = nil,
collectionType: String? = nil,
communityRating: Double? = nil,
completionPercentage: Double? = nil,
container: String? = nil,
criticRating: Double? = nil,
cumulativeRunTimeTicks: Int? = nil,
currentProgram: BaseItemDto? = nil,
customRating: String? = nil,
dateCreated: Date? = nil,
dateLastMediaAdded: Date? = nil,
displayOrder: String? = nil,
displayPreferencesID: String? = nil,
enableMediaSourceDisplay: Bool? = nil,
endDate: Date? = nil,
episodeCount: Int? = nil,
episodeTitle: String? = nil,
etag: String? = nil,
exposureTime: Double? = nil,
externalURLs: [ExternalURL]? = nil,
extraType: String? = nil,
focalLength: Double? = nil,
forcedSortName: String? = nil,
genreItems: [NameGuidPair]? = nil,
genres: [String]? = nil,
hasSubtitles: Bool? = nil,
height: Int? = nil,
id: UUID? = nil,
imageBlurHashes: ImageBlurHashes? = nil,
imageOrientation: ImageOrientation? = nil,
imageTags: [String: String]? = nil,
indexNumber: Int? = nil,
indexNumberEnd: Int? = nil,
isFolder: Bool? = nil,
isHD: Bool? = nil,
isKids: Bool? = nil,
isLive: Bool? = nil,
isMovie: Bool? = nil,
isNews: Bool? = nil,
isPlaceHolder: Bool? = nil,
isPremiere: Bool? = nil,
isRepeat: Bool? = nil,
isSeries: Bool? = nil,
isSports: Bool? = nil,
isoSpeedRating: Int? = nil,
isoType: IsoType? = nil,
latitude: Double? = nil,
localTrailerCount: Int? = nil,
locationType: LocationType? = nil,
lockData: Bool? = nil,
lockedFields: [MetadataField]? = nil,
longitude: Double? = nil,
mediaSourceCount: Int? = nil,
mediaSources: [MediaSourceInfo]? = nil,
mediaStreams: [MediaStream]? = nil,
mediaType: String? = nil,
movieCount: Int? = nil,
musicVideoCount: Int? = nil,
name: String? = nil,
number: String? = nil,
officialRating: String? = nil,
originalTitle: String? = nil,
overview: String? = nil,
parentArtImageTag: String? = nil,
parentArtItemID: UUID? = nil,
parentBackdropImageTags: [String]? = nil,
parentBackdropItemID: UUID? = nil,
parentID: UUID? = nil,
parentIndexNumber: Int? = nil,
parentLogoImageTag: String? = nil,
parentLogoItemID: UUID? = nil,
parentPrimaryImageItemID: String? = nil,
parentPrimaryImageTag: String? = nil,
parentThumbImageTag: String? = nil,
parentThumbItemID: UUID? = nil,
partCount: Int? = nil,
path: String? = nil,
people: [BaseItemPerson]? = nil,
playAccess: PlayAccess? = nil,
playlistItemID: String? = nil,
preferredMetadataCountryCode: String? = nil,
preferredMetadataLanguage: String? = nil,
premiereDate: Date? = nil,
primaryImageAspectRatio: Double? = nil,
productionLocations: [String]? = nil,
productionYear: Int? = nil,
programCount: Int? = nil,
programID: String? = nil,
providerIDs: [String: String]? = nil,
recursiveItemCount: Int? = nil,
remoteTrailers: [MediaURL]? = nil,
runTimeTicks: Int? = nil,
screenshotImageTags: [String]? = nil,
seasonID: UUID? = nil,
seasonName: String? = nil,
seriesCount: Int? = nil,
seriesID: UUID? = nil,
seriesName: String? = nil,
seriesPrimaryImageTag: String? = nil,
seriesStudio: String? = nil,
seriesThumbImageTag: String? = nil,
seriesTimerID: String? = nil,
serverID: String? = nil,
shutterSpeed: Double? = nil,
software: String? = nil,
songCount: Int? = nil,
sortName: String? = nil,
sourceType: String? = nil,
specialFeatureCount: Int? = nil,
startDate: Date? = nil,
status: String? = nil,
studios: [NameGuidPair]? = nil,
isSupportsSync: Bool? = nil,
taglines: [String]? = nil,
tags: [String]? = nil,
timerID: String? = nil,
trailerCount: Int? = nil,
type: BaseItemKind? = nil,
userData: UserItemDataDto? = nil,
video3DFormat: Video3DFormat? = nil,
videoType: VideoType? = nil,
width: Int? = nil
) {
self.airDays = airDays
self.airTime = airTime
self.airsAfterSeasonNumber = airsAfterSeasonNumber

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -34,7 +39,21 @@ public struct BaseItemPerson: Codable, Identifiable {
public var screenshot: [String: String]?
public var thumb: [String: String]?
public init(art: [String: String]? = nil, backdrop: [String: String]? = nil, banner: [String: String]? = nil, box: [String: String]? = nil, boxRear: [String: String]? = nil, chapter: [String: String]? = nil, disc: [String: String]? = nil, logo: [String: String]? = nil, menu: [String: String]? = nil, primary: [String: String]? = nil, profile: [String: String]? = nil, screenshot: [String: String]? = nil, thumb: [String: String]? = nil) {
public init(
art: [String: String]? = nil,
backdrop: [String: String]? = nil,
banner: [String: String]? = nil,
box: [String: String]? = nil,
boxRear: [String: String]? = nil,
chapter: [String: String]? = nil,
disc: [String: String]? = nil,
logo: [String: String]? = nil,
menu: [String: String]? = nil,
primary: [String: String]? = nil,
profile: [String: String]? = nil,
screenshot: [String: String]? = nil,
thumb: [String: String]? = nil
) {
self.art = art
self.backdrop = backdrop
self.banner = banner
@ -85,7 +104,14 @@ public struct BaseItemPerson: Codable, Identifiable {
}
}
public init(id: UUID? = nil, imageBlurHashes: ImageBlurHashes? = nil, name: String? = nil, primaryImageTag: String? = nil, role: String? = nil, type: String? = nil) {
public init(
id: UUID? = nil,
imageBlurHashes: ImageBlurHashes? = nil,
name: String? = nil,
primaryImageTag: String? = nil,
role: String? = nil,
type: String? = nil
) {
self.id = id
self.imageBlurHashes = imageBlurHashes
self.name = name

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -24,7 +29,20 @@ public struct BookInfo: Codable {
/// Gets or sets the year.
public var year: Int?
public init(indexNumber: Int? = nil, isAutomated: Bool? = nil, metadataCountryCode: String? = nil, metadataLanguage: String? = nil, name: String? = nil, originalTitle: String? = nil, parentIndexNumber: Int? = nil, path: String? = nil, premiereDate: Date? = nil, providerIDs: [String: String]? = nil, seriesName: String? = nil, year: Int? = nil) {
public init(
indexNumber: Int? = nil,
isAutomated: Bool? = nil,
metadataCountryCode: String? = nil,
metadataLanguage: String? = nil,
name: String? = nil,
originalTitle: String? = nil,
parentIndexNumber: Int? = nil,
path: String? = nil,
premiereDate: Date? = nil,
providerIDs: [String: String]? = nil,
seriesName: String? = nil,
year: Int? = nil
) {
self.indexNumber = indexNumber
self.isAutomated = isAutomated
self.metadataCountryCode = metadataCountryCode

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -11,7 +16,12 @@ public struct BookInfoRemoteSearchQuery: Codable {
/// Gets or sets the provider name to search within if set.
public var searchProviderName: String?
public init(isIncludeDisabledProviders: Bool? = nil, itemID: UUID? = nil, searchInfo: BookInfo? = nil, searchProviderName: String? = nil) {
public init(
isIncludeDisabledProviders: Bool? = nil,
itemID: UUID? = nil,
searchInfo: BookInfo? = nil,
searchProviderName: String? = nil
) {
self.isIncludeDisabledProviders = isIncludeDisabledProviders
self.itemID = itemID
self.searchInfo = searchInfo

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -23,7 +28,19 @@ public struct BoxSetInfo: Codable {
/// Gets or sets the year.
public var year: Int?
public init(indexNumber: Int? = nil, isAutomated: Bool? = nil, metadataCountryCode: String? = nil, metadataLanguage: String? = nil, name: String? = nil, originalTitle: String? = nil, parentIndexNumber: Int? = nil, path: String? = nil, premiereDate: Date? = nil, providerIDs: [String: String]? = nil, year: Int? = nil) {
public init(
indexNumber: Int? = nil,
isAutomated: Bool? = nil,
metadataCountryCode: String? = nil,
metadataLanguage: String? = nil,
name: String? = nil,
originalTitle: String? = nil,
parentIndexNumber: Int? = nil,
path: String? = nil,
premiereDate: Date? = nil,
providerIDs: [String: String]? = nil,
year: Int? = nil
) {
self.indexNumber = indexNumber
self.isAutomated = isAutomated
self.metadataCountryCode = metadataCountryCode

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -11,7 +16,12 @@ public struct BoxSetInfoRemoteSearchQuery: Codable {
/// Gets or sets the provider name to search within if set.
public var searchProviderName: String?
public init(isIncludeDisabledProviders: Bool? = nil, itemID: UUID? = nil, searchInfo: BoxSetInfo? = nil, searchProviderName: String? = nil) {
public init(
isIncludeDisabledProviders: Bool? = nil,
itemID: UUID? = nil,
searchInfo: BoxSetInfo? = nil,
searchProviderName: String? = nil
) {
self.isIncludeDisabledProviders = isIncludeDisabledProviders
self.itemID = itemID
self.searchInfo = searchInfo

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -29,7 +34,20 @@ public struct ChannelFeatures: Codable, Identifiable {
/// Gets or sets a value indicating whether a sort ascending/descending toggle is supported.
public var isSupportsSortOrderToggle: Bool?
public init(autoRefreshLevels: Int? = nil, canFilter: Bool? = nil, canSearch: Bool? = nil, contentTypes: [ChannelMediaContentType]? = nil, defaultSortFields: [ChannelItemSortField]? = nil, id: UUID? = nil, maxPageSize: Int? = nil, mediaTypes: [ChannelMediaType]? = nil, name: String? = nil, isSupportsContentDownloading: Bool? = nil, isSupportsLatestMedia: Bool? = nil, isSupportsSortOrderToggle: Bool? = nil) {
public init(
autoRefreshLevels: Int? = nil,
canFilter: Bool? = nil,
canSearch: Bool? = nil,
contentTypes: [ChannelMediaContentType]? = nil,
defaultSortFields: [ChannelItemSortField]? = nil,
id: UUID? = nil,
maxPageSize: Int? = nil,
mediaTypes: [ChannelMediaType]? = nil,
name: String? = nil,
isSupportsContentDownloading: Bool? = nil,
isSupportsLatestMedia: Bool? = nil,
isSupportsSortOrderToggle: Bool? = nil
) {
self.autoRefreshLevels = autoRefreshLevels
self.canFilter = canFilter
self.canSearch = canSearch

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -14,7 +19,12 @@ public struct ChannelMappingOptionsDto: Codable {
/// Gets or sets list of tuner channels.
public var tunerChannels: [TunerChannelMapping]?
public init(mappings: [NameValuePair]? = nil, providerChannels: [NameIDPair]? = nil, providerName: String? = nil, tunerChannels: [TunerChannelMapping]? = nil) {
public init(
mappings: [NameValuePair]? = nil,
providerChannels: [NameIDPair]? = nil,
providerName: String? = nil,
tunerChannels: [TunerChannelMapping]? = nil
) {
self.mappings = mappings
self.providerChannels = providerChannels
self.providerName = providerName

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -14,7 +19,13 @@ public struct ChapterInfo: Codable {
/// Gets or sets the start position ticks.
public var startPositionTicks: Int?
public init(imageDateModified: Date? = nil, imagePath: String? = nil, imageTag: String? = nil, name: String? = nil, startPositionTicks: Int? = nil) {
public init(
imageDateModified: Date? = nil,
imagePath: String? = nil,
imageTag: String? = nil,
name: String? = nil,
startPositionTicks: Int? = nil
) {
self.imageDateModified = imageDateModified
self.imagePath = imagePath
self.imageTag = imageTag

View File

@ -1,20 +1,25 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
public struct ClientCapabilities: Codable {
public var appStoreURL: String?
/// A MediaBrowser.Model.Dlna.DeviceProfile represents a set of metadata which determines which content a certain device is able to play.
///
///
/// <br />
///
///
/// Specifically, it defines the supported <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.ContainerProfiles">containers</see> and
///
///
/// <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.CodecProfiles">codecs</see> (video and/or audio, including codec profiles and levels)
///
///
/// the device is able to direct play (without transcoding or remuxing),
///
///
/// as well as which <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.TranscodingProfiles">containers/codecs to transcode to</see> in case it isn't.
public var deviceProfile: DeviceProfile?
public var iconURL: String?
@ -26,7 +31,18 @@ public struct ClientCapabilities: Codable {
public var isSupportsPersistentIdentifier: Bool?
public var isSupportsSync: Bool?
public init(appStoreURL: String? = nil, deviceProfile: DeviceProfile? = nil, iconURL: String? = nil, messageCallbackURL: String? = nil, playableMediaTypes: [String]? = nil, supportedCommands: [GeneralCommandType]? = nil, isSupportsContentUploading: Bool? = nil, isSupportsMediaControl: Bool? = nil, isSupportsPersistentIdentifier: Bool? = nil, isSupportsSync: Bool? = nil) {
public init(
appStoreURL: String? = nil,
deviceProfile: DeviceProfile? = nil,
iconURL: String? = nil,
messageCallbackURL: String? = nil,
playableMediaTypes: [String]? = nil,
supportedCommands: [GeneralCommandType]? = nil,
isSupportsContentUploading: Bool? = nil,
isSupportsMediaControl: Bool? = nil,
isSupportsPersistentIdentifier: Bool? = nil,
isSupportsSync: Bool? = nil
) {
self.appStoreURL = appStoreURL
self.deviceProfile = deviceProfile
self.iconURL = iconURL

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -8,15 +13,15 @@ public struct ClientCapabilitiesDto: Codable {
/// Gets or sets the app store url.
public var appStoreURL: String?
/// A MediaBrowser.Model.Dlna.DeviceProfile represents a set of metadata which determines which content a certain device is able to play.
///
///
/// <br />
///
///
/// Specifically, it defines the supported <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.ContainerProfiles">containers</see> and
///
///
/// <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.CodecProfiles">codecs</see> (video and/or audio, including codec profiles and levels)
///
///
/// the device is able to direct play (without transcoding or remuxing),
///
///
/// as well as which <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.TranscodingProfiles">containers/codecs to transcode to</see> in case it isn't.
public var deviceProfile: DeviceProfile?
/// Gets or sets the icon url.
@ -36,7 +41,18 @@ public struct ClientCapabilitiesDto: Codable {
/// Gets or sets a value indicating whether session supports sync.
public var isSupportsSync: Bool?
public init(appStoreURL: String? = nil, deviceProfile: DeviceProfile? = nil, iconURL: String? = nil, messageCallbackURL: String? = nil, playableMediaTypes: [String]? = nil, supportedCommands: [GeneralCommandType]? = nil, isSupportsContentUploading: Bool? = nil, isSupportsMediaControl: Bool? = nil, isSupportsPersistentIdentifier: Bool? = nil, isSupportsSync: Bool? = nil) {
public init(
appStoreURL: String? = nil,
deviceProfile: DeviceProfile? = nil,
iconURL: String? = nil,
messageCallbackURL: String? = nil,
playableMediaTypes: [String]? = nil,
supportedCommands: [GeneralCommandType]? = nil,
isSupportsContentUploading: Bool? = nil,
isSupportsMediaControl: Bool? = nil,
isSupportsPersistentIdentifier: Bool? = nil,
isSupportsSync: Bool? = nil
) {
self.appStoreURL = appStoreURL
self.deviceProfile = deviceProfile
self.iconURL = iconURL

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -10,7 +15,13 @@ public struct CodecProfile: Codable {
public var container: String?
public var type: CodecType?
public init(applyConditions: [ProfileCondition]? = nil, codec: String? = nil, conditions: [ProfileCondition]? = nil, container: String? = nil, type: CodecType? = nil) {
public init(
applyConditions: [ProfileCondition]? = nil,
codec: String? = nil,
conditions: [ProfileCondition]? = nil,
container: String? = nil,
type: CodecType? = nil
) {
self.applyConditions = applyConditions
self.codec = codec
self.conditions = conditions

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -12,7 +17,15 @@ public struct ConfigImageTypes: Codable {
public var secureBaseURL: String?
public var stillSizes: [String]?
public init(backdropSizes: [String]? = nil, baseURL: String? = nil, logoSizes: [String]? = nil, posterSizes: [String]? = nil, profileSizes: [String]? = nil, secureBaseURL: String? = nil, stillSizes: [String]? = nil) {
public init(
backdropSizes: [String]? = nil,
baseURL: String? = nil,
logoSizes: [String]? = nil,
posterSizes: [String]? = nil,
profileSizes: [String]? = nil,
secureBaseURL: String? = nil,
stillSizes: [String]? = nil
) {
self.backdropSizes = backdropSizes
self.baseURL = baseURL
self.logoSizes = logoSizes

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -18,7 +23,14 @@ public struct ConfigurationPageInfo: Codable {
/// Gets or sets the plugin id.
public var pluginID: UUID?
public init(displayName: String? = nil, enableInMainMenu: Bool? = nil, menuIcon: String? = nil, menuSection: String? = nil, name: String? = nil, pluginID: UUID? = nil) {
public init(
displayName: String? = nil,
enableInMainMenu: Bool? = nil,
menuIcon: String? = nil,
menuSection: String? = nil,
name: String? = nil,
pluginID: UUID? = nil
) {
self.displayName = displayName
self.enableInMainMenu = enableInMainMenu
self.menuIcon = menuIcon

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -14,7 +19,12 @@ public struct CountryInfo: Codable {
/// Gets or sets the name of the two letter ISO region.
public var twoLetterISORegionName: String?
public init(displayName: String? = nil, name: String? = nil, threeLetterISORegionName: String? = nil, twoLetterISORegionName: String? = nil) {
public init(
displayName: String? = nil,
name: String? = nil,
threeLetterISORegionName: String? = nil,
twoLetterISORegionName: String? = nil
) {
self.displayName = displayName
self.name = name
self.threeLetterISORegionName = threeLetterISORegionName

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -15,7 +20,13 @@ public struct CultureDto: Codable {
/// Gets the name of the two letter ISO language.
public var twoLetterISOLanguageName: String?
public init(displayName: String? = nil, name: String? = nil, threeLetterISOLanguageName: String? = nil, threeLetterISOLanguageNames: [String]? = nil, twoLetterISOLanguageName: String? = nil) {
public init(
displayName: String? = nil,
name: String? = nil,
threeLetterISOLanguageName: String? = nil,
threeLetterISOLanguageNames: [String]? = nil,
twoLetterISOLanguageName: String? = nil
) {
self.displayName = displayName
self.name = name
self.threeLetterISOLanguageName = threeLetterISOLanguageName

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -23,7 +28,17 @@ public struct DeviceIdentification: Codable {
/// Gets or sets the serial number.
public var serialNumber: String?
public init(friendlyName: String? = nil, headers: [HTTPHeaderInfo]? = nil, manufacturer: String? = nil, manufacturerURL: String? = nil, modelDescription: String? = nil, modelName: String? = nil, modelNumber: String? = nil, modelURL: String? = nil, serialNumber: String? = nil) {
public init(
friendlyName: String? = nil,
headers: [HTTPHeaderInfo]? = nil,
manufacturer: String? = nil,
manufacturerURL: String? = nil,
modelDescription: String? = nil,
modelName: String? = nil,
modelNumber: String? = nil,
modelURL: String? = nil,
serialNumber: String? = nil
) {
self.friendlyName = friendlyName
self.headers = headers
self.manufacturer = manufacturer

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -23,7 +28,18 @@ public struct DeviceInfo: Codable, Identifiable {
public var lastUserName: String?
public var name: String?
public init(accessToken: String? = nil, appName: String? = nil, appVersion: String? = nil, capabilities: ClientCapabilities? = nil, dateLastActivity: Date? = nil, iconURL: String? = nil, id: String? = nil, lastUserID: UUID? = nil, lastUserName: String? = nil, name: String? = nil) {
public init(
accessToken: String? = nil,
appName: String? = nil,
appVersion: String? = nil,
capabilities: ClientCapabilities? = nil,
dateLastActivity: Date? = nil,
iconURL: String? = nil,
id: String? = nil,
lastUserID: UUID? = nil,
lastUserName: String? = nil,
name: String? = nil
) {
self.accessToken = accessToken
self.appName = appName
self.appVersion = appVersion

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,18 +1,23 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
/// A MediaBrowser.Model.Dlna.DeviceProfile represents a set of metadata which determines which content a certain device is able to play.
///
///
/// <br />
///
///
/// Specifically, it defines the supported <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.ContainerProfiles">containers</see> and
///
///
/// <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.CodecProfiles">codecs</see> (video and/or audio, including codec profiles and levels)
///
///
/// the device is able to direct play (without transcoding or remuxing),
///
///
/// as well as which <see cref="P:MediaBrowser.Model.Dlna.DeviceProfile.TranscodingProfiles">containers/codecs to transcode to</see> in case it isn't.
public struct DeviceProfile: Codable, Identifiable {
/// Gets or sets the AlbumArtPn.
@ -94,7 +99,47 @@ public struct DeviceProfile: Codable, Identifiable {
/// Gets or sets the XmlRootAttributes.
public var xmlRootAttributes: [XmlAttribute]?
public init(albumArtPn: String? = nil, codecProfiles: [CodecProfile]? = nil, containerProfiles: [ContainerProfile]? = nil, directPlayProfiles: [DirectPlayProfile]? = nil, enableAlbumArtInDidl: Bool? = nil, enableMSMediaReceiverRegistrar: Bool? = nil, enableSingleAlbumArtLimit: Bool? = nil, enableSingleSubtitleLimit: Bool? = nil, friendlyName: String? = nil, id: String? = nil, identification: DeviceIdentification? = nil, isIgnoreTranscodeByteRangeRequests: Bool? = nil, manufacturer: String? = nil, manufacturerURL: String? = nil, maxAlbumArtHeight: Int? = nil, maxAlbumArtWidth: Int? = nil, maxIconHeight: Int? = nil, maxIconWidth: Int? = nil, maxStaticBitrate: Int? = nil, maxStaticMusicBitrate: Int? = nil, maxStreamingBitrate: Int? = nil, modelDescription: String? = nil, modelName: String? = nil, modelNumber: String? = nil, modelURL: String? = nil, musicStreamingTranscodingBitrate: Int? = nil, name: String? = nil, protocolInfo: String? = nil, requiresPlainFolders: Bool? = nil, requiresPlainVideoItems: Bool? = nil, responseProfiles: [ResponseProfile]? = nil, serialNumber: String? = nil, sonyAggregationFlags: String? = nil, subtitleProfiles: [SubtitleProfile]? = nil, supportedMediaTypes: String? = nil, timelineOffsetSeconds: Int? = nil, transcodingProfiles: [TranscodingProfile]? = nil, userID: String? = nil, xmlRootAttributes: [XmlAttribute]? = nil) {
public init(
albumArtPn: String? = nil,
codecProfiles: [CodecProfile]? = nil,
containerProfiles: [ContainerProfile]? = nil,
directPlayProfiles: [DirectPlayProfile]? = nil,
enableAlbumArtInDidl: Bool? = nil,
enableMSMediaReceiverRegistrar: Bool? = nil,
enableSingleAlbumArtLimit: Bool? = nil,
enableSingleSubtitleLimit: Bool? = nil,
friendlyName: String? = nil,
id: String? = nil,
identification: DeviceIdentification? = nil,
isIgnoreTranscodeByteRangeRequests: Bool? = nil,
manufacturer: String? = nil,
manufacturerURL: String? = nil,
maxAlbumArtHeight: Int? = nil,
maxAlbumArtWidth: Int? = nil,
maxIconHeight: Int? = nil,
maxIconWidth: Int? = nil,
maxStaticBitrate: Int? = nil,
maxStaticMusicBitrate: Int? = nil,
maxStreamingBitrate: Int? = nil,
modelDescription: String? = nil,
modelName: String? = nil,
modelNumber: String? = nil,
modelURL: String? = nil,
musicStreamingTranscodingBitrate: Int? = nil,
name: String? = nil,
protocolInfo: String? = nil,
requiresPlainFolders: Bool? = nil,
requiresPlainVideoItems: Bool? = nil,
responseProfiles: [ResponseProfile]? = nil,
serialNumber: String? = nil,
sonyAggregationFlags: String? = nil,
subtitleProfiles: [SubtitleProfile]? = nil,
supportedMediaTypes: String? = nil,
timelineOffsetSeconds: Int? = nil,
transcodingProfiles: [TranscodingProfile]? = nil,
userID: String? = nil,
xmlRootAttributes: [XmlAttribute]? = nil
) {
self.albumArtPn = albumArtPn
self.codecProfiles = codecProfiles
self.containerProfiles = containerProfiles

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -34,7 +39,22 @@ public struct DisplayPreferencesDto: Codable, Identifiable {
/// Gets or sets the type of the view.
public var viewType: String?
public init(client: String? = nil, customPrefs: [String: String]? = nil, id: String? = nil, indexBy: String? = nil, primaryImageHeight: Int? = nil, primaryImageWidth: Int? = nil, isRememberIndexing: Bool? = nil, isRememberSorting: Bool? = nil, scrollDirection: ScrollDirection? = nil, isShowBackdrop: Bool? = nil, isShowSidebar: Bool? = nil, sortBy: String? = nil, sortOrder: SortOrder? = nil, viewType: String? = nil) {
public init(
client: String? = nil,
customPrefs: [String: String]? = nil,
id: String? = nil,
indexBy: String? = nil,
primaryImageHeight: Int? = nil,
primaryImageWidth: Int? = nil,
isRememberIndexing: Bool? = nil,
isRememberSorting: Bool? = nil,
scrollDirection: ScrollDirection? = nil,
isShowBackdrop: Bool? = nil,
isShowSidebar: Bool? = nil,
sortBy: String? = nil,
sortOrder: SortOrder? = nil,
viewType: String? = nil
) {
self.client = client
self.customPrefs = customPrefs
self.id = id

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -14,19 +19,19 @@ public struct DlnaOptions: Codable {
/// Gets or sets a value indicating whether to blast alive messages.
public var isBlastAliveMessages: Bool?
/// Gets or sets the ssdp client discovery interval time (in seconds).
///
///
/// This is the time after which the server will send a ssdp search request.
public var clientDiscoveryIntervalSeconds: Int?
/// Gets or sets the default user account that the dlna server uses.
public var defaultUserID: String?
/// Gets or sets a value indicating whether detailed dlna server logs are sent to the console/log.
///
///
/// If the setting "Emby.Dlna": "Debug" msut be set in logging.default.json for this property to work.
public var enableDebugLog: Bool?
/// Gets or sets a value indicating whether gets or sets a value to indicate the status of the dlna playTo subsystem.
public var enablePlayTo: Bool?
/// Gets or sets a value indicating whether whether detailed playTo debug logs are sent to the console/log.
///
///
/// If the setting "Emby.Dlna.PlayTo": "Debug" msut be set in logging.default.json for this property to work.
public var enablePlayToTracing: Bool?
/// Gets or sets a value indicating whether gets or sets a value to indicate the status of the dlna server subsystem.
@ -34,7 +39,19 @@ public struct DlnaOptions: Codable {
/// Gets or sets a value indicating whether to send only matched host.
public var isSendOnlyMatchedHost: Bool?
public init(aliveMessageIntervalSeconds: Int? = nil, isAutoCreatePlayToProfiles: Bool? = nil, blastAliveMessageIntervalSeconds: Int? = nil, isBlastAliveMessages: Bool? = nil, clientDiscoveryIntervalSeconds: Int? = nil, defaultUserID: String? = nil, enableDebugLog: Bool? = nil, enablePlayTo: Bool? = nil, enablePlayToTracing: Bool? = nil, enableServer: Bool? = nil, isSendOnlyMatchedHost: Bool? = nil) {
public init(
aliveMessageIntervalSeconds: Int? = nil,
isAutoCreatePlayToProfiles: Bool? = nil,
blastAliveMessageIntervalSeconds: Int? = nil,
isBlastAliveMessages: Bool? = nil,
clientDiscoveryIntervalSeconds: Int? = nil,
defaultUserID: String? = nil,
enableDebugLog: Bool? = nil,
enablePlayTo: Bool? = nil,
enablePlayToTracing: Bool? = nil,
enableServer: Bool? = nil,
isSendOnlyMatchedHost: Bool? = nil
) {
self.aliveMessageIntervalSeconds = aliveMessageIntervalSeconds
self.isAutoCreatePlayToProfiles = isAutoCreatePlayToProfiles
self.blastAliveMessageIntervalSeconds = blastAliveMessageIntervalSeconds

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -45,7 +50,46 @@ public struct EncodingOptions: Codable {
public var vppTonemappingBrightness: Double?
public var vppTonemappingContrast: Double?
public init(allowHevcEncoding: Bool? = nil, allowOnDemandMetadataBasedKeyframeExtractionForExtensions: [String]? = nil, isDeinterlaceDoubleRate: Bool? = nil, deinterlaceMethod: String? = nil, downMixAudioBoost: Double? = nil, enableDecodingColorDepth10Hevc: Bool? = nil, enableDecodingColorDepth10Vp9: Bool? = nil, enableEnhancedNvdecDecoder: Bool? = nil, enableFallbackFont: Bool? = nil, enableHardwareEncoding: Bool? = nil, enableIntelLowPowerH264HwEncoder: Bool? = nil, enableIntelLowPowerHevcHwEncoder: Bool? = nil, enableSubtitleExtraction: Bool? = nil, enableThrottling: Bool? = nil, enableTonemapping: Bool? = nil, enableVppTonemapping: Bool? = nil, encoderAppPath: String? = nil, encoderAppPathDisplay: String? = nil, encoderPreset: String? = nil, encodingThreadCount: Int? = nil, fallbackFontPath: String? = nil, h264Crf: Int? = nil, h265Crf: Int? = nil, hardwareAccelerationType: String? = nil, hardwareDecodingCodecs: [String]? = nil, maxMuxingQueueSize: Int? = nil, isPreferSystemNativeHwDecoder: Bool? = nil, throttleDelaySeconds: Int? = nil, tonemappingAlgorithm: String? = nil, tonemappingDesat: Double? = nil, tonemappingParam: Double? = nil, tonemappingPeak: Double? = nil, tonemappingRange: String? = nil, tonemappingThreshold: Double? = nil, transcodingTempPath: String? = nil, vaapiDevice: String? = nil, vppTonemappingBrightness: Double? = nil, vppTonemappingContrast: Double? = nil) {
public init(
allowHevcEncoding: Bool? = nil,
allowOnDemandMetadataBasedKeyframeExtractionForExtensions: [String]? = nil,
isDeinterlaceDoubleRate: Bool? = nil,
deinterlaceMethod: String? = nil,
downMixAudioBoost: Double? = nil,
enableDecodingColorDepth10Hevc: Bool? = nil,
enableDecodingColorDepth10Vp9: Bool? = nil,
enableEnhancedNvdecDecoder: Bool? = nil,
enableFallbackFont: Bool? = nil,
enableHardwareEncoding: Bool? = nil,
enableIntelLowPowerH264HwEncoder: Bool? = nil,
enableIntelLowPowerHevcHwEncoder: Bool? = nil,
enableSubtitleExtraction: Bool? = nil,
enableThrottling: Bool? = nil,
enableTonemapping: Bool? = nil,
enableVppTonemapping: Bool? = nil,
encoderAppPath: String? = nil,
encoderAppPathDisplay: String? = nil,
encoderPreset: String? = nil,
encodingThreadCount: Int? = nil,
fallbackFontPath: String? = nil,
h264Crf: Int? = nil,
h265Crf: Int? = nil,
hardwareAccelerationType: String? = nil,
hardwareDecodingCodecs: [String]? = nil,
maxMuxingQueueSize: Int? = nil,
isPreferSystemNativeHwDecoder: Bool? = nil,
throttleDelaySeconds: Int? = nil,
tonemappingAlgorithm: String? = nil,
tonemappingDesat: Double? = nil,
tonemappingParam: Double? = nil,
tonemappingPeak: Double? = nil,
tonemappingRange: String? = nil,
tonemappingThreshold: Double? = nil,
transcodingTempPath: String? = nil,
vaapiDevice: String? = nil,
vppTonemappingBrightness: Double? = nil,
vppTonemappingContrast: Double? = nil
) {
self.allowHevcEncoding = allowHevcEncoding
self.allowOnDemandMetadataBasedKeyframeExtractionForExtensions = allowOnDemandMetadataBasedKeyframeExtractionForExtensions
self.isDeinterlaceDoubleRate = isDeinterlaceDoubleRate
@ -89,7 +133,10 @@ public struct EncodingOptions: Codable {
public init(from decoder: Decoder) throws {
let values = try decoder.container(keyedBy: StringCodingKey.self)
self.allowHevcEncoding = try values.decodeIfPresent(Bool.self, forKey: "AllowHevcEncoding")
self.allowOnDemandMetadataBasedKeyframeExtractionForExtensions = try values.decodeIfPresent([String].self, forKey: "AllowOnDemandMetadataBasedKeyframeExtractionForExtensions")
self.allowOnDemandMetadataBasedKeyframeExtractionForExtensions = try values.decodeIfPresent(
[String].self,
forKey: "AllowOnDemandMetadataBasedKeyframeExtractionForExtensions"
)
self.isDeinterlaceDoubleRate = try values.decodeIfPresent(Bool.self, forKey: "DeinterlaceDoubleRate")
self.deinterlaceMethod = try values.decodeIfPresent(String.self, forKey: "DeinterlaceMethod")
self.downMixAudioBoost = try values.decodeIfPresent(Double.self, forKey: "DownMixAudioBoost")
@ -131,7 +178,10 @@ public struct EncodingOptions: Codable {
public func encode(to encoder: Encoder) throws {
var values = encoder.container(keyedBy: StringCodingKey.self)
try values.encodeIfPresent(allowHevcEncoding, forKey: "AllowHevcEncoding")
try values.encodeIfPresent(allowOnDemandMetadataBasedKeyframeExtractionForExtensions, forKey: "AllowOnDemandMetadataBasedKeyframeExtractionForExtensions")
try values.encodeIfPresent(
allowOnDemandMetadataBasedKeyframeExtractionForExtensions,
forKey: "AllowOnDemandMetadataBasedKeyframeExtractionForExtensions"
)
try values.encodeIfPresent(isDeinterlaceDoubleRate, forKey: "DeinterlaceDoubleRate")
try values.encodeIfPresent(deinterlaceMethod, forKey: "DeinterlaceMethod")
try values.encodeIfPresent(downMixAudioBoost, forKey: "DownMixAudioBoost")

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -10,11 +15,11 @@ public struct ExternalIDInfo: Codable {
/// Gets or sets the display name of the external id provider (IE: IMDB, MusicBrainz, etc).
public var name: String?
/// Gets or sets the specific media type for this id. This is used to distinguish between the different
///
///
/// external id types for providers with multiple ids.
///
///
/// A null value indicates there is no specific media type associated with the external id, or this is the
///
///
/// default id for the external provider so there is no need to specify a type.
public var type: ExternalIDMediaType?
/// Gets or sets the URL format string.

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -8,21 +13,21 @@ public struct GetProgramsDto: Codable {
/// Gets or sets the channels to return guide information for.
public var channelIDs: [UUID]?
/// Gets or sets the image types to include in the output.
///
///
/// Optional.
public var enableImageTypes: [ImageType]?
/// Gets or sets include image information in output.
///
///
/// Optional.
public var enableImages: Bool?
/// Gets or sets a value indicating whether retrieve total record count.
public var enableTotalRecordCount: Bool?
/// Gets or sets include user data.
///
///
/// Optional.
public var enableUserData: Bool?
/// Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
///
///
/// Optional.
public var fields: [ItemFields]?
/// Gets or sets the genre ids to return guide information for.
@ -30,79 +35,107 @@ public struct GetProgramsDto: Codable {
/// Gets or sets the genres to return guide information for.
public var genres: [String]?
/// Gets or sets filter by programs that have completed airing, or not.
///
///
/// Optional.
public var hasAired: Bool?
/// Gets or sets the max number of images to return, per image type.
///
///
/// Optional.
public var imageTypeLimit: Int?
/// Gets or sets filter by programs that are currently airing, or not.
///
///
/// Optional.
public var isAiring: Bool?
/// Gets or sets filter for kids.
///
///
/// Optional.
public var isKids: Bool?
/// Gets or sets filter for movies.
///
///
/// Optional.
public var isMovie: Bool?
/// Gets or sets filter for news.
///
///
/// Optional.
public var isNews: Bool?
/// Gets or sets filter for series.
///
///
/// Optional.
public var isSeries: Bool?
/// Gets or sets filter for sports.
///
///
/// Optional.
public var isSports: Bool?
/// Gets or sets filter by library series id.
///
///
/// Optional.
public var librarySeriesID: UUID?
/// Gets or sets the maximum number of records to return.
///
///
/// Optional.
public var limit: Int?
/// Gets or sets the maximum premiere end date.
///
///
/// Optional.
public var maxEndDate: Date?
/// Gets or sets the maximum premiere start date.
///
///
/// Optional.
public var maxStartDate: Date?
/// Gets or sets the minimum premiere end date.
///
///
/// Optional.
public var minEndDate: Date?
/// Gets or sets the minimum premiere start date.
///
///
/// Optional.
public var minStartDate: Date?
/// Gets or sets filter by series timer id.
///
///
/// Optional.
public var seriesTimerID: String?
/// Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate.
///
///
/// Optional.
public var sortBy: [String]?
/// Gets or sets sort Order - Ascending,Descending.
public var sortOrder: [SortOrder]?
/// Gets or sets the record index to start at. All items with a lower index will be dropped from the results.
///
///
/// Optional.
public var startIndex: Int?
/// Gets or sets optional. Filter by user id.
public var userID: UUID?
public init(channelIDs: [UUID]? = nil, enableImageTypes: [ImageType]? = nil, enableImages: Bool? = nil, enableTotalRecordCount: Bool? = nil, enableUserData: Bool? = nil, fields: [ItemFields]? = nil, genreIDs: [UUID]? = nil, genres: [String]? = nil, hasAired: Bool? = nil, imageTypeLimit: Int? = nil, isAiring: Bool? = nil, isKids: Bool? = nil, isMovie: Bool? = nil, isNews: Bool? = nil, isSeries: Bool? = nil, isSports: Bool? = nil, librarySeriesID: UUID? = nil, limit: Int? = nil, maxEndDate: Date? = nil, maxStartDate: Date? = nil, minEndDate: Date? = nil, minStartDate: Date? = nil, seriesTimerID: String? = nil, sortBy: [String]? = nil, sortOrder: [SortOrder]? = nil, startIndex: Int? = nil, userID: UUID? = nil) {
public init(
channelIDs: [UUID]? = nil,
enableImageTypes: [ImageType]? = nil,
enableImages: Bool? = nil,
enableTotalRecordCount: Bool? = nil,
enableUserData: Bool? = nil,
fields: [ItemFields]? = nil,
genreIDs: [UUID]? = nil,
genres: [String]? = nil,
hasAired: Bool? = nil,
imageTypeLimit: Int? = nil,
isAiring: Bool? = nil,
isKids: Bool? = nil,
isMovie: Bool? = nil,
isNews: Bool? = nil,
isSeries: Bool? = nil,
isSports: Bool? = nil,
librarySeriesID: UUID? = nil,
limit: Int? = nil,
maxEndDate: Date? = nil,
maxStartDate: Date? = nil,
minEndDate: Date? = nil,
minStartDate: Date? = nil,
seriesTimerID: String? = nil,
sortBy: [String]? = nil,
sortOrder: [SortOrder]? = nil,
startIndex: Int? = nil,
userID: UUID? = nil
) {
self.channelIDs = channelIDs
self.enableImageTypes = enableImageTypes
self.enableImages = enableImages

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -16,7 +21,13 @@ public struct GroupInfoDto: Codable {
/// Gets the group state.
public var state: GroupStateType?
public init(groupID: UUID? = nil, groupName: String? = nil, lastUpdatedAt: Date? = nil, participants: [String]? = nil, state: GroupStateType? = nil) {
public init(
groupID: UUID? = nil,
groupName: String? = nil,
lastUpdatedAt: Date? = nil,
participants: [String]? = nil,
state: GroupStateType? = nil
) {
self.groupID = groupID
self.groupName = groupName
self.lastUpdatedAt = lastUpdatedAt

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -20,7 +25,15 @@ public struct IPlugin: Codable, Identifiable {
/// Gets the plugin version.
public var version: String?
public init(assemblyFilePath: String? = nil, canUninstall: Bool? = nil, dataFolderPath: String? = nil, description: String? = nil, id: UUID? = nil, name: String? = nil, version: String? = nil) {
public init(
assemblyFilePath: String? = nil,
canUninstall: Bool? = nil,
dataFolderPath: String? = nil,
description: String? = nil,
id: UUID? = nil,
name: String? = nil,
version: String? = nil
) {
self.assemblyFilePath = assemblyFilePath
self.canUninstall = canUninstall
self.dataFolderPath = dataFolderPath

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation

View File

@ -1,5 +1,10 @@
// Generated by Create API
// https://github.com/CreateAPI/CreateAPI
//
// Swiftfin is subject to the terms of the Mozilla Public
// License, v2.0. If a copy of the MPL was not distributed with this
// file, you can obtain one at https://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2022 Jellyfin & Jellyfin Contributors
//
import Foundation
@ -22,7 +27,16 @@ public struct ImageInfo: Codable {
/// Gets or sets the width.
public var width: Int?
public init(blurHash: String? = nil, height: Int? = nil, imageIndex: Int? = nil, imageTag: String? = nil, imageType: ImageType? = nil, path: String? = nil, size: Int? = nil, width: Int? = nil) {
public init(
blurHash: String? = nil,
height: Int? = nil,
imageIndex: Int? = nil,
imageTag: String? = nil,
imageType: ImageType? = nil,
path: String? = nil,
size: Int? = nil,
width: Int? = nil
) {
self.blurHash = blurHash
self.height = height
self.imageIndex = imageIndex

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