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

org.asteriskjava.manager.event.HoldedCallEvent Maven / Gradle / Ivy

/*
 * 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 { private static final long serialVersionUID = -7960818306215397359L; private String uniqueId1; private String uniqueId2; private String channel1; private String channel2; public HoldedCallEvent(Object source) { super(source); } /** * Returns the unique id of the channel that put the other channel on hold. * * @return unique id of the channel */ public String getUniqueId1() { return uniqueId1; } /** * Sets the unique id of the channel that put the other channel on hold. * * @param uniqueId1 * unique id of the channel */ public void setUniqueId1(String uniqueId1) { this.uniqueId1 = uniqueId1; } /** * Returns the unique id of the channel that has been put on hold. * * @return unique id of the channel */ public String getUniqueId2() { return uniqueId2; } /** * Sets the unique id of the channel that has been put on hold. * * @param uniqueId2 * unique id of the channel */ public void setUniqueId2(String uniqueId2) { this.uniqueId2 = uniqueId2; } /** * Returns the name of the channel that put the other channel on hold. * * @return channel */ public String getChannel1() { return channel1; } /** * Sets the name of the channel that put the other channel on hold. * * @param channel1 * channel */ public void setChannel1(String channel1) { this.channel1 = channel1; } /** * Returns the name of the channel that has been put on hold. * * @return channel */ public String getChannel2() { return channel2; } /** * Sets the name of the channel that has been put on hold. * * @param channel2 * channel */ public void setChannel2(String channel2) { this.channel2 = channel2; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy