Everything works well and good structure.

This commit is contained in:
cdricms
2026-03-21 17:41:59 +01:00
parent ada1c12f57
commit 2d1e8e1044
30 changed files with 1068 additions and 875 deletions

View File

@@ -0,0 +1,21 @@
import Foundation
public struct CoverArtImage: Codable, Sendable {
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 {
public let images: [CoverArtImage]
public let release: String
public var frontImage: CoverArtImage? {
images.first { $0.front }
}
}