Files
aris-old/IrisCompanion/iris/Models/Winner.swift
2026-01-08 19:16:32 +00:00

38 lines
762 B
Swift

//
// Winner.swift
// iris
//
// Created by Codex.
//
import Foundation
enum WinnerType: 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 allQuiet = "ALL_QUIET"
}
struct Winner: Codable, Equatable {
let id: String
let type: WinnerType
let title: String
let subtitle: String
let priority: Double
let ttlSec: Int
enum CodingKeys: String, CodingKey {
case id
case type
case title
case subtitle
case priority
case ttlSec = "ttl_sec"
}
}