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