public class SubscribeRules extends Resource
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static SubscribeRulesFetcher |
fetcher(String pathRoomSid,
String pathParticipantSid)
Create a SubscribeRulesFetcher to execute fetch.
|
static SubscribeRules |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a SubscribeRules object using the provided
ObjectMapper.
|
static SubscribeRules |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a SubscribeRules object using the provided
ObjectMapper.
|
ZonedDateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the resource was last updated.
|
String |
getParticipantSid()
Returns The SID of the Participant resource for the Subscribe Rules.
|
String |
getRoomSid()
Returns The SID of the Room resource for the Subscribe Rules.
|
List<SubscribeRule> |
getRules()
Returns A collection of Subscribe Rules that describe how to include or
exclude matching tracks.
|
int |
hashCode() |
static SubscribeRulesUpdater |
updater(String pathRoomSid,
String pathParticipantSid)
Create a SubscribeRulesUpdater to execute update.
|
public static SubscribeRulesFetcher fetcher(String pathRoomSid, String pathParticipantSid)
pathRoomSid
- The SID of the Room resource where the subscribe rules to
fetch applypathParticipantSid
- The SID of the Participant resource with the
subscribe rules to fetchpublic static SubscribeRulesUpdater updater(String pathRoomSid, String pathParticipantSid)
pathRoomSid
- The SID of the Room resource where the subscribe rules to
update applypathParticipantSid
- The SID of the Participant resource to update the
Subscribe Rulespublic static SubscribeRules fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static SubscribeRules fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getParticipantSid()
public final String getRoomSid()
public final List<SubscribeRule> getRules()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
Copyright © 2019 Twilio, Inc. All Rights Reserved.