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 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  }