|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jakewharton.apibuilder.ApiService com.jakewharton.pingdom.PingdomApiService com.jakewharton.pingdom.services.ContactService
public class ContactService
Represents Pingdom's remote contact service.
Nested Class Summary | |
---|---|
static class |
ContactService.CreateBuilder
Request builder for create(String) . |
static class |
ContactService.DeleteBuilder
Request builder for delete(int) . |
static class |
ContactService.ListBuilder
Request builder for list() . |
static class |
ContactService.ModifyBuilder
Request builder for modify(int) . |
Field Summary |
---|
Fields inherited from class com.jakewharton.apibuilder.ApiService |
---|
CONTENT_ENCODING |
Constructor Summary | |
---|---|
ContactService()
|
Method Summary | |
---|---|
ContactService.CreateBuilder |
create(String name)
Create a new contact. |
ContactService.DeleteBuilder |
delete(int contactId)
Deletes a contact. |
ContactService.ListBuilder |
list()
Returns a list of all contacts. |
ContactService.ModifyBuilder |
modify(int contactId)
Modify a contact. |
Methods inherited from class com.jakewharton.pingdom.PingdomApiService |
---|
delete, get, post, put, setApiVersion, setAppKey, setAuthentication, unmarshall, unmarshall |
Methods inherited from class com.jakewharton.apibuilder.ApiService |
---|
acceptGzip, addRequestHeader, closeConnection, closeStream, convertStreamToString, executeDelete, executeDelete, executeGet, executeGet, executeMethod, executePost, executePost, getConnectTimeout, getParametersString, getReadTimeout, getWrappedInputStream, removeRequestHeader, setConnectTimeout, setReadTimeout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContactService()
Method Detail |
---|
public ContactService.ListBuilder list()
public ContactService.CreateBuilder create(String name)
name
- Name.
public ContactService.ModifyBuilder modify(int contactId)
contactId
- Contact ID.
public ContactService.DeleteBuilder delete(int contactId)
contactId
- Contact ID.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |