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 * A StatusEvent is triggered for each active channel in response to a StatusAction.
21 *
22 * @see net.sf.asterisk.manager.action.StatusAction
23 *
24 * @author srt
25 * @version $Id: StatusEvent.java,v 1.3 2005/03/16 09:49:49 srt Exp $
26 */
27 public class StatusEvent extends ResponseEvent
28 {
29 /***
30 * Serial version identifier
31 */
32 private static final long serialVersionUID = -3619197512835308812L;
33 private String channel;
34 private String callerId;
35 private String callerIdName;
36 private String account;
37 private String state;
38 private String context;
39 private String extension;
40 private Integer priority;
41 private Integer seconds;
42 private String link;
43 private String uniqueId;
44
45 /***
46 * @param source
47 */
48 public StatusEvent(Object source)
49 {
50 super(source);
51 }
52
53 /***
54 * Returns the name of this channel.
55 */
56 public String getChannel()
57 {
58 return channel;
59 }
60
61 /***
62 * Sets the name of this channel.
63 */
64 public void setChannel(String channel)
65 {
66 this.channel = channel;
67 }
68
69 /***
70 * Returns the Caller*ID of this channel.
71 */
72 public String getCallerId()
73 {
74 return callerId;
75 }
76
77 /***
78 * Sets the Caller*ID of this channel.
79 */
80 public void setCallerId(String callerId)
81 {
82 this.callerId = callerId;
83 }
84
85 /***
86 * Returns the Caller*ID Name of this channel.
87 */
88 public String getCallerIdName()
89 {
90 return callerIdName;
91 }
92
93 /***
94 * Sets the Caller*ID Name of this channel.
95 */
96 public void setCallerIdName(String callerIdName)
97 {
98 this.callerIdName = callerIdName;
99 }
100
101 /***
102 * Returns the account code of this channel.
103 */
104 public String getAccount()
105 {
106 return account;
107 }
108
109 /***
110 * Sets the account code of this channel.
111 */
112 public void setAccount(String account)
113 {
114 this.account = account;
115 }
116
117 public String getState()
118 {
119 return state;
120 }
121
122 public void setState(String state)
123 {
124 this.state = state;
125 }
126
127 public String getContext()
128 {
129 return context;
130 }
131
132 public void setContext(String context)
133 {
134 this.context = context;
135 }
136
137 public String getExtension()
138 {
139 return extension;
140 }
141
142 public void setExtension(String extension)
143 {
144 this.extension = extension;
145 }
146
147 public Integer getPriority()
148 {
149 return priority;
150 }
151
152 public void setPriority(Integer priority)
153 {
154 this.priority = priority;
155 }
156
157 /***
158 * Returns the number of elapsed seconds.
159 */
160 public Integer getSeconds()
161 {
162 return seconds;
163 }
164
165 /***
166 * Sets the number of elapsed seconds.
167 */
168 public void setSeconds(Integer seconds)
169 {
170 this.seconds = seconds;
171 }
172
173 /***
174 * Returns the name of the linked channel if this channel is bridged.
175 */
176 public String getLink()
177 {
178 return link;
179 }
180
181 /***
182 * Sets the name of the linked channel.
183 */
184 public void setLink(String link)
185 {
186 this.link = link;
187 }
188
189 /***
190 * Returns the unique id of this channel.
191 */
192 public String getUniqueId()
193 {
194 return uniqueId;
195 }
196
197 /***
198 * Sets the unique id of this channel.
199 */
200 public void setUniqueId(String uniqueId)
201 {
202 this.uniqueId = uniqueId;
203 }
204 }