All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.twilio.jwt.accesstoken.VideoGrant Maven / Gradle / Ivy

There is a newer version: 10.1.5
Show newest version
package com.twilio.jwt.accesstoken;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * Grant used to access Twilio Video.
 *
 * 

* For more information see: * * https://www.twilio.com/docs/api/rest/access-tokens * *

*/ public class VideoGrant implements Grant { private String room; /** * Get the room configured in this grant. * @return The room name or sid or null if not set. */ public String getRoom() { return this.room; } /** * Set the room to grant access to * @param roomSidOrName a room sid or name * @return updated VideoGrant instance */ public VideoGrant setRoom(final String roomSidOrName) { this.room = roomSidOrName; return this; } public String getGrantKey() { return "video"; } public Object getPayload() { return new Payload(this); } @SuppressWarnings("checkstyle:membername") @JsonInclude(JsonInclude.Include.NON_NULL) public class Payload { public final String room; public Payload(VideoGrant grant) { this.room = grant.room; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy