Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Foundation
- // MARK: - LiveEvent
- struct LiveEvent: Codable {
- let id: Int
- let name: String
- let preview: String
- let liveEventDescription: String
- let scheduledAt: Date
- let approximateDuration: Int
- let promoteOn: [String]
- let hosts: [Host]
- let playbackURL: String
- enum CodingKeys: String, CodingKey {
- case id, name, preview
- case liveEventDescription = "description"
- case scheduledAt = "scheduled_at"
- case approximateDuration = "approximate_duration"
- case promoteOn = "promote_on"
- case hosts
- case playbackURL = "playback_url"
- }
- }
- // MARK: - Host
- struct Host: Codable {
- let name, title: String
- let photo: String
- let licensesAndCertifications: [LicensesAndCertification]
- let career: [Career]
- let education: [Education]
- enum CodingKeys: String, CodingKey {
- case name, title, photo
- case licensesAndCertifications = "licenses_and_certifications"
- case career, education
- }
- }
- // MARK: - Career
- struct Career: Codable {
- let company, localtion: String
- let timeline: [Timeline]
- }
- // MARK: - Timeline
- struct Timeline: Codable {
- let start, position: String
- let end: String?
- }
- // MARK: - Education
- struct Education: Codable {
- let start, end, place, specialization: String
- let location: String
- }
- // MARK: - LicensesAndCertification
- struct LicensesAndCertification: Codable {
- let issued, name, organization: String
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement