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 191073b commit c25061a
Showing 1 changed file with 22 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,39 @@

/**
* Presenter class to be able to deserialize platform registration data from the API.
* It contains the self field where the WoDT Digital Twins Platform send its URL.
*/
* It contains the self field where the WoDT Digital Twins Platform send its URL.
*/
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 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;
}

/**
* Obtain the url of the Platform that added the DT.
* @return the Platform url
*/
* @return the Platform url
*/
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 c25061a

Please sign in to comment.