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:
2025-10-06 00:37:59 -04:00
parent dba5511ed5
commit dec8788276
7 changed files with 287 additions and 4 deletions

View File

@@ -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]
}