All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.kit.kastel.sdq.artemis4j.api.artemis.assessment.Result Maven / Gradle / Ivy

Go to download

Artemis4J is a Java library for interacting with the Artemis teaching system.

There is a newer version: 7.5.6
Show newest version
/* Licensed under EPL-2.0 2022-2023. */
package edu.kit.kastel.sdq.artemis4j.api.artemis.assessment;

import com.fasterxml.jackson.annotation.JsonProperty;
import edu.kit.kastel.sdq.artemis4j.api.client.IFeedbackClient;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

public class Result implements Serializable {
	@Serial
	private static final long serialVersionUID = 6637703343535347213L;

	@JsonProperty
	public int id;
	@JsonProperty
	public Date completionDate;
	/**
	 * {@code null} when accessed via #getSubmissions()
	 * ISubmissionsArtemisClient#getSubmissions()} in combination with
	 * {@link Submission#getLatestResult()}.
	 */
	@JsonProperty
	public Feedback[] feedbacks;
	@JsonProperty
	public Boolean successful;
	@JsonProperty
	public double score;
	@JsonProperty
	public Boolean rated;

	public Result() {
		// NOP
	}

	public void init(IFeedbackClient feedbackClient) {
		if (this.feedbacks == null)
			return;
		for (Feedback feedback : this.feedbacks) {
			feedback.init(feedbackClient, this.id);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy