Query TFL API for Tube and Elizabeth Line status, displaying disruptions as feed cards. Major disruptions (severity 1-6) appear as RIGHT_NOW spotlight cards, minor delays (7-9) as FYI items. - Add TFLDataSource with 2-min cache and severity classification - Add .transitAlert FeedItemType with 0.85 base weight - Wire up async fetch in ContextOrchestrator pipeline - Handle timeout and failure cases gracefully 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
519 B
Swift
23 lines
519 B
Swift
//
|
|
// Winner.swift
|
|
// iris
|
|
//
|
|
// Created by Codex.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum FeedItemType: String, Codable, CaseIterable {
|
|
case weatherAlert = "WEATHER_ALERT"
|
|
case weatherWarning = "WEATHER_WARNING"
|
|
case transit = "TRANSIT"
|
|
case poiNearby = "POI_NEARBY"
|
|
case info = "INFO"
|
|
case nowPlaying = "NOW_PLAYING"
|
|
case currentWeather = "CURRENT_WEATHER"
|
|
case calendarEvent = "CALENDAR_EVENT"
|
|
case stock = "STOCK"
|
|
case transitAlert = "TRANSIT_ALERT"
|
|
case allQuiet = "ALL_QUIET"
|
|
}
|