Skip to content

Commit

Permalink
Merge pull request #58 from Bandwidth/DX-3052
Browse files Browse the repository at this point in the history
DX-3052 Fixed Payload for importTnChecker
  • Loading branch information
brianluisgomez committed Dec 6, 2022
2 parents 845dc50 + 5c0522b commit eb72e18
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@
@XmlAccessorType(XmlAccessType.FIELD)
public class ImportTnCheckerPayload extends BaseModel {

@XmlElement( name = "SiteId")
private int siteId;

@XmlElement( name = "SipPeerId")
private int sipPeer;

@XmlElementWrapper(name = "TelephoneNumbers")
@XmlElement(name = "TelephoneNumber")
private List<String> telephoneNumberList;

@XmlElementWrapper(name = "ImportTnErrors")
@XmlElement(name ="ImportTnError")
private List<ImportTnError> importTnErrorList;
Expand All @@ -30,4 +37,20 @@ public List<ImportTnError> getImportTnErrorList() {
public void setImportTnErrorList(List<ImportTnError> importTnErrorList) {
this.importTnErrorList = importTnErrorList;
}

public int getSiteId() {
return siteId;
}

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

public int getSipPeer() {
return sipPeer;
}

public void setSipPeer(int sipPeer) {
this.sipPeer = sipPeer;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public void TestCheck() throws Exception {

ImportTnCheckerPayload payload = new ImportTnCheckerPayload();
payload.setTelephoneNumberList(numbers);
payload.setSipPeer(500025);
payload.setSiteId(486);

ImportTnCheckerResponse response = ImportTnChecker.Check(getDefaultClient(), payload );
ImportTnCheckerPayload resPayload = response.getImportTnCheckerPayload();
Expand Down

0 comments on commit eb72e18

Please sign in to comment.