Skip to content
Snippets Groups Projects
Commit 15c3dd0d authored by Christian's avatar Christian
Browse files

feat. ansatz, um eingaben in db zu schreiben

parent 3fb4d80c
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ import java.util.Arrays;
import java.util.List;
public class PeerAssessmentDummy implements IPeerAssessment {
@Override
public void addAssessmentDataToDB(Assessment assessment) {
}
......@@ -33,10 +34,8 @@ public class PeerAssessmentDummy implements IPeerAssessment {
incorrectAnswers.add("alle beide");
sampleQuiz = new Quiz("multiple", "Ist das nun des Pudels wahrer Kern?", correctAnswers, incorrectAnswers);
}
return sampleQuiz;
}
public ArrayList<Quiz> getQuiz(String projectId) {
ArrayList<String> correctAnswers = new ArrayList<String>();
ArrayList<String> incorrectAnswers = new ArrayList<String>();
......
package unipotsdam.gf.modules.assessment.controller.view;
import unipotsdam.gf.core.management.user.User;
import unipotsdam.gf.interfaces.IPeerAssessment;
import unipotsdam.gf.modules.assessment.controller.model.Assessment;
import unipotsdam.gf.modules.assessment.controller.model.*;
import unipotsdam.gf.modules.assessment.controller.service.PeerAssessment;
import unipotsdam.gf.modules.assessment.controller.service.PeerAssessmentDummy;
import javax.annotation.PostConstruct;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import java.util.ArrayList;
import java.util.List;
@Path("/assessments")
public class AssessmentView implements IPeerAssessment{
private static IPeerAssessment peer = new PeerAssessmentDummy();
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("/calculate2")
@Override
public List<Grading> calculateAssessment(ArrayList<Performance> totalPerformance) {
return peer.calculateAssessment(totalPerformance);
}
@Override
public void addAssessmentDataToDB(Assessment assessment) {
}
@Override
public Quiz getQuiz(String projectId, String groupId) {
return null;
}
@Override
public Assessment getAssessmentDataFromDB(StudentIdentifier student) {
return null;
}
@Override
public void createQuiz(StudentAndQuiz studentAndQuiz) {
}
@Override
public ArrayList<Performance> getTotalAssessment(StudentIdentifier studentIdentifier) {
return null;
}
@Override
public int meanOfAssessement(String ProjectId) {
return 0;
}
@Override
public ArrayList<Quiz> getQuiz(String projectId) {
return null;
}
@Override
public void postPeerRating(ArrayList<PeerRating> peerRatings, String projectId, String groupId) {
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment