org.asteriskjava.manager.event.MeetMeLeaveEvent 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 MeetMeLeaveEvent is triggered if a channel leaves a MeetMe conference.
*
* Channel and unqiueId properties for this event are available since Asterisk
* 1.0.
*
* It is implemented in apps/app_meetme.c
*
* @author srt
* @version $Id$
*/
public class MeetMeLeaveEvent extends AbstractMeetMeEvent {
/**
* Serializable version identifier.
*/
private static final long serialVersionUID = 7692361610793036224L;
private Long duration;
/**
* @param source
*/
public MeetMeLeaveEvent(Object source) {
super(source);
}
/**
* Returns how long the user spent in the conference.
*
* This property is available since Asterisk 1.4.
*
* @return the duration in seconds the user spent in the conference.
*/
public Long getDuration() {
return duration;
}
/**
* Sets how long the user spent in the conference.
*
* @param duration the duration in seconds the user spent in the conference.
*/
public void setDuration(Long duration) {
this.duration = duration;
}
}