Everything works well and good structure.
This commit is contained in:
25
Sources/MusicBrainz/Models/Recording.swift
Normal file
25
Sources/MusicBrainz/Models/Recording.swift
Normal file
@@ -0,0 +1,25 @@
|
||||
import Foundation
|
||||
|
||||
public struct Recording: MusicBrainzSearchable {
|
||||
public static let entityType: MusicBrainzEntity = .recording
|
||||
|
||||
public let id: String
|
||||
public let title: String
|
||||
public let length: Int?
|
||||
public let video: Bool?
|
||||
public let disambiguation: String?
|
||||
public let firstReleaseDate: String?
|
||||
public let relations: [Relation]?
|
||||
public let score: Int?
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case id
|
||||
case title
|
||||
case length
|
||||
case video
|
||||
case disambiguation
|
||||
case firstReleaseDate = "first-release-date"
|
||||
case relations
|
||||
case score
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user