File tree Expand file tree Collapse file tree 3 files changed +31
-3
lines changed
Presentation/Sources/PresentationSupport Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ public enum TDateFormat: String {
2020 case yyyyMMddSlash = " yyyy/MM/dd "
2121 /// "yyyy.MM.dd"
2222 case yyyyMMddDot = " yyyy.MM.dd "
23+ /// ""Mμ dμΌ"
24+ case Mμ_dμΌ = " Mμ dμΌ "
2325 /// "EE"
2426 case EE = " EE "
2527}
Original file line number Diff line number Diff line change 88
99import Foundation
1010
11- enum TDateFormatUtility {
11+ public enum TDateFormatUtility {
1212 /// `NSCache`λ₯Ό νμ©ν ν¬λ§·λ³ `DateFormatter` μΊμ±
1313 private static let cache : NSCache < NSString , DateFormatter > = {
1414 let cache : NSCache = NSCache < NSString , DateFormatter > ( )
1515 return cache
1616 } ( )
1717
1818 /// ν¬λ§·μ λ§λ `DateFormatter` λ°ν (μΊμ±λ μΈμ€ν΄μ€ μ¬μ¬μ©)
19- static func formatter( for format: TDateFormat ) -> DateFormatter {
19+ public static func formatter( for format: TDateFormat ) -> DateFormatter {
2020 // μΊμλ DateFormatterκ° μμΌλ©΄ λ°ν, μμΌλ©΄ μμ± ν μ μ₯
2121 if let cachedFormatter = cache. object ( forKey: format. rawValue as NSString ) {
2222 return cachedFormatter
Original file line number Diff line number Diff line change 66// Copyright Β© 2025 yapp25thTeamTnT. All rights reserved.
77//
88
9- import Foundation
9+ import Domain
10+
11+ extension AlarmItemEntity {
12+ /// μ°κ²° μλ£, μ°κ²° ν΄μ λ±
13+ var alarmTypeText : String {
14+ switch self . alarmType {
15+ case . traineeConnected:
16+ return " νΈλ μ΄λ μ°κ²° μλ£ "
17+ case . traineeDisconnected:
18+ return " νΈλ μ΄λ μ°κ²° ν΄μ "
19+ case . trainerDisconnected:
20+ return " νΈλ μ΄λ μ°κ²° ν΄μ "
21+ }
22+ }
23+
24+ /// μλ λ³Έλ¬Έ
25+ var alarmMainText : String {
26+ switch self . alarmType {
27+ case . traineeConnected( let name) :
28+ return " \( name) νμκ³Ό μ°κ²°λμμ΄μ "
29+ case . traineeDisconnected( let name) :
30+ return " \( name) νμμ΄ μ°κ²°μ λμμ΄μ "
31+ case . trainerDisconnected( let name) :
32+ return " \( name) νΈλ μ΄λκ° μ°κ²°μ λμμ΄μ "
33+ }
34+ }
35+ }
You canβt perform that action at this time.
0 commit comments