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