com.twilio.jwt.accesstoken.PlaybackGrant Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twilio Show documentation
Show all versions of twilio Show documentation
Twilio Java Helper Library
package com.twilio.jwt.accesstoken;
import java.util.Map;
/**
* Grant used to access Twilio Live.
*
*
* For more information see:
*
* https://www.twilio.com/docs/api/rest/access-tokens
*
*
*/
public class PlaybackGrant implements Grant {
private Map grant;
/**
* Get the grant payload configured in this grant.
* @return The grant payload or null if not set.
*/
public Map getGrant() {
return this.grant;
}
/**
* Set the playback grant
* @param grant the playback grant
* @return updated PlaybackGrant instance
*/
public PlaybackGrant setGrant(final Map grant) {
this.grant = grant;
return this;
}
public String getGrantKey() {
return "player";
}
public Object getPayload() {
return this.grant;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy