mirror of
https://github.com/NinjaCheetah/RIT-Dining.git
synced 2025-12-02 01:21:35 -05:00
Dining locations that also exist on FD MealPlanner now have a "View Menu" button under the favorite/OnDemand/map buttons that take you to a new view that pulls the location's menu from FD MealPlanner. You can view all of the menu items that have actually been added to that site, and tap them for more details (which will be expanded on later). Searching the item list is supported, with more filtering options coming in the next update. Meal periods can be browsed using the clock button in the top right for locations that are open more than once per day. Other changes: - App renamed from "RIT Dining" to "TigerDine" to not get me in trouble for an App Store release - Slightly changed the way that dining locations' short descriptions and current open times are displayed in the detail view - Fixed the box truck icon used in the food truck view being squished
26 lines
789 B
Swift
26 lines
789 B
Swift
//
|
|
// TCtoFDMPMap.swift
|
|
// RIT Dining
|
|
//
|
|
// Created by Campbell on 11/8/25.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
/// Maps the IDs used by TigerCenter to the locationId and accountId values used by FD MealPlanner. This is used to get menus for locations from their detail views.
|
|
let tCtoFDMPMap: [Int: (Int, Int)] = [
|
|
// These are ordered based on the way that they're ordered in the FD MealPlanner search API response.
|
|
30: (1, 1), // Artesano
|
|
31: (2, 2), // Beanz
|
|
23: (7, 7), // Crossroads
|
|
25: (8, 8), // Cantina
|
|
34: (6, 6), // Ctr-Alt-DELi
|
|
21: (10, 10), // Gracie's
|
|
22: (4, 4), // Brick City Cafe
|
|
441: (11, 11), // Loaded Latke
|
|
38: (12, 12), // Midnight Oil
|
|
26: (14, 4), // RITZ
|
|
9041: (18, 17), // The College Grind
|
|
24: (15, 14), // The Commons
|
|
]
|