mirror of
https://github.com/NinjaCheetah/RIT-Dining.git
synced 2026-03-05 05:25:29 -05:00
Added weekend food truck information
You can now see the list of food trucks that are coming to RIT on the weekends and their hours. This data is scraped directly from the RIT Events website which means that accessing it isn't the best, but it works. The code behind it is really bad right now, but it works as expected currently and will be improved soon™️
This commit is contained in:
@@ -79,7 +79,7 @@ struct VisitingChef: Equatable, Hashable {
|
||||
let description: String
|
||||
var openTime: Date
|
||||
var closeTime: Date
|
||||
let status: VisitingChefStatus
|
||||
var status: VisitingChefStatus
|
||||
}
|
||||
|
||||
// A daily special at a location.
|
||||
@@ -99,7 +99,7 @@ struct DiningLocation: Identifiable, Hashable {
|
||||
let date: Date
|
||||
let diningTimes: [DiningTimes]?
|
||||
var open: OpenStatus
|
||||
let visitingChefs: [VisitingChef]?
|
||||
var visitingChefs: [VisitingChef]?
|
||||
let dailySpecials: [DailySpecial]?
|
||||
}
|
||||
|
||||
@@ -129,3 +129,12 @@ struct WeeklyHours: Hashable {
|
||||
let date: Date
|
||||
let timeStrings: [String]
|
||||
}
|
||||
|
||||
// A weekend food trucks even representing when it's happening and what food trucks will be there.
|
||||
struct FoodTruckEvent: Hashable {
|
||||
let date: Date
|
||||
let openTime: Date
|
||||
let closeTime: Date
|
||||
let location: String
|
||||
let trucks: [String]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user