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 AgentCallbackLogoffEvent is triggered when an agent that previously logged in using AgentLogin
21 * is logged of.<br>
22 * It is implemented in <code>channels/chan_agent.c</code>
23 *
24 * @see net.sf.asterisk.manager.event.AgentLoginEvent
25 * @author srt
26 * @version $Id: AgentLogoffEvent.java,v 1.3 2005/02/27 15:19:54 srt Exp $
27 */
28 public class AgentLogoffEvent extends ManagerEvent
29 {
30 /***
31 * Serializable version identifier
32 */
33 private static final long serialVersionUID = -3482474719161350942L;
34
35 /***
36 * The name of the agent that logged off.
37 */
38 private String agent;
39 private String loginTime;
40 private String uniqueId;
41
42 /***
43 * @param source
44 */
45 public AgentLogoffEvent(Object source)
46 {
47 super(source);
48 }
49
50 /***
51 * Returns the name of the agent that logged off.
52 *
53 * @return the name of the agent that logged off.
54 */
55 public String getAgent()
56 {
57 return agent;
58 }
59
60 /***
61 * Sets the name of the agent that logged off.
62 *
63 * @param agent the name of the agent that logged off.
64 */
65 public void setAgent(String agent)
66 {
67 this.agent = agent;
68 }
69
70 public String getLoginTime()
71 {
72 return loginTime;
73 }
74
75 public void setLoginTime(String loginTime)
76 {
77 this.loginTime = loginTime;
78 }
79
80 public String getUniqueId()
81 {
82 return uniqueId;
83 }
84
85 public void setUniqueId(String uniqueId)
86 {
87 this.uniqueId = uniqueId;
88 }
89 }