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