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

ibt.ortc.api.ChannelPermissions Maven / Gradle / Ivy

There is a newer version: 2.1.44
Show newest version
/**
 * @fileoverview This file contains the channels permissions enumeration
 * @author ORTC team members ([email protected]) 
 */
package ibt.ortc.api;

/**
 * Enumerates the existent permissions for a channel.
 * 
 * @version 2.1.0 27 Mar 2013
 * @author IBT
 */
public enum ChannelPermissions {
	/**
	 * Read permission to the channel, don't allow write in the channel
	 */
	Read("r"),
	/**
	 * Write permission to the channel, also allows read in the channel
	 */
	Write("w"),
	/**
	 * Presence permission to the channel, allows token to get the number of subscriptions in the channel
	 */
	Presence("p");
	
	private ChannelPermissions(String permission){
		this.permission = permission;
	}
	
	private String permission;
	
	String getPermission(){
		return this.permission;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy