OCD
This commit is contained in:
1 parent
31f4098af4
commit
c654526d91
1 file changed
+7
-12
@@ -41,6 +41,11 @@ public struct TMDBImage : Codable {
|
|||||||
let width: Int?
|
let width: Int?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public struct TMDBImages : Codable {
|
||||||
|
let backdrops: [TMDBImage]
|
||||||
|
let posters: [TMDBImage]
|
||||||
|
}
|
||||||
|
|
||||||
public struct TMDBCast : Codable {
|
public struct TMDBCast : Codable {
|
||||||
let cast_id: Int?
|
let cast_id: Int?
|
||||||
let character: String?
|
let character: String?
|
||||||
@@ -66,11 +71,6 @@ public struct TMDBCasts : Codable {
|
|||||||
let crew: [TMDBCrew]
|
let crew: [TMDBCrew]
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct TMDBImages : Codable {
|
|
||||||
let backdrops: [TMDBImage]
|
|
||||||
let posters: [TMDBImage]
|
|
||||||
}
|
|
||||||
|
|
||||||
public struct TMDBRelease : Codable {
|
public struct TMDBRelease : Codable {
|
||||||
let certification: String
|
let certification: String
|
||||||
let iso_3166_1: String
|
let iso_3166_1: String
|
||||||
@@ -118,16 +118,11 @@ public struct TMDBConfiguration : Codable {
|
|||||||
final public class TheMovieDBService {
|
final public class TheMovieDBService {
|
||||||
|
|
||||||
public static let sharedInstance = TheMovieDBService()
|
public static let sharedInstance = TheMovieDBService()
|
||||||
|
|
||||||
private let queue: DispatchQueue
|
|
||||||
|
|
||||||
private let basePath = "https://api.themoviedb.org/3/"
|
private let basePath = "https://api.themoviedb.org/3/"
|
||||||
private let key = "b0073bafb08b4f68df101eb2325f27dc"
|
private let key = "b0073bafb08b4f68df101eb2325f27dc"
|
||||||
|
|
||||||
private init() {
|
private init() {}
|
||||||
queue = DispatchQueue(label: "org.subler.TheMovieDBQueue")
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private struct Wrapper<T> : Codable where T : Codable {
|
private struct Wrapper<T> : Codable where T : Codable {
|
||||||
let results: T
|
let results: T
|
||||||
|
|||||||
Reference in new issue
Block a user