22 lines
533 B
Swift
22 lines
533 B
Swift
import Foundation
|
|
|
|
public struct CoverArtImage: Codable, Sendable, Identifiable, Hashable, Equatable {
|
|
public let image: String
|
|
public let thumbnails: [String: String]
|
|
public let types: [String]
|
|
public let front: Bool
|
|
public let back: Bool
|
|
public let edit: Int
|
|
public let comment: String
|
|
public let id: String
|
|
}
|
|
|
|
public struct CoverArtResponse: Codable, Sendable, Hashable, Equatable {
|
|
public let images: [CoverArtImage]
|
|
public let release: String
|
|
|
|
public var frontImage: CoverArtImage? {
|
|
images.first { $0.front }
|
|
}
|
|
}
|