Skip to content

Commit

Permalink
Merge pull request #138 from IABTechLab/tjm-UID2-1899-add-setters-to-…
Browse files Browse the repository at this point in the history
…service-service-link

Make service and service link properties settable
  • Loading branch information
thomasm-ttd authored Oct 3, 2023
2 parents 6613b29 + 965d67a commit 85bfebd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
12 changes: 10 additions & 2 deletions src/main/java/com/uid2/shared/model/Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public class Service {
@JsonProperty("service_id")
private final int serviceId;
@JsonProperty("site_id")
private final int siteId;
private final String name;
private int siteId;
private String name;
private Set<Role> roles;

public Service(int serviceId, int siteId, String name, Set<Role> roles) {
Expand All @@ -30,10 +30,18 @@ public int getSiteId() {
return siteId;
}

public void setSiteId(int siteId) {
this.siteId = siteId;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public Set<Role> getRoles() {
return roles;
}
Expand Down
11 changes: 9 additions & 2 deletions src/main/java/com/uid2/shared/model/ServiceLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public class ServiceLink {
@JsonProperty("service_id")
private final int serviceId;
@JsonProperty("link_id")
private final String linkId;
private final String name;
private String linkId;
private String name;

public ServiceLink(String linkId, int serviceId, int siteId, String name) {
this.linkId = linkId;
Expand All @@ -24,6 +24,10 @@ public String getLinkId() {
return linkId;
}

public void setLinkId(String linkId) {
this.linkId = linkId;
}

public int getServiceId() {
return serviceId;
}
Expand All @@ -35,6 +39,9 @@ public int getSiteId() {
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}

@Override
public String toString() {
Expand Down

0 comments on commit 85bfebd

Please sign in to comment.