Skip to content

Commit dcc0257

Browse files
author
Doug Black
committed
add mobile type for AvailabePhoneNumbers
1 parent b263a6b commit dcc0257

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// TODO: Auto-generated Javadoc
99
/**
1010
* The Class AvailablePhoneNumber.
11-
*
11+
*
1212
* For more information see <a href="https://www.twilio.com/docs/api/rest/available-phone-numbers">https://www.twilio.com/docs/api/rest/available-phone-numbers</a>
1313
*/
1414
public class AvailablePhoneNumber extends InstanceResource {
@@ -40,13 +40,13 @@ public AvailablePhoneNumber(TwilioRestClient client, Map<String, Object> propert
4040
*/
4141
@Override
4242
protected String getResourceLocation() {
43-
throw new IllegalStateException("AvailablePhoneNumbers do not have an instance reource location");
43+
throw new IllegalStateException("AvailablePhoneNumbers do not have an instance resource location");
4444
}
4545

4646
/*
4747
* Property getters
4848
*/
49-
49+
5050
/**
5151
* Gets the friendly name.
5252
*
@@ -55,7 +55,7 @@ protected String getResourceLocation() {
5555
public String getFriendlyName() {
5656
return this.getProperty("friendly_name");
5757
}
58-
58+
5959
/**
6060
* Gets the phone number.
6161
*
@@ -64,7 +64,7 @@ public String getFriendlyName() {
6464
public String getPhoneNumber() {
6565
return this.getProperty("phone_number");
6666
}
67-
67+
6868
/**
6969
* Gets the lata.
7070
*
@@ -73,7 +73,7 @@ public String getPhoneNumber() {
7373
public String getLata() {
7474
return this.getProperty("lata");
7575
}
76-
76+
7777
/**
7878
* Gets the rate center.
7979
*
@@ -82,7 +82,7 @@ public String getLata() {
8282
public String getRateCenter() {
8383
return this.getProperty("rate_center");
8484
}
85-
85+
8686
/**
8787
* Gets the latitude.
8888
*
@@ -91,7 +91,7 @@ public String getRateCenter() {
9191
public String getLatitude() {
9292
return this.getProperty("latitude");
9393
}
94-
94+
9595
/**
9696
* Gets the longitude.
9797
*
@@ -100,7 +100,7 @@ public String getLatitude() {
100100
public String getLongitude() {
101101
return this.getProperty("longitude");
102102
}
103-
103+
104104
/**
105105
* Gets the region.
106106
*
@@ -109,7 +109,7 @@ public String getLongitude() {
109109
public String getRegion() {
110110
return this.getProperty("region");
111111
}
112-
112+
113113
/**
114114
* Gets the postal code.
115115
*
@@ -118,7 +118,7 @@ public String getRegion() {
118118
public String getPostalCode() {
119119
return this.getProperty("postal_code");
120120
}
121-
121+
122122
/**
123123
* Gets the iso country.
124124
*

src/main/java/com/twilio/sdk/resource/list/AvailablePhoneNumberList.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class AvailablePhoneNumberList extends
1717

1818
public static final String TYPE_LOCAL = "Local";
1919
public static final String TYPE_TOLLFREE = "TollFree";
20+
public static final String TYPE_MOBILE = "Mobile";
2021

2122
/** The iso country. */
2223
private String isoCountry = "US";

src/test/java/com/twilio/sdk/resource/instance/MessageTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import static org.mockito.Mockito.mock;
55
import static org.mockito.Mockito.stub;
66

7-
import java.util.HashMap; import java.util.Map;
7+
import java.util.HashMap;
8+
import java.util.Map;
89

910
import org.junit.Test;
1011
import org.mockito.Matchers;

0 commit comments

Comments
 (0)