Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fltrail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fides
fltrail
Commits
56d37665
Commit
56d37665
authored
6 years ago
by
Axel
Browse files
Options
Downloads
Patches
Plain Diff
Stash
parent
2dba2114
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gemeinsamforschen/src/main/java/unipotsdam/gf/modules/assessment/controller/view/QuizView.java
+2
-19
2 additions, 19 deletions
...tsdam/gf/modules/assessment/controller/view/QuizView.java
with
2 additions
and
19 deletions
gemeinsamforschen/src/main/java/unipotsdam/gf/modules/assessment/controller/view/QuizView.java
+
2
−
19
View file @
56d37665
...
...
@@ -45,25 +45,8 @@ public class QuizView {
@POST
@Consumes
(
MediaType
.
APPLICATION_JSON
)
@Path
(
"/peerRating/project/{projectId}"
)
public
void
postPeerRating
(
String
peerRatings
,
@PathParam
(
"projectId"
)
String
projectId
)
throws
IOException
{
ArrayList
data
=
new
ObjectMapper
().
readValue
(
peerRatings
,
ArrayList
.
class
);
ArrayList
<
PeerRating
>
result
=
new
ArrayList
<>();
for
(
Object
peer:
data
){
try
{
//todo: What the fuck? =) kA was dieses getField is supposed to do aber ich hätte gern fromPeer, toPeer und workRating aus dem Objekt
Object
what
=
peer
.
getClass
();
Field
[]
the
=
((
Class
)
what
).
getFields
();
Field
from
=
peer
.
getClass
().
getField
(
"0"
);
Field
to
=
peer
.
getClass
().
getField
(
"1"
);
Field
workRating
=
peer
.
getClass
().
getField
(
"2"
);
}
catch
(
Exception
e
){
return
;
}
PeerRating
rating
=
new
PeerRating
();
}
peer
.
postPeerRating
(
result
,
projectId
);
public
void
postPeerRating
(
ArrayList
<
PeerRating
>
peerRatings
,
@PathParam
(
"projectId"
)
String
projectId
)
throws
IOException
{
peer
.
postPeerRating
(
peerRatings
,
projectId
);
}
public
void
answerQuiz
(
StudentAndQuiz
studentAndQuiz
,
QuizAnswer
quizAnswer
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment