1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.sf.asterisk.manager.event;
18
19 /***
20 * An UnholdEvent is triggered by the SIP channel driver when a channel is no
21 * longer put on hold.<br>
22 * It is implemented in <code>channels/chan_sip.c</code>.<br>
23 * Available since Asterisk 1.2
24 *
25 * @see net.sf.asterisk.manager.event.HoldEvent
26 * @author srt
27 * @version $Id: UnholdEvent.java,v 1.2 2005/08/28 12:20:53 srt Exp $
28 * @since 0.2
29 */
30 public class UnholdEvent extends ManagerEvent
31 {
32 /***
33 * Serializable version identifier
34 */
35 static final long serialVersionUID = 5906599407896179295L;
36
37 /***
38 * The name of the channel.
39 */
40 private String channel;
41
42 /***
43 * The unique id of the channel.
44 */
45 private String uniqueId;
46
47 /***
48 * Creates a new UnholdEvent.
49 *
50 * @param source
51 */
52 public UnholdEvent(Object source)
53 {
54 super(source);
55 }
56
57 /***
58 * Returns the name of the channel.
59 */
60 public String getChannel()
61 {
62 return channel;
63 }
64
65 /***
66 * Sets the name of the channel.
67 */
68 public void setChannel(String channel)
69 {
70 this.channel = channel;
71 }
72
73 /***
74 * Returns the unique id of the channel.
75 */
76 public String getUniqueId()
77 {
78 return uniqueId;
79 }
80
81 /***
82 * Sets the unique id of the channel.
83 */
84 public void setUniqueId(String uniqueId)
85 {
86 this.uniqueId = uniqueId;
87 }
88 }