public class Channel extends NextGenInstanceResource<TwilioIPMessagingClient>
| Constructor and Description |
|---|
Channel(TwilioIPMessagingClient client,
Map<String,Object> properties) |
Channel(TwilioIPMessagingClient client,
String serviceSid,
String sid) |
| Modifier and Type | Method and Description |
|---|---|
Member |
createMember(Map<String,String> params)
Create a single member
|
Message |
createMessage(List<org.apache.http.NameValuePair> params)
Create a message
|
Message |
createMessage(Map<String,String> params)
Create a message
|
boolean |
delete()
Deletes the channel
|
String |
getAccountSid()
The account sid that owns this channel
|
String |
getAttributes()
The attributes associated to this channel
|
String |
getCreatedBy()
The user who created this channel
|
Calendar |
getDateCreated()
The date when this channel was created
|
Calendar |
getDateUpdated()
The date when this channel was updated
|
String |
getFriendlyName()
The human readable name for this channel
|
Member |
getMember(String sid)
Get a single member
|
MemberList |
getMembers()
Initialize members without filters
|
MemberList |
getMembers(Map<String,String> filters)
Initialize members with filters
|
Message |
getMessage(String sid)
Fetch a single message
|
MessageList |
getMessages()
Initialize messages without filters
|
MessageList |
getMessages(Map<String,String> filters)
Initialize messages with filters
|
String |
getServiceSid()
The service sid that is associated to this channel
|
String |
getSid()
The unique identifier for this channel
|
String |
getType()
The type attribute for this channel
|
String |
getUniqueName()
The human readable unique name for this channel
|
String |
getUrl()
Absolute url of this channel
|
getCastedObject, getObject, getProperty, getPropertyAsInteger, toJSON, update, updatesetRequestAccountSidpublic Channel(TwilioIPMessagingClient client, String serviceSid, String sid)
public Channel(TwilioIPMessagingClient client, Map<String,Object> properties)
public String getSid()
public String getAccountSid()
public String getServiceSid()
public String getFriendlyName()
public String getUniqueName()
public String getCreatedBy()
public String getAttributes()
public String getType()
public Calendar getDateCreated()
public Calendar getDateUpdated()
public String getUrl()
public MemberList getMembers()
public Member getMember(String sid)
sid - The member sidpublic Member createMember(Map<String,String> params) throws TwilioRestException
params - The params to provideTwilioRestExceptionpublic MemberList getMembers(Map<String,String> filters)
filters - The filters to applypublic MessageList getMessages()
public MessageList getMessages(Map<String,String> filters)
filters - The filters to applypublic Message getMessage(String sid)
sid - The message sidpublic Message createMessage(Map<String,String> params) throws TwilioRestException
params - The params to provideTwilioRestExceptionpublic Message createMessage(List<org.apache.http.NameValuePair> params) throws TwilioRestException
params - The params to provideTwilioRestExceptionpublic boolean delete()
throws TwilioRestException
TwilioRestExceptionCopyright © 2011 Twilio, Inc. All Rights Reserved.