//
//  RegisteredEca.swift
//  Sailassist
//
//  Created by 三浦薫巳 on 2023/10/27.
//

import Foundation
import CoreLocation

class RegisteredEca: ObservableObject {
    @Published var id: UInt32 = 0
    @Published var isEnable: Bool = false      //ECA有効
    @Published var isRunning: Bool = false     //ECA実行中
    @Published var name: String = ""           //ECA名称
    @Published var swNotice: UInt32 = 6        //ECA通知[NM]
    @Published var swStart: UInt32 = 5         //ECA開始[NM]
    @Published var swFinish: UInt32 = 4        //ECA終了[NM]
    @Published var datetime: String = ""       //時刻（UTC ISO8601準拠）
    @Published var color: String = ""          //ライン色（ARGB）
    @Published var width: UInt32 = 1           //ライン幅
    @Published var points: [CLLocationCoordinate2D] = []

    init?( ecaName: String ) {
        self.name = ecaName
    }
}
