com.twilio.sdk.resource.instance
Class Participant

java.lang.Object
  extended by com.twilio.sdk.resource.Resource
      extended by com.twilio.sdk.resource.InstanceResource
          extended by com.twilio.sdk.resource.instance.Participant

public class Participant
extends InstanceResource

The Class Participant. For more information see https://www.twilio.com/docs/api/rest/participant


Constructor Summary
Participant(TwilioRestClient client)
          Instantiates a new participant.
Participant(TwilioRestClient client, Map<String,Object> properties)
          Instantiates a new participant.
Participant(TwilioRestClient client, String conferenceSid, String callSid)
          Instantiates a new participant.
 
Method Summary
 String getAccountSid()
          Gets the account sid.
 String getCallSid()
          Gets the call sid.
 String getConferenceSid()
          Gets the conference sid.
 Date getDateCreated()
          Gets the date created.
 Date getDateUpdated()
          Gets the date updated.
 boolean isEndConferenceOnExit()
          Checks if is end conference on exit.
 boolean isMuted()
          Checks if is muted.
 boolean isStartConferenceOnEnter()
          Checks if is start conference on enter.
 boolean kick()
          Kick.
 Participant mute()
          Mute.
 Participant unmute()
          Unmute.
 
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

Participant

public Participant(TwilioRestClient client)
Instantiates a new participant.

Parameters:
client - the client

Participant

public Participant(TwilioRestClient client,
                   String conferenceSid,
                   String callSid)
Instantiates a new participant.

Parameters:
client - the client
conferenceSid - the conference sid
callSid - the call sid

Participant

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

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

getConferenceSid

public String getConferenceSid()
Gets the conference sid.

Returns:
the conference sid

getCallSid

public String getCallSid()
Gets the call sid.

Returns:
the call 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

isMuted

public boolean isMuted()
Checks if is muted.

Returns:
true, if is muted

isStartConferenceOnEnter

public boolean isStartConferenceOnEnter()
Checks if is start conference on enter.

Returns:
true, if is start conference on enter

isEndConferenceOnExit

public boolean isEndConferenceOnExit()
Checks if is end conference on exit.

Returns:
true, if is end conference on exit

mute

public Participant mute()
                 throws TwilioRestException
Mute.

Returns:
the participant
Throws:
TwilioRestException - the twilio rest exception

unmute

public Participant unmute()
                   throws TwilioRestException
Unmute.

Returns:
the participant
Throws:
TwilioRestException - the twilio rest exception

kick

public boolean kick()
             throws TwilioRestException
Kick.

Returns:
true, if successful
Throws:
TwilioRestException - the twilio rest exception


Copyright © 2011 Twilio, Inc. All Rights Reserved.