public class Service extends NextGenInstanceResource<TwilioIPMessagingClient>
| Constructor and Description |
|---|
Service(TwilioIPMessagingClient client,
Map<String,Object> properties) |
Service(TwilioIPMessagingClient client,
String sid) |
| Modifier and Type | Method and Description |
|---|---|
Channel |
createChannel(List<org.apache.http.NameValuePair> params)
Create a channel
|
Channel |
createChannel(Map<String,String> params)
Create a channel
|
Role |
createRole(List<org.apache.http.NameValuePair> params)
Create a role
|
Role |
createRole(Map<String,String> params)
Create a role
|
User |
createUser(Map<String,String> params)
Create a user
|
boolean |
delete()
Deletes the service
|
String |
getAccountSid()
The account sid that owns this service
|
Channel |
getChannel(String sid)
Get a single channel
|
ChannelList |
getChannels()
Initialize channels without a filter
|
ChannelList |
getChannels(Map<String,String> filters)
Initialize channels with a filter
|
Integer |
getConsumptionReportInterval()
Returns the Consumption Report Interval of the Service
|
Calendar |
getDateCreated()
The date when this service was created
|
Calendar |
getDateUpdated()
The date when this service was updated
|
String |
getDefaultChannelRoleSid()
Default channel role assigned on channel join
|
String |
getDefaultServiceRoleSid()
Default service role assigned on initial user creation
|
String |
getFriendlyName()
The human readable name for this service
|
Boolean |
getReadStatusEnabled()
Returns read status enabled flag
|
Role |
getRole(String sid)
Get a role
|
RoleList |
getRoles()
Initialize roles without a filter
|
RoleList |
getRoles(Map<String,String> filters)
Initialize roles with a filter
|
String |
getSid()
The unique identifier for this service
|
Integer |
getTypingIndicatorTimeout()
Timeout after “started typing” event when client should assume that user is not typing anymore even
if no “ended typing” message received
|
String |
getUrl()
Absolute url of this service
|
User |
getUser(String sid)
Get a user
|
UserList |
getUsers()
Initialize users without a filter
|
UserList |
getUsers(Map<String,String> filters)
Initialize users with a filter
|
Object |
getWebhooks()
Webhooks triggered on given method
|
getCastedObject, getObject, getProperty, getPropertyAsInteger, toJSON, update, updatesetRequestAccountSidpublic Service(TwilioIPMessagingClient client, String sid)
public Service(TwilioIPMessagingClient client, Map<String,Object> properties)
public String getSid()
public String getAccountSid()
public String getFriendlyName()
public String getDefaultServiceRoleSid()
public String getDefaultChannelRoleSid()
public Boolean getReadStatusEnabled()
public Integer getTypingIndicatorTimeout()
public Integer getConsumptionReportInterval()
public Object getWebhooks()
public String getUrl()
public Calendar getDateCreated()
public Calendar getDateUpdated()
public ChannelList getChannels()
public ChannelList getChannels(Map<String,String> filters)
public Channel getChannel(String sid)
sid - The channel sidpublic RoleList getRoles()
public RoleList getRoles(Map<String,String> filters)
filters - The filters to applypublic Role createRole(Map<String,String> params) throws TwilioRestException
params - The params to provideTwilioRestExceptionpublic Role createRole(List<org.apache.http.NameValuePair> params) throws TwilioRestException
params - The params to provideTwilioRestExceptionpublic UserList getUsers()
public User getUser(String sid)
sid - The user sidpublic UserList getUsers(Map<String,String> filters)
filters - The filters to applypublic User createUser(Map<String,String> params) throws TwilioRestException
params - The params to provideTwilioRestException - thrown when an error occurspublic boolean delete()
throws TwilioRestException
TwilioRestExceptionpublic Channel createChannel(Map<String,String> params) throws TwilioRestException
params - The params to create withTwilioRestException - thrown when an error occurspublic Channel createChannel(List<org.apache.http.NameValuePair> params) throws TwilioRestException
params - The params to create withTwilioRestException - thrown when an error occursCopyright © 2011 Twilio, Inc. All Rights Reserved.