Skip to content

Commit

Permalink
feat: align with new platform registration notification
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGiulianelli committed Nov 30, 2024
1 parent 77f884d commit 30e7274
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,20 @@
*/
public final class PlatformRegistration {
private final String self;
private final String dtUri;

/**
* Default constructor.
* @param self the field where the WoDT Platform send its URL
* @param dtUri the uri of this dt, that has been registered
*/
@JsonCreator
public PlatformRegistration(@JsonProperty("self") final String self) {
public PlatformRegistration(
@JsonProperty("self") final String self,
@JsonProperty("dtUri") final String dtUri
) {
this.self = self;
this.dtUri = dtUri;
}

/**
Expand All @@ -42,4 +48,12 @@ public PlatformRegistration(@JsonProperty("self") final String self) {
public String getSelf() {
return this.self;
}

/**
* Obtain the dtUri of the registered DT.
* @return the dt uri
*/
public String getDtUri() {
return this.dtUri;
}
}

0 comments on commit 30e7274

Please sign in to comment.