com.jakewharton.pingdom.services
Class ContactService

java.lang.Object
  extended by com.jakewharton.apibuilder.ApiService
      extended by com.jakewharton.pingdom.PingdomApiService
          extended by com.jakewharton.pingdom.services.ContactService

public class ContactService
extends PingdomApiService

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

ContactService

public ContactService()
Method Detail

list

public ContactService.ListBuilder list()
Returns a list of all contacts.

Returns:
Builder instance.
Since:
2.0

create

public ContactService.CreateBuilder create(String name)
Create a new contact.

Parameters:
name - Name.
Returns:
Builder instance.
Since:
2.0

modify

public ContactService.ModifyBuilder modify(int contactId)
Modify a contact.

Parameters:
contactId - Contact ID.
Returns:
Builder instance.

delete

public ContactService.DeleteBuilder delete(int contactId)
Deletes a contact.

Parameters:
contactId - Contact ID.
Returns:
Builder instance.


Copyright © 2011 Jake Wharton. All Rights Reserved.