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

org.tsugi.ags2.objects.Result Maven / Gradle / Ivy

There is a newer version: 23.3
Show newest version
package org.tsugi.ags2.objects;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)

/*  application/vnd.ims.lis.v2.resultcontainer+json

    {
		"id": "https://lms.example.com/context/2923/lineitems/1/results/5323497",
		"scoreOf": "https://lms.example.com/context/2923/lineitems/1",
		"userId": "5323497",
		"resultScore": 0.83,
		"resultMaximum": 1,
		"comment": "This is exceptional work."
	  }
 */

public class Result extends org.tsugi.jackson.objects.JacksonBase { // This is all output-only

	public static final String MIME_TYPE = "application/vnd.ims.lis.v2.result+json";
	public static final String MIME_TYPE_CONTAINER = "application/vnd.ims.lis.v2.resultcontainer+json";

	public static final String CONTENT_TYPE = MIME_TYPE + "; charset=utf-8";
	public static final String CONTENT_TYPE_CONTAINER = MIME_TYPE_CONTAINER + "; charset=utf-8";

	@JsonProperty("id")
	public String id;
	@JsonProperty("scoreOf")
	public String scoreOf;
	@JsonProperty("userId")  // TODO: LTI13 quirk should be subject
	public String userId;  // TODO: LTI13 quirk should be subject
	@JsonProperty("resultScore")
	public Double resultScore;
	@JsonProperty("resultMaximum")
	public Double resultMaximum;
	@JsonProperty("comment")
	public String comment;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy