-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5261122
commit 845f413
Showing
9 changed files
with
131 additions
and
83 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// Models.swift | ||
// | ||
// | ||
// Created by Sean Molenaar on 07/01/2024. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct Conference { | ||
static let elementname: String = "conference" | ||
|
||
public let title: String | ||
public let subtitle: String? | ||
|
||
public let venue: String | ||
public let city: String | ||
|
||
public let start: Date | ||
public let end: Date | ||
|
||
public let dayChange: String | ||
public let timeslotDuration: TimeInterval | ||
|
||
public var tracks: [Track] = [] | ||
public var days: [ConferenceDay] = [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// Models.swift | ||
// | ||
// | ||
// Created by Sean Molenaar on 07/01/2024. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct ConferenceDay { | ||
static let elementname: String = "day" | ||
|
||
public let index: Int | ||
public let date: Date | ||
public let rooms: [Room] | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// Models.swift | ||
// | ||
// | ||
// Created by Sean Molenaar on 07/01/2024. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct Event { | ||
public let id: Int | ||
public let start: Date | ||
public let duration: TimeInterval | ||
public let room: String | ||
public let slug: String | ||
public let title: String | ||
public let subtitle: String? | ||
public let track: String | ||
public let type: String | ||
public let language: Locale | ||
public let abstract: String | ||
public let description: String | ||
public let authors: [Person] | ||
public let attachments: [Attachment] | ||
public let links: [Link] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// Models.swift | ||
// | ||
// | ||
// Created by Sean Molenaar on 07/01/2024. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct Person { | ||
public let id: Int | ||
public let name: String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// Models.swift | ||
// | ||
// | ||
// Created by Sean Molenaar on 07/01/2024. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct Attachment { | ||
public let title: String | ||
public let url: URL | ||
public let type: String | ||
} | ||
|
||
public struct Link { | ||
public let title: String | ||
public let url: URL | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// Models.swift | ||
// | ||
// | ||
// Created by Sean Molenaar on 07/01/2024. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct Room { | ||
public let name: String | ||
public let events: [Event] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// Models.swift | ||
// | ||
// | ||
// Created by Sean Molenaar on 07/01/2024. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct Track { | ||
static let elementname: String = "tracks" | ||
|
||
public let name: String | ||
public let metadata: [String: Any] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters