com.twilio.sdk.resource.instance
Class Token

java.lang.Object
  extended by com.twilio.sdk.resource.Resource<C>
      extended by com.twilio.sdk.resource.InstanceResource
          extended by com.twilio.sdk.resource.instance.Token

public class Token
extends InstanceResource


Constructor Summary
Token(TwilioRestClient client)
          Instantiates a new token.
Token(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new token.
Token(TwilioRestClient client, String username)
          Instantiates a new token.
 
Method Summary
 String getAccountSid()
          Gets the account sid.
 Date getDateCreated()
          Gets the date created.
 Date getDateUpdated()
          Gets the date updated.
 List<com.twilio.sdk.resource.instance.Token.IceServer> getIceServers()
          Returns the ice servers associated with this token.
 String getPassword()
          Gets the password
 String getSid()
          Gets the sid.
 int getTtl()
          Gets the ttl
 String getUsername()
          Gets the username
 
Methods inherited from class com.twilio.sdk.resource.InstanceResource
getObject, getProperty, update, update
 
Methods inherited from class com.twilio.sdk.resource.Resource
setRequestAccountSid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Token

public Token(TwilioRestClient client)
Instantiates a new token.

Parameters:
client - the client

Token

public Token(TwilioRestClient client,
             String username)
Instantiates a new token.

Parameters:
client - the client
username - the username

Token

public Token(TwilioRestClient client,
             Map<String,Object> properties)
Instantiates a new token.

Parameters:
client - the client
properties - the properties
Method Detail

getSid

public String getSid()
Gets the sid.

Returns:
the sid

getDateCreated

public Date getDateCreated()
Gets the date created.

Returns:
the date created

getDateUpdated

public Date getDateUpdated()
Gets the date updated.

Returns:
the date updated

getAccountSid

public String getAccountSid()
Gets the account sid.

Returns:
the account sid

getUsername

public String getUsername()
Gets the username

Returns:
the username

getPassword

public String getPassword()
Gets the password

Returns:
the password

getTtl

public int getTtl()
Gets the ttl

Returns:
the ttl

getIceServers

public List<com.twilio.sdk.resource.instance.Token.IceServer> getIceServers()
Returns the ice servers associated with this token.

Returns:
the list of ice servers.


Copyright © 2011 Twilio, Inc. All Rights Reserved.