org.asteriskjava.manager.action.ConfbridgeMuteAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asterisk-java Show documentation
Show all versions of asterisk-java Show documentation
The free Java library for Asterisk PBX integration.
package org.asteriskjava.manager.action;
/**
* The ConfbridgeMuteAction mutes a channel in a conference.
*
* @author jmb
* @version $Id$
*/
public class ConfbridgeMuteAction extends AbstractManagerAction {
/**
* Serializable version identifier
*/
private static final long serialVersionUID = 1439791922666681989L;
private String conference;
private String channel;
/**
* Creates a new empty ConfbridgeMuteAction.
*/
public ConfbridgeMuteAction() {
super();
}
/**
* Creates a new ConfbridgeMuteAction.
*
* @param conference the conference number.
* @param channel number of the channel in the conference.
*/
public ConfbridgeMuteAction(String conference, String channel) {
this.setConference(conference);
this.setChannel(channel);
}
/**
* Returns the name of this action, i.e. "ConfbridgeMute".
*/
@Override
public String getAction() {
return "ConfbridgeMute";
}
/**
* Sets the id of the conference.
*/
public void setConference(String conference) {
this.conference = conference;
}
/**
* Returns the id of the conference.
*/
public String getConference() {
return conference;
}
/**
* Sets the number of the channel to mute.
*/
public void setChannel(String channel) {
this.channel = channel;
}
public String getChannel() {
return channel;
}
}