24 lines
467 B
Swift
24 lines
467 B
Swift
//
|
|
// KissContext.swift
|
|
// KissMeConsole
|
|
//
|
|
// Created by ened-book-m1 on 2023/06/07.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
|
|
actor KissContext {
|
|
static let shared = KissContext()
|
|
|
|
private(set) var targetDate: Date = Date(timeIntervalSince1970: 0)
|
|
private(set) var isHoliday: Bool = false
|
|
|
|
private init() { }
|
|
|
|
func updateHoliday(_ isHolyday: Bool, targetDate: Date) {
|
|
self.isHoliday = isHolyday
|
|
self.targetDate = targetDate
|
|
}
|
|
}
|