Everything works well and good structure.
This commit is contained in:
51
Sources/MusicBrainz/Enums.swift
Normal file
51
Sources/MusicBrainz/Enums.swift
Normal file
@@ -0,0 +1,51 @@
|
||||
import Foundation
|
||||
|
||||
public enum Gender: String, Sendable {
|
||||
case male, female, other
|
||||
case notApplicable = "not applicable"
|
||||
}
|
||||
|
||||
public enum ArtistType: String, Sendable {
|
||||
case person, group, orchestra, choir, character, other
|
||||
}
|
||||
|
||||
public enum Country: String, Sendable {
|
||||
case af = "AF" // Afghanistan
|
||||
case al = "AL" // Albania
|
||||
case dz = "DZ" // Algeria
|
||||
case ad = "AD" // Andorra
|
||||
case ao = "AO" // Angola
|
||||
case ar = "AR" // Argentina
|
||||
case am = "AM" // Armenia
|
||||
case au = "AU" // Australia
|
||||
case at = "AT" // Austria
|
||||
case az = "AZ" // Azerbaijan
|
||||
case be = "BE" // Belgium
|
||||
case br = "BR" // Brazil
|
||||
case ca = "CA" // Canada
|
||||
case cn = "CN" // China
|
||||
case dk = "DK" // Denmark
|
||||
case fi = "FI" // Finland
|
||||
case fr = "FR" // France
|
||||
case de = "DE" // Germany
|
||||
case gr = "GR" // Greece
|
||||
case `in` = "IN" // India
|
||||
case id = "ID" // Indonesia
|
||||
case ie = "IE" // Ireland
|
||||
case it = "IT" // Italy
|
||||
case jp = "JP" // Japan
|
||||
case mx = "MX" // Mexico
|
||||
case nl = "NL" // Netherlands
|
||||
case nz = "NZ" // New Zealand
|
||||
case no = "NO" // Norway
|
||||
case pl = "PL" // Poland
|
||||
case pt = "PT" // Portugal
|
||||
case ru = "RU" // Russia
|
||||
case kr = "KR" // South Korea
|
||||
case es = "ES" // Spain
|
||||
case se = "SE" // Sweden
|
||||
case ch = "CH" // Switzerland
|
||||
case tr = "TR" // Turkey
|
||||
case gb = "GB" // United Kingdom
|
||||
case us = "US" // United States
|
||||
}
|
||||
Reference in New Issue
Block a user