File tree Expand file tree Collapse file tree 3 files changed +55
-0
lines changed
src/main/java/org/asteriskjava/manager Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments