org.asteriskjava.manager.event.QueueCallerLeaveEvent Maven / Gradle / Ivy
Show all versions of asterisk-java Show documentation
/*
* Copyright 2004-2007 Stefan Reuter and others
*
* 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 QueueCallerLeaveEvent is triggered when a caller leave a queue before
* getting connected with an agent.
*
* It is implemented in apps/app_queue.c
*
* Available since Asterisk 1.4.
*
* @author Leonardo de Souza
*/
public class QueueCallerLeaveEvent extends QueueEvent {
/**
* Serializable version identifier
*/
private static final long serialVersionUID = 812069706662063871L;
private Integer position;
private String language;
private String linkedId;
private String accountcode;
/**
* @param source
*/
public QueueCallerLeaveEvent(Object source) {
super(source);
}
/**
* @return the position of the caller at the time they abandoned the queue
*/
public Integer getPosition() {
return position;
}
/**
* @param position the position of the caller at the time they abandoned the
* queue
*/
public void setPosition(Integer position) {
this.position = position;
}
public String getLanguage() {
return language;
}
public void setLanguage(String language) {
this.language = language;
}
public String getLinkedId() {
return linkedId;
}
public void setLinkedId(String linkedId) {
this.linkedId = linkedId;
}
public String getAccountcode() {
return accountcode;
}
public void setAccountcode(String accountcode) {
this.accountcode = accountcode;
}
}