public class Number extends SidResource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static NumberFetcher |
fetch(PhoneNumber number)
Create a NumberFetcher to execute fetch.
|
static Number |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Number object using the provided
ObjectMapper.
|
static Number |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Number object using the provided ObjectMapper.
|
String |
getCountry()
Returns The The country.
|
InboundCallPrice |
getInboundCallPrice()
Returns The The inbound_call_price.
|
String |
getIsoCountry()
Returns The The iso_country.
|
PhoneNumber |
getNumber()
Returns The The number.
|
OutboundCallPrice |
getOutboundCallPrice()
Returns The The outbound_call_price.
|
Currency |
getPriceUnit()
Returns The The price_unit.
|
String |
getSid()
Returns The The number.
|
URI |
getUrl()
Returns The The url.
|
int |
hashCode() |
String |
toString() |
public static NumberFetcher fetch(PhoneNumber number)
number
- The numberpublic static Number fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Number fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
getSid
in class SidResource
public final PhoneNumber getNumber()
public final String getCountry()
public final String getIsoCountry()
public final OutboundCallPrice getOutboundCallPrice()
public final InboundCallPrice getInboundCallPrice()
public final Currency getPriceUnit()
public final URI getUrl()
Copyright © 2011 Twilio, Inc. All Rights Reserved.