25 lines
784 B
Swift
25 lines
784 B
Swift
import ActivityKit
|
|
import Foundation
|
|
|
|
// MARK: - 駅ロック Live Activity Attributes
|
|
|
|
struct StationLockAttributes: ActivityAttributes {
|
|
public struct ContentState: Codable, Hashable {
|
|
/// 次の列車の発車時刻 ("HH:mm" 形式)
|
|
var nextTrainTime: String
|
|
/// 次の列車の行き先
|
|
var nextTrainDestination: String
|
|
/// 次の列車のホーム番線 (例: "1番線")
|
|
var nextTrainPlatform: String
|
|
/// その次の列車の発車時刻 ("HH:mm" 形式、なければ空文字)
|
|
var followingTrainTime: String
|
|
/// その次の列車の行き先
|
|
var followingTrainDestination: String
|
|
/// 最終更新日時
|
|
var updatedAt: Date
|
|
}
|
|
|
|
/// 駅名
|
|
var stationName: String
|
|
}
|