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   * A ParkedCallEvent is triggered when a channel is put on hold.<br>
21   * It is implemented in <code>res/res_features.c</code>
22   * 
23   * @author srt
24   * @version $Id: HoldedCallEvent.java,v 1.2 2005/02/23 22:50:58 srt Exp $
25   */
26  public class HoldedCallEvent extends ManagerEvent
27  {
28      /***
29       * Serializable version identifier
30       */
31      private static final long serialVersionUID = 7384290590382334480L;
32      private String uniqueId1;
33      private String uniqueId2;
34      private String channel1;
35      private String channel2;
36  
37      /***
38       * @param source
39       */
40      public HoldedCallEvent(Object source)
41      {
42          super(source);
43      }
44  
45      /***
46       * Returns the unique id of the channel that put the other channel on hold.
47       */
48      public String getUniqueId1()
49      {
50          return uniqueId1;
51      }
52  
53      /***
54       * Sets the unique id of the channel that put the other channel on hold.
55       */
56      public void setUniqueId1(String uniqueId1)
57      {
58          this.uniqueId1 = uniqueId1;
59      }
60  
61      /***
62       * Returns the unique id of the channel that has been put on hold.
63       */
64      public String getUniqueId2()
65      {
66          return uniqueId2;
67      }
68  
69      /***
70       * Sets the unique id of the channel that has been put on hold.
71       */
72      public void setUniqueId2(String uniqueId2)
73      {
74          this.uniqueId2 = uniqueId2;
75      }
76  
77      /***
78       * Returns the name of the channel that put the other channel on hold.
79       */
80      public String getChannel1()
81      {
82          return channel1;
83      }
84  
85      /***
86       * Sets the name of the channel that put the other channel on hold.
87       */
88      public void setChannel1(String channel1)
89      {
90          this.channel1 = channel1;
91      }
92  
93      /***
94       * Returns the name of the channel that has been put on hold.
95       */
96      public String getChannel2()
97      {
98          return channel2;
99      }
100 
101     /***
102      * Sets the name of the channel that has been put on hold.
103      */
104     public void setChannel2(String channel2)
105     {
106         this.channel2 = channel2;
107     }
108 
109 }