|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jakewharton.apibuilder.ApiBuilder com.jakewharton.pingdom.PingdomApiBuilder<Contact> com.jakewharton.pingdom.services.ContactService.CreateBuilder
public static final class ContactService.CreateBuilder
Request builder for ContactService.create(String)
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jakewharton.pingdom.PingdomApiBuilder |
---|
PingdomApiBuilder.HttpMethod |
Field Summary |
---|
Fields inherited from class com.jakewharton.apibuilder.ApiBuilder |
---|
API_URL_PLACEHOLDER_END, API_URL_PLACEHOLDER_START |
Method Summary | |
---|---|
ContactService.CreateBuilder |
cellPhone(String cellPhone)
Cellphone number, without the country code part. |
ContactService.CreateBuilder |
countryCode(String countryCode)
Cellphone country code (Requires cellphone and countryiso). |
ContactService.CreateBuilder |
countryIso(String countryIso)
Cellphone country ISO code. |
ContactService.CreateBuilder |
defaultSmsProvider(String defaultSmsProvider)
Default SMS provider. |
ContactService.CreateBuilder |
directTwitter(boolean directTwitter)
Send twitter messages as Direct Messages. |
ContactService.CreateBuilder |
email(String email)
Email. |
protected com.google.gson.JsonElement |
execute()
Execute the remote API method and return the JSON object result. |
ContactService.CreateBuilder |
twitterUser(String twitterUser)
Twitter user. |
Methods inherited from class com.jakewharton.pingdom.PingdomApiBuilder |
---|
field, fire, parameter, parameter, parameter, parameter, postParameter, postParameter, postParameter, postParameter, postParameter |
Methods inherited from class com.jakewharton.apibuilder.ApiBuilder |
---|
buildUrl, buildUrl, encodeUrl, field, field, field, field, field, hasField, hasParameter, parameter, parameter, parameter, parameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected com.google.gson.JsonElement execute()
PingdomApiBuilder
Execute the remote API method and return the JSON object result.
This method can be overridden to select a specific subset of the JSON object. The overriding implementation should still call 'super.execute()' and then perform the filtering from there.
execute
in class PingdomApiBuilder<Contact>
public ContactService.CreateBuilder email(String email)
email
- Value.
public ContactService.CreateBuilder cellPhone(String cellPhone)
cellPhone
- Value.
public ContactService.CreateBuilder countryCode(String countryCode)
countryCode
- Value.
public ContactService.CreateBuilder countryIso(String countryIso)
countryIso
- Value (example: US (USA), GB (Britain) or SE (Sweden)).
public ContactService.CreateBuilder defaultSmsProvider(String defaultSmsProvider)
defaultSmsProvider
- Value.
public ContactService.CreateBuilder directTwitter(boolean directTwitter)
directTwitter
- Value.
public ContactService.CreateBuilder twitterUser(String twitterUser)
twitterUser
- Value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |