Skip to content

Commit 35e17d3

Browse files
author
Doug Black
committed
add a bunch of missing methods
1 parent 77b009d commit 35e17d3

17 files changed

+501
-337
lines changed

src/main/java/com/twilio/sdk/resource/factory/CallFactory.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,20 @@
1414
public interface CallFactory {
1515

1616
/**
17-
* Creates the.
17+
* Creates the Call.
1818
*
19-
* @param params the params
19+
* @param params the params map
2020
* @return the call
2121
* @throws TwilioRestException
2222
*/
2323
public Call create(Map<String, String> params) throws TwilioRestException;
24+
25+
/**
26+
* Creates the Call.
27+
*
28+
* @param params the params list
29+
* @return the call
30+
* @throws TwilioRestException
31+
*/
2432
public Call create(List<NameValuePair> params) throws TwilioRestException;
2533
}

src/main/java/com/twilio/sdk/resource/factory/sip/AddressFactory.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package com.twilio.sdk.resource.factory.sip;
22

33
import java.util.Map;
4+
import java.util.List;
45

56
import com.twilio.sdk.TwilioRestException;
67
import com.twilio.sdk.resource.instance.sip.Address;
8+
import org.apache.http.NameValuePair;
79

810
// TODO: Auto-generated Javadoc
911
/**
@@ -18,10 +20,19 @@ public interface AddressFactory {
1820
/**
1921
* Creates the address
2022
*
21-
* @param params the params
23+
* @param params the params map
2224
* @return the address
2325
* @throws TwilioRestException
2426
*/
2527
public Address create(Map<String, String> params) throws TwilioRestException;
2628

29+
/**
30+
* Creates the address
31+
*
32+
* @param params the params list
33+
* @return the address
34+
* @throws TwilioRestException
35+
*/
36+
public Address create(List<NameValuePair> params) throws TwilioRestException;
37+
2738
}

src/main/java/com/twilio/sdk/resource/factory/sip/CredentialFactory.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package com.twilio.sdk.resource.factory.sip;
22

33
import java.util.Map;
4+
import java.util.List;
45

56
import com.twilio.sdk.TwilioRestException;
67
import com.twilio.sdk.resource.instance.sip.Credential;
8+
import org.apache.http.NameValuePair;
79

810
// TODO: Auto-generated Javadoc
911
/**
@@ -17,9 +19,18 @@ public interface CredentialFactory {
1719
/**
1820
* Creates the credential
1921
*
20-
* @param params the params
22+
* @param params the params map
2123
* @return the credential
2224
* @throws TwilioRestException
2325
*/
2426
public Credential create(Map<String, String> params) throws TwilioRestException;
27+
28+
/**
29+
* Creates the credential
30+
*
31+
* @param params the params list
32+
* @return the credential
33+
* @throws TwilioRestException
34+
*/
35+
public Credential create(List<NameValuePair> params) throws TwilioRestException;
2536
}

src/main/java/com/twilio/sdk/resource/factory/sip/CredentialListFactory.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package com.twilio.sdk.resource.factory.sip;
22

33
import java.util.Map;
4+
import java.util.List;
45

56
import com.twilio.sdk.TwilioRestException;
67
import com.twilio.sdk.resource.instance.sip.CredentialListInstance;
8+
import org.apache.http.NameValuePair;
79

810
// TODO: Auto-generated Javadoc
911
/**
@@ -17,9 +19,19 @@ public interface CredentialListFactory {
1719
/**
1820
* Creates the credential list.
1921
*
20-
* @param params the params
22+
* @param params the params map
2123
* @return the credential list
2224
* @throws TwilioRestException
2325
*/
2426
public CredentialListInstance create(Map<String, String> params) throws TwilioRestException;
27+
28+
/**
29+
* Creates the credential list.
30+
*
31+
* @param params the params list
32+
* @return the credential list
33+
* @throws TwilioRestException
34+
*/
35+
public CredentialListInstance create(List<NameValuePair> params) throws TwilioRestException;
36+
2537
}

src/main/java/com/twilio/sdk/resource/factory/sip/CredentialListMappingFactory.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package com.twilio.sdk.resource.factory.sip;
22

33
import java.util.Map;
4+
import java.util.List;
45

56
import com.twilio.sdk.TwilioRestException;
67
import com.twilio.sdk.resource.instance.sip.CredentialListMapping;
8+
import org.apache.http.NameValuePair;
79

810
// TODO: Auto-generated Javadoc
911
/**
@@ -18,10 +20,19 @@ public interface CredentialListMappingFactory {
1820
/**
1921
* Creates the ip access control list mapping
2022
*
21-
* @param params the params
23+
* @param params the params map
2224
* @return the ip access control list mapping
2325
* @throws TwilioRestException
2426
*/
2527
public CredentialListMapping create(Map<String, String> params) throws TwilioRestException;
2628

29+
/**
30+
* Creates the ip access control list mapping
31+
*
32+
* @param params the params list
33+
* @return the ip access control list mapping
34+
* @throws TwilioRestException
35+
*/
36+
public CredentialListMapping create(List<NameValuePair> params) throws TwilioRestException;
37+
2738
}

src/main/java/com/twilio/sdk/resource/factory/sip/DomainFactory.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package com.twilio.sdk.resource.factory.sip;
22

33
import java.util.Map;
4+
import java.util.List;
45

56
import com.twilio.sdk.TwilioRestException;
67
import com.twilio.sdk.resource.instance.sip.Domain;
8+
import org.apache.http.NameValuePair;
79

810
// TODO: Auto-generated Javadoc
911
/**
@@ -17,9 +19,18 @@ public interface DomainFactory {
1719
/**
1820
* Creates the sip domain.
1921
*
20-
* @param params the params
22+
* @param params the params map
2123
* @return the sip domain
2224
* @throws TwilioRestException
2325
*/
2426
public Domain create(Map<String, String> params) throws TwilioRestException;
27+
28+
/**
29+
* Creates the sip domain.
30+
*
31+
* @param params the params list
32+
* @return the sip domain
33+
* @throws TwilioRestException
34+
*/
35+
public Domain create(List<NameValuePair> params) throws TwilioRestException;
2536
}

src/main/java/com/twilio/sdk/resource/factory/sip/IpAccessControlListMappingFactory.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package com.twilio.sdk.resource.factory.sip;
22

33
import java.util.Map;
4+
import java.util.List;
45

56
import com.twilio.sdk.TwilioRestException;
67
import com.twilio.sdk.resource.instance.sip.IpAccessControlListMapping;
8+
import org.apache.http.NameValuePair;
79

810
// TODO: Auto-generated Javadoc
911
/**
@@ -18,10 +20,19 @@ public interface IpAccessControlListMappingFactory {
1820
/**
1921
* Creates the ip access control list mapping
2022
*
21-
* @param params the params
23+
* @param params the params map
2224
* @return the ip access control list mapping
2325
* @throws TwilioRestException
2426
*/
2527
public IpAccessControlListMapping create(Map<String, String> params) throws TwilioRestException;
2628

29+
/**
30+
* Creates the ip access control list mapping
31+
*
32+
* @param params the param list
33+
* @return the ip access control list mapping
34+
* @throws TwilioRestException
35+
*/
36+
public IpAccessControlListMapping create(List<NameValuePair> params) throws TwilioRestException;
37+
2738
}

src/main/java/com/twilio/sdk/resource/instance/Account.java

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -931,8 +931,8 @@ public AuthorizedConnectApp getAuthorizedConnectApp(String sid) {
931931
*
932932
* @return the sip domain
933933
*/
934-
public DomainList getDomainList() {
935-
return this.getDomainList(new HashMap<String, String>());
934+
public DomainList getDomains() {
935+
return this.getDomains(new HashMap<String, String>());
936936
}
937937

938938
/**
@@ -944,7 +944,7 @@ public DomainList getDomainList() {
944944
* the filters
945945
* @return the sip domain list
946946
*/
947-
public DomainList getDomainList(Map<String, String> filters) {
947+
public DomainList getDomains(Map<String, String> filters) {
948948
DomainList list = new DomainList(this.getClient(),
949949
filters);
950950
list.setRequestAccountSid(this.getRequestAccountSid());
@@ -962,15 +962,23 @@ public Domain getDomain(String sid) {
962962
return domain;
963963
}
964964

965+
/**
966+
* Gets a DomainFactory
967+
* @return a DomainFactory that lets you create new Domains
968+
*/
969+
public DomainFactory getDomainFactory() {
970+
return this.getDomains();
971+
}
972+
965973
/**
966974
* Gets the sip IpAccessControlLists list.
967975
*
968976
* <a href="http://www.twilio.com/docs/api/rest/sip-ip-access-control-lists">http://www.twilio.com/docs/api/rest/sip-ip-access-control-lists</a>
969977
*
970978
* @return the sip IpAccessControlList
971979
*/
972-
public IpAccessControlListList getIpAccessControlListList() {
973-
return this.getIpAccessControlListList(new HashMap<String, String>());
980+
public IpAccessControlListList getIpAccessControlLists() {
981+
return this.getIpAccessControlLists(new HashMap<String, String>());
974982
}
975983

976984
/**
@@ -982,7 +990,7 @@ public IpAccessControlListList getIpAccessControlListList() {
982990
* the filters
983991
* @return the sip IpAccessControlList list
984992
*/
985-
public IpAccessControlListList getIpAccessControlListList(Map<String, String> filters) {
993+
public IpAccessControlListList getIpAccessControlLists(Map<String, String> filters) {
986994
IpAccessControlListList list = new IpAccessControlListList(this.getClient(),
987995
filters);
988996
list.setRequestAccountSid(this.getRequestAccountSid());
@@ -1000,6 +1008,14 @@ public IpAccessControlList getIpAccessControlList(String sid) {
10001008
return ipAccessControlList;
10011009
}
10021010

1011+
/**
1012+
* Gets an IpAccessControlListFactory
1013+
* @return an IpAccessControlListFactory that lets you create new IpAccessControlLists
1014+
*/
1015+
public IpAccessControlListFactory getIpAccessControlListFactory() {
1016+
return this.getIpAccessControlLists();
1017+
}
1018+
10031019
/**
10041020
* Gets the sip CredentialLists list.
10051021
*
@@ -1008,7 +1024,7 @@ public IpAccessControlList getIpAccessControlList(String sid) {
10081024
* @return the sip CredentialList
10091025
*/
10101026
public CredentialListList getCredentialLists() {
1011-
return this.getCredentialListList(new HashMap<String, String>());
1027+
return this.getCredentialLists(new HashMap<String, String>());
10121028
}
10131029

10141030
/**
@@ -1020,7 +1036,7 @@ public CredentialListList getCredentialLists() {
10201036
* the filters
10211037
* @return the sip CredentialList list
10221038
*/
1023-
public CredentialListList getCredentialListList(Map<String, String> filters) {
1039+
public CredentialListList getCredentialLists(Map<String, String> filters) {
10241040
CredentialListList list = new CredentialListList(this.getClient(),
10251041
filters);
10261042
list.setRequestAccountSid(this.getRequestAccountSid());
@@ -1038,6 +1054,14 @@ public CredentialListInstance getCredentialList(String sid) {
10381054
return credentialList;
10391055
}
10401056

1057+
/**
1058+
* Gets a CredentialListFactory
1059+
* @return the CredentialListFactory that lets you make new CredentialLists
1060+
*/
1061+
public CredentialListFactory getCredentialListFactory() {
1062+
return this.getCredentialLists();
1063+
}
1064+
10411065
/**
10421066
* Get the developer sandbox
10431067
*

0 commit comments

Comments
 (0)