Skip to content

Commit c55f6b3

Browse files
committed
MeetMeTalkRequestEvent: Add missing event handler class.
It has been `MeetmeTalkRequest` (not `TalkING`) since it was introduced: asterisk/asterisk@adc9003
1 parent c3cad34 commit c55f6b3

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

src/main/java/org/asteriskjava/manager/AbstractManagerEventListener.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ public void handleEvent(MeetMeTalkingEvent event) {
171171
public void handleEvent(MeetMeTalkingRequestEvent event) {
172172
}
173173

174+
public void handleEvent(MeetMeTalkRequestEvent event) {
175+
}
176+
174177
public void handleEvent(MonitorStartEvent event) {
175178
}
176179

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
package org.asteriskjava.manager.event;
2+
3+
/**
4+
* A MeetMeTalkRequestEvent is triggered when a muted user requests talking in
5+
* a MeetMe conference.
6+
*/
7+
public class MeetMeTalkRequestEvent extends AbstractMeetMeEvent {
8+
private static final long serialVersionUID = 0L;
9+
10+
private Boolean status;
11+
private Integer duration;
12+
13+
/**
14+
* Constructs a MeetMeTalkRequestEvent.
15+
*
16+
* @param source The object on which the Event initially occurred.
17+
* @throws IllegalArgumentException if source is null.
18+
*/
19+
protected MeetMeTalkRequestEvent(Object source) {
20+
super(source);
21+
}
22+
23+
/**
24+
* The length of time (in seconds) that the MeetMe user has been in the
25+
* conference at the time of this event.
26+
*
27+
* @return the number of seconds this user has been in the conference.
28+
*/
29+
public Integer getDuration() {
30+
return duration;
31+
}
32+
33+
public void setDuration(Integer duration) {
34+
this.duration = duration;
35+
}
36+
37+
/**
38+
* Returns whether the user has started or stopped requesting talking.
39+
*
40+
* @return {@code true} if the user has started requesting talking,
41+
* {@code false} if the user has stopped requesting talking.
42+
*/
43+
public Boolean getStatus() {
44+
return status;
45+
}
46+
47+
public void setStatus(Boolean status) {
48+
this.status = status;
49+
}
50+
}

src/main/java/org/asteriskjava/manager/event/MeetMeTalkingRequestEvent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
* It is implemented in <code>apps/app_meetme.c</code><p>
2424
* Available since Asterisk 1.6
2525
*
26+
* @deprecated You want {@link MeetMeTalkRequestEvent} instead.
27+
*
2628
* @author srt
2729
* @version $Id$
2830
* @since 1.0.0

0 commit comments

Comments
 (0)