-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRoutineEntity.swift
More file actions
45 lines (42 loc) · 1.32 KB
/
Copy pathRoutineEntity.swift
File metadata and controls
45 lines (42 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// RoutineEntity.swift
// Domain
//
// Created by 최정인 on 7/30/25.
//
public struct RoutineEntity {
public let routineId: String?
public let historySeq: Int
public let routineName: String
public let repeatDay: [WeekType]
public let executionTime: String
public let subRoutineSearchResultDto: [SubRoutineEntity]
public let modifiedYn: Bool
public let routineCompletionId: Int?
public let completeYn: Bool
public let routineType: String
public init(
routineId: String?,
historySeq: Int,
routineName: String,
repeatDay: [String]?,
executionTime: String,
subRoutineSearchResultDto: [SubRoutineEntity],
modifiedYn: Bool,
routineCompletionId: Int?,
completeYn: Bool,
routineType: String
) {
let weekType: [WeekType] = repeatDay?.compactMap(WeekType.init(rawValue:)) ?? []
self.routineId = routineId
self.historySeq = historySeq
self.routineName = routineName
self.repeatDay = weekType
self.executionTime = executionTime
self.subRoutineSearchResultDto = subRoutineSearchResultDto
self.modifiedYn = modifiedYn
self.routineCompletionId = routineCompletionId
self.completeYn = completeYn
self.routineType = routineType
}
}