View Javadoc

1   /*
2    * Copyright  2004-2005 Stefan Reuter
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
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  }