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 UnholdEvent is triggered by the SIP channel driver when a channel is no
21   * longer put on hold.<br>
22   * It is implemented in <code>channels/chan_sip.c</code>.<br>
23   * Available since Asterisk 1.2
24   * 
25   * @see net.sf.asterisk.manager.event.HoldEvent
26   * @author srt
27   * @version $Id: UnholdEvent.java,v 1.2 2005/08/28 12:20:53 srt Exp $
28   * @since 0.2
29   */
30  public class UnholdEvent extends ManagerEvent
31  {
32      /***
33       * Serializable version identifier
34       */
35      static final long serialVersionUID = 5906599407896179295L;
36  
37      /***
38       * The name of the channel.
39       */
40      private String channel;
41  
42      /***
43       * The unique id of the channel.
44       */
45      private String uniqueId;
46  
47      /***
48       * Creates a new UnholdEvent.
49       * 
50       * @param source
51       */
52      public UnholdEvent(Object source)
53      {
54          super(source);
55      }
56  
57      /***
58       * Returns the name of the channel.
59       */
60      public String getChannel()
61      {
62          return channel;
63      }
64  
65      /***
66       * Sets the name of the channel.
67       */
68      public void setChannel(String channel)
69      {
70          this.channel = channel;
71      }
72  
73      /***
74       * Returns the unique id of the channel.
75       */
76      public String getUniqueId()
77      {
78          return uniqueId;
79      }
80  
81      /***
82       * Sets the unique id of the channel.
83       */
84      public void setUniqueId(String uniqueId)
85      {
86          this.uniqueId = uniqueId;
87      }
88  }