Skip to content

Commit

Permalink
Merge pull request #57 from Bandwidth/DX-2922
Browse files Browse the repository at this point in the history
DX-2922 ServiceTypes Model
  • Loading branch information
brianluisgomez committed Oct 14, 2022
2 parents bda3722 + 24b6470 commit 845dc50
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.bandwidth.iris.sdk.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "TelephoneNumberDetails")
@XmlAccessorType(XmlAccessType.FIELD)
Expand Down Expand Up @@ -32,6 +31,10 @@ public class TelephoneNumberDetails extends TelephoneNumberDetail {
@XmlElement(name = "Lata")
private String lata;

@XmlElementWrapper(name = "ServiceTypes")
@XmlElement(name = "ServiceType")
private List<String> serviceTypes = new ArrayList<>();

public String getTier() {
return tier;
}
Expand Down Expand Up @@ -95,4 +98,8 @@ public String getLata() {
public void setLata(String lata) {
this.lata = lata;
}

public List<String> getServiceTypes() { return serviceTypes; }

public void setServiceTypes(List<String> serviceTypes) { this.serviceTypes = serviceTypes; }
}

0 comments on commit 845dc50

Please sign in to comment.