-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow users to enable SMS and MMS Allow users to associate a messaging application with a SipPeer
- Loading branch information
1 parent
4a6f532
commit af5abb3
Showing
8 changed files
with
309 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/com/bandwidth/iris/sdk/model/SipPeerMessagingApplicationsSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.bandwidth.iris.sdk.model; | ||
|
||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlRootElement; | ||
|
||
@XmlRootElement(name = "ApplicationSettings") | ||
public class SipPeerMessagingApplicationsSettings extends BaseModel { | ||
@XmlElement(name = "HttpMessagingV2AppId") | ||
String applicationId; | ||
|
||
public void setApplicationId(String applicationId) { | ||
this.applicationId = applicationId; | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
src/main/java/com/bandwidth/iris/sdk/model/SipPeerMmsFeature.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
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; | ||
|
||
@XmlRootElement(name = "MmsFeature") | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
public class SipPeerMmsFeature extends BaseModel { | ||
@XmlElement(name = "MmsSettings") | ||
MmsSettings mmsSettings; | ||
@XmlElement(name = "Protocols") | ||
Protocols protocols; | ||
|
||
public SipPeerMmsFeature() | ||
{ | ||
this.mmsSettings = new MmsSettings(); | ||
this.protocols = new Protocols(); | ||
this.protocols.http = new Http(); | ||
this.protocols.http.httpSettings = new HttpSettings(); | ||
} | ||
|
||
private static class MmsSettings extends BaseModel { | ||
@XmlElement(name = "Protocol") | ||
private final String protocol = "HTTP"; | ||
} | ||
|
||
private static class Protocols extends BaseModel { | ||
@XmlElement(name = "HTTP") | ||
Http http; | ||
} | ||
|
||
private static class Http extends BaseModel { | ||
@XmlElement(name = "HttpSettings") | ||
HttpSettings httpSettings = new HttpSettings(); | ||
} | ||
|
||
private static class HttpSettings extends BaseModel { | ||
@XmlElement(name = "ProxyPeerId") | ||
String proxyPeerId = ""; | ||
} | ||
} |
138 changes: 138 additions & 0 deletions
138
src/main/java/com/bandwidth/iris/sdk/model/SipPeerSmsFeature.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
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; | ||
|
||
@XmlRootElement(name = "SipPeerSmsFeature") | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
public class SipPeerSmsFeature extends BaseModel { | ||
@XmlElement(name = "HttpSettings") | ||
HttpSettings httpSettings; | ||
@XmlElement(name = "SipPeerSmsFeatureSettings") | ||
SipPeerSmsFeatureSettings sipPeerSmsFeatureSettings; | ||
|
||
public SipPeerSmsFeature() { | ||
httpSettings = new HttpSettings(); | ||
sipPeerSmsFeatureSettings = new SipPeerSmsFeatureSettings(); | ||
} | ||
|
||
private static class HttpSettings{ | ||
Integer proxyPeerId = null; | ||
} | ||
|
||
private static class SipPeerSmsFeatureSettings extends BaseModel { | ||
@XmlElement(name = "A2pLongCode") | ||
String a2pLongCode; | ||
@XmlElement(name = "A2pMessageClass") | ||
String a2pMessageClass; | ||
@XmlElement(name = "A2pCampaignId") | ||
String a2pCampaignId; | ||
@XmlElement(name = "Protocol") | ||
String protocol = "HTTP"; | ||
@XmlElement(name = "TollFree") | ||
boolean tollFree = false; | ||
@XmlElement(name = "ShortCode") | ||
boolean shortCode = false; | ||
@XmlElement(name = "Zone1") | ||
boolean zone1 = true; | ||
@XmlElement(name = "Zone2") | ||
boolean zone2 = false; | ||
@XmlElement(name = "Zone3") | ||
boolean zone3 = false; | ||
@XmlElement(name = "Zone4") | ||
boolean zone4 = false; | ||
@XmlElement(name = "Zone5") | ||
boolean zone5 = false; | ||
|
||
} | ||
public String getA2pLongCode() { | ||
return this.sipPeerSmsFeatureSettings.a2pLongCode; | ||
} | ||
|
||
public void setA2pLongCode(String a2pLongCode) { | ||
this.sipPeerSmsFeatureSettings.a2pLongCode = a2pLongCode; | ||
} | ||
|
||
public String getA2pMessageClass() { | ||
return this.sipPeerSmsFeatureSettings.a2pMessageClass; | ||
} | ||
|
||
public void setA2pMessageClass(String a2pMessageClass) { | ||
this.sipPeerSmsFeatureSettings.a2pMessageClass = a2pMessageClass; | ||
} | ||
|
||
public String getA2pCampaignId() { | ||
return this.sipPeerSmsFeatureSettings.a2pCampaignId; | ||
} | ||
|
||
public void setA2pCampaignId(String a2pCampaignId) { | ||
this.sipPeerSmsFeatureSettings.a2pCampaignId = a2pCampaignId; | ||
} | ||
|
||
public String getProtocol() { | ||
return this.sipPeerSmsFeatureSettings.protocol; | ||
} | ||
|
||
public void setProtocol(String protocol) { | ||
this.sipPeerSmsFeatureSettings.protocol = protocol; | ||
} | ||
|
||
public boolean isTollFree() { | ||
return this.sipPeerSmsFeatureSettings.tollFree; | ||
} | ||
|
||
public void setTollFree(boolean tollFree) { | ||
this.sipPeerSmsFeatureSettings.tollFree = tollFree; | ||
} | ||
|
||
public boolean isShortCode() { | ||
return this.sipPeerSmsFeatureSettings.shortCode; | ||
} | ||
|
||
public void setShortCode(boolean shortCode) { | ||
this.sipPeerSmsFeatureSettings.shortCode = shortCode; | ||
} | ||
|
||
public boolean isZone1() { | ||
return this.sipPeerSmsFeatureSettings.zone1; | ||
} | ||
|
||
public void setZone1(boolean zone1) { | ||
this.sipPeerSmsFeatureSettings.zone1 = zone1; | ||
} | ||
|
||
public boolean isZone2() { | ||
return this.sipPeerSmsFeatureSettings.zone2; | ||
} | ||
|
||
public void setZone2(boolean zone2) { | ||
this.sipPeerSmsFeatureSettings.zone2 = zone2; | ||
} | ||
|
||
public boolean isZone3() { | ||
return this.sipPeerSmsFeatureSettings.zone3; | ||
} | ||
|
||
public void setZone3(boolean zone3) { | ||
this.sipPeerSmsFeatureSettings.zone3 = zone3; | ||
} | ||
|
||
public boolean isZone4() { | ||
return this.sipPeerSmsFeatureSettings.zone4; | ||
} | ||
|
||
public void setZone4(boolean zone4) { | ||
this.sipPeerSmsFeatureSettings.zone4 = zone4; | ||
} | ||
|
||
public boolean isZone5() { | ||
return this.sipPeerSmsFeatureSettings.zone5; | ||
} | ||
|
||
public void setZone5(boolean zone5) { | ||
this.sipPeerSmsFeatureSettings.zone5 = zone5; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters