Skip to content

Commit 3177d0f

Browse files
author
Doug Black
committed
merge sip-in
2 parents 6f0f3a6 + ee66108 commit 3177d0f

26 files changed

+2424
-116
lines changed

src/main/java/com/twilio/sdk/resource/InstanceResource.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ public Object getObject(String name) {
9898
return prop;
9999
}
100100

101-
102101
/**
103102
* Sets the property as an Object
104103
*
@@ -109,7 +108,6 @@ protected void setProperty(String name, Object value) {
109108
properties.put(name, value);
110109
}
111110

112-
113111
/**
114112
* Update.
115113
*

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
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package com.twilio.sdk.resource.factory.sip;
2+
3+
import java.util.Map;
4+
import java.util.List;
5+
6+
import com.twilio.sdk.TwilioRestException;
7+
import com.twilio.sdk.resource.instance.sip.Credential;
8+
import org.apache.http.NameValuePair;
9+
10+
// TODO: Auto-generated Javadoc
11+
/**
12+
* A factory for creating Credential objects.
13+
*
14+
* For more information see <a href=" https://www.twilio.com/docs/api/rest/credential"> https://www.twilio.com/docs/api/rest/credential</a>
15+
*
16+
*/
17+
public interface CredentialFactory {
18+
19+
/**
20+
* Creates the credential
21+
*
22+
* @param params the params map
23+
* @return the credential
24+
* @throws TwilioRestException
25+
*/
26+
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;
36+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package com.twilio.sdk.resource.factory.sip;
2+
3+
import java.util.Map;
4+
import java.util.List;
5+
6+
import com.twilio.sdk.TwilioRestException;
7+
import com.twilio.sdk.resource.instance.sip.CredentialListInstance;
8+
import org.apache.http.NameValuePair;
9+
10+
// TODO: Auto-generated Javadoc
11+
/**
12+
* A factory for creating CredentialListInstance objects.
13+
*
14+
* For more information see <a href=" https://www.twilio.com/docs/api/rest/credential-list"> https://www.twilio.com/docs/api/rest/credential-list</a>
15+
*
16+
*/
17+
public interface CredentialListFactory {
18+
19+
/**
20+
* Creates the credential list.
21+
*
22+
* @param params the params map
23+
* @return the credential list
24+
* @throws TwilioRestException
25+
*/
26+
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+
37+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package com.twilio.sdk.resource.factory.sip;
2+
3+
import java.util.Map;
4+
import java.util.List;
5+
6+
import com.twilio.sdk.TwilioRestException;
7+
import com.twilio.sdk.resource.instance.sip.CredentialListMapping;
8+
import org.apache.http.NameValuePair;
9+
10+
// TODO: Auto-generated Javadoc
11+
/**
12+
* A factory for creating SipDomain objects.
13+
*
14+
* For more information see <a href=" https://www.twilio.com/docs/api/rest/credential-list-mappings"> https://www.twilio.com/docs/api/rest/credential-list-mappings</a>
15+
*
16+
*/
17+
public interface CredentialListMappingFactory {
18+
19+
20+
/**
21+
* Creates the ip access control list mapping
22+
*
23+
* @param params the params map
24+
* @return the ip access control list mapping
25+
* @throws TwilioRestException
26+
*/
27+
public CredentialListMapping create(Map<String, String> params) throws TwilioRestException;
28+
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+
38+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package com.twilio.sdk.resource.factory.sip;
2+
3+
import java.util.Map;
4+
import java.util.List;
5+
6+
import com.twilio.sdk.TwilioRestException;
7+
import com.twilio.sdk.resource.instance.sip.Domain;
8+
import org.apache.http.NameValuePair;
9+
10+
// TODO: Auto-generated Javadoc
11+
/**
12+
* A factory for creating Domain objects.
13+
*
14+
* For more information see <a href=" https://www.twilio.com/docs/api/rest/sip-domain"> https://www.twilio.com/docs/api/rest/sip-domain</a>
15+
*
16+
*/
17+
public interface DomainFactory {
18+
19+
/**
20+
* Creates the sip domain.
21+
*
22+
* @param params the params map
23+
* @return the sip domain
24+
* @throws TwilioRestException
25+
*/
26+
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;
36+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package com.twilio.sdk.resource.factory.sip;
2+
3+
import java.util.Map;
4+
import java.util.List;
5+
6+
import com.twilio.sdk.TwilioRestException;
7+
import com.twilio.sdk.resource.instance.sip.IpAccessControlList;
8+
import org.apache.http.NameValuePair;
9+
10+
// TODO: Auto-generated Javadoc
11+
/**
12+
* A factory for creating IpAccessControlList objects.
13+
*
14+
* For more information see <a href=" https://www.twilio.com/docs/api/rest/ipaccesscontrollist"> https://www.twilio.com/docs/api/rest/ipaccesscontrollist</a>
15+
*
16+
*/
17+
public interface IpAccessControlListFactory {
18+
19+
20+
/**
21+
* Creates the ip access control list
22+
*
23+
* @param params the params map
24+
* @return the ip access control list
25+
* @throws TwilioRestException
26+
*/
27+
public IpAccessControlList create(Map<String, String> params) throws TwilioRestException;
28+
29+
/**
30+
* Creates the ip access control list
31+
*
32+
* @param params the params list
33+
* @return the ip access control list
34+
* @throws TwilioRestException
35+
*/
36+
public IpAccessControlList create(List<NameValuePair> params) throws TwilioRestException;
37+
38+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package com.twilio.sdk.resource.factory.sip;
2+
3+
import java.util.Map;
4+
import java.util.List;
5+
6+
import com.twilio.sdk.TwilioRestException;
7+
import com.twilio.sdk.resource.instance.sip.IpAccessControlListMapping;
8+
import org.apache.http.NameValuePair;
9+
10+
// TODO: Auto-generated Javadoc
11+
/**
12+
* A factory for creating SipDomain objects.
13+
*
14+
* For more information see <a href=" https://www.twilio.com/docs/api/rest/ipaccesscontrollistmapping"> https://www.twilio.com/docs/api/rest/ipaccesscontrollistmapping</a>
15+
*
16+
*/
17+
public interface IpAccessControlListMappingFactory {
18+
19+
20+
/**
21+
* Creates the ip access control list mapping
22+
*
23+
* @param params the params map
24+
* @return the ip access control list mapping
25+
* @throws TwilioRestException
26+
*/
27+
public IpAccessControlListMapping create(Map<String, String> params) throws TwilioRestException;
28+
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+
38+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package com.twilio.sdk.resource.factory.sip;
2+
3+
import java.util.Map;
4+
import java.util.List;
5+
6+
import com.twilio.sdk.TwilioRestException;
7+
import com.twilio.sdk.resource.instance.sip.IpAddress;
8+
import org.apache.http.NameValuePair;
9+
10+
// TODO: Auto-generated Javadoc
11+
/**
12+
* A factory for creating SipDomain objects.
13+
*
14+
* For more information see <a href=" https://www.twilio.com/docs/api/rest/ip-address"> https://www.twilio.com/docs/api/rest/ip-address</a>
15+
*
16+
*/
17+
public interface IpAddressFactory {
18+
19+
20+
/**
21+
* Creates the IpAddress
22+
*
23+
* @param params the params map
24+
* @return the IpAddress
25+
* @throws TwilioRestException
26+
*/
27+
public IpAddress create(Map<String, String> params) throws TwilioRestException;
28+
29+
/**
30+
* Creates the IpAddress
31+
*
32+
* @param params the params list
33+
* @return the IpAddress
34+
* @throws TwilioRestException
35+
*/
36+
public IpAddress create(List<NameValuePair> params) throws TwilioRestException;
37+
38+
}

0 commit comments

Comments
 (0)