-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathAgentProfile.java
More file actions
38 lines (30 loc) · 927 Bytes
/
AgentProfile.java
File metadata and controls
38 lines (30 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Copyright 2016-2023 Berry Cloud Ltd. All rights reserved.
*/
package dev.learning.xapi.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.node.ObjectNode;
import dev.learning.xapi.model.validation.constraints.ValidActor;
import jakarta.validation.Valid;
import lombok.Builder;
import lombok.Value;
/**
* This class represents the xAPI Agent Profile object.
*
* @author Thomas Turrell-Croft
* @see <a href=
* "https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Communication.md#agentprofres">xAPI
* Agent Profile</a>
*/
@Value
@Builder
@JsonInclude(Include.NON_EMPTY)
public class AgentProfile {
@Valid
@ValidActor
private Agent agent;
private String profileId;
private ObjectNode profile;
// **Warning** do not add fields that are not required by the xAPI specification.
}