Skip to content

Commit 6ad2a46

Browse files
committed
Replace Result with ParticipationResultDTO in CourseForDashboard
1 parent e2982e9 commit 6ad2a46

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Sources/SharedModels/CourseForDashboard.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@ public struct CourseForDashboard: Codable {
1515
public var modelingScores: CourseScore?
1616
public var fileUploadScores: CourseScore?
1717
public var quizScores: CourseScore?
18-
public var participationResults: [Result]?
18+
public var participationResults: [ParticipationResultDTO]?
1919
}
2020

2121
extension CourseForDashboard: Identifiable {
2222
public var id: Int {
2323
course.id
2424
}
2525
}
26+
27+
public struct ParticipationResultDTO: Codable {
28+
public var score: Double?
29+
public var rated: Bool?
30+
public var participationId: Int?
31+
}

0 commit comments

Comments
 (0)