Everything works well and good structure.
This commit is contained in:
21
Sources/MusicBrainz/Models/Label.swift
Normal file
21
Sources/MusicBrainz/Models/Label.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
import Foundation
|
||||
|
||||
public struct Label: MusicBrainzSearchable {
|
||||
public static let entityType: MusicBrainzEntity = .label
|
||||
|
||||
public let id: String
|
||||
public let name: String
|
||||
public let type: String?
|
||||
public let labelCode: Int?
|
||||
public let country: String?
|
||||
public let disambiguation: String?
|
||||
public let lifeSpan: LifeSpan?
|
||||
public let relations: [Relation]?
|
||||
public let score: Int?
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case id, name, type, country, disambiguation, score, relations
|
||||
case labelCode = "label-code"
|
||||
case lifeSpan = "life-span"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user