Skip to content

Commit 504a20e

Browse files
authored
Merge pull request #12 from ls1intum/endpoint-change/course-for-dashboard-dto
`Endpoint Change`: Replace Result with ParticipationResultDTO in CourseForDashboard
2 parents aa5eacb + 3c11fb3 commit 504a20e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Sources/SharedModels/CourseForDashboard.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// File.swift
3-
//
3+
//
44
//
55
// Created by Sven Andabaka on 25.04.23.
66
//
@@ -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)