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

com.twilio.sdk.auth.ConversationsGrant Maven / Gradle / Ivy

There is a newer version: 7.0.0-rc-10
Show newest version
package com.twilio.sdk.auth;

/**
 * Grant used to access Twilio Conversations
 *
 * For more information see:
 * 
 *     https://www.twilio.com/docs/api/rest/access-tokens
 * 
 */
public class ConversationsGrant implements Grant {

	public String configurationProfileSid;

	public String getConfigurationProfileSid() {
		return configurationProfileSid;
	}

	public ConversationsGrant setConfigurationProfileSid(String configurationProfileSid) {
		this.configurationProfileSid = configurationProfileSid;
		return this;
	}

	public String getGrantKey() {
		return "rtc";
	}

	public Object getPayload() {
		return new Payload(this);
	}

	public class Payload {
		public final String configuration_profile_sid;

		public Payload(ConversationsGrant grant) {
			this.configuration_profile_sid = grant.configurationProfileSid;
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy