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