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   * Abstract base class providing common properties for meet me (asterisk's conference system)
21   * events.
22   * 
23   * @author srt
24   * @version $Id: MeetMeEvent.java,v 1.2 2005/02/23 22:50:58 srt Exp $
25   */
26  public abstract class MeetMeEvent extends ManagerEvent
27  {
28      private String channel;
29      private String uniqueId;
30      private String meetMe;
31      private Integer userNum;
32  
33      /***
34       * @param source
35       */
36      public MeetMeEvent(Object source)
37      {
38          super(source);
39      }
40  
41      /***
42       * Returns the name of the channel that joined of left a conference.
43       */
44      public String getChannel()
45      {
46          return channel;
47      }
48  
49      /***
50       * Sets the name of the channel that joined of left a conference.
51       */
52      public void setChannel(String channel)
53      {
54          this.channel = channel;
55      }
56  
57      /***
58       * Returns the unique id of the channel.
59       */
60      public String getUniqueId()
61      {
62          return uniqueId;
63      }
64  
65      /***
66       * Sets the unique id of the channel.
67       */
68      public void setUniqueId(String uniqueId)
69      {
70          this.uniqueId = uniqueId;
71      }
72  
73      /***
74       * Returns the conference number.
75       */
76      public String getMeetMe()
77      {
78          return meetMe;
79      }
80  
81      /***
82       * Sets the conference number.
83       */
84      public void setMeetMe(String meetMe)
85      {
86          this.meetMe = meetMe;
87      }
88  
89      public Integer getUserNum()
90      {
91          return userNum;
92      }
93  
94      public void setUserNum(Integer userNum)
95      {
96          this.userNum = userNum;
97      }
98  }