org.asteriskjava.manager.event.HoldedCallEvent Maven / Gradle / Ivy
Show all versions of asterisk-java Show documentation
/*
* Copyright 2004-2006 Stefan Reuter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.asteriskjava.manager.event;
/**
* A HoldedCallEvent is triggered when a channel is put on hold.
* It is implemented in res/res_features.c
*
* @author srt
* @version $Id$
*/
public class HoldedCallEvent extends ManagerEvent {
/**
* Serializable version identifier
*/
private static final long serialVersionUID = 7384290590382334480L;
private String uniqueId1;
private String uniqueId2;
private String channel1;
private String channel2;
/**
* @param source
*/
public HoldedCallEvent(Object source) {
super(source);
}
/**
* Returns the unique id of the channel that put the other channel on hold.
*/
public String getUniqueId1() {
return uniqueId1;
}
/**
* Sets the unique id of the channel that put the other channel on hold.
*/
public void setUniqueId1(String uniqueId1) {
this.uniqueId1 = uniqueId1;
}
/**
* Returns the unique id of the channel that has been put on hold.
*/
public String getUniqueId2() {
return uniqueId2;
}
/**
* Sets the unique id of the channel that has been put on hold.
*/
public void setUniqueId2(String uniqueId2) {
this.uniqueId2 = uniqueId2;
}
/**
* Returns the name of the channel that put the other channel on hold.
*/
public String getChannel1() {
return channel1;
}
/**
* Sets the name of the channel that put the other channel on hold.
*/
public void setChannel1(String channel1) {
this.channel1 = channel1;
}
/**
* Returns the name of the channel that has been put on hold.
*/
public String getChannel2() {
return channel2;
}
/**
* Sets the name of the channel that has been put on hold.
*/
public void setChannel2(String channel2) {
this.channel2 = channel2;
}
}