All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.asteriskjava.live.MeetMeUser Maven / Gradle / Ivy

There is a newer version: 3.41.0
Show newest version
/*
 *  Copyright 2004-2006 Stefan Reuter
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 */
package org.asteriskjava.live;

import java.util.Date;

/**
 * Represents a user of a MeetMe room.

* PropertyChangeEvents are fired for the following properties: *

    *
  • talking *
  • muted *
  • state *
* * @see org.asteriskjava.live.MeetMeRoom * @author srt * @since 0.3 */ public interface MeetMeUser extends LiveObject { String PROPERTY_TALKING = "talking"; String PROPERTY_MUTED = "muted"; String PROPERTY_STATE = "state"; /** * Returns whether this user is currently talking or not.

* Asterisk supports talker detection since version 1.2. * * @return true if this user is currently talking and * talker detection is supported, false otherwise. */ boolean isTalking(); /** * Returns whether this user is muted or not.

* Supported since Asterisk version 1.4. * * @return true if this user is muted and * mute detection is supported, false otherwise. */ boolean isMuted(); /** * Returns the date this user joined the MeetMe room.

* This property is immutable. * * @return the date this user joined the MeetMe room. */ Date getDateJoined(); /** * Returns the date this user left the MeetMe room.

* This property is null as long as the user is * in state {@link MeetMeUserState#JOINED} and set to date the * user left when entering {@link MeetMeUserState#LEFT}. * * @return the date this user left the MeetMe room or * null if the user did not yet leave. */ Date getDateLeft(); /** * Returns the lifecycle status of this MeetMeUser.

* Initially the user is in state {@link MeetMeUserState#JOINED}. * * @return the lifecycle status of this MeetMeUser. */ MeetMeUserState getState(); /** * Returns the MeetMe room this user joined.

* This property is immutable. * * @return the MeetMe room this user joined. */ MeetMeRoom getRoom(); /** * Returns the user number assigned to this user in the room.

* Usually you won't need to access this property directly.

* This property is immutable. * * @return the user number assigned to this user in the room. */ Integer getUserNumber(); /** * Returns the channel associated with this user.

* This property is immutable. * * @return the channel associated with this user. */ AsteriskChannel getChannel(); /** * Stops sending voice from this user to the MeetMe room. * * @throws ManagerCommunicationException if there is a problem talking to the Asterisk server. */ void mute() throws ManagerCommunicationException; /** * (Re)starts sending voice from this user to the MeetMe room. * * @throws ManagerCommunicationException if there is a problem talking to the Asterisk server. */ void unmute() throws ManagerCommunicationException; /** * Removes this user from the MeetMe room. * * @throws ManagerCommunicationException if there is a problem talking to the Asterisk server. */ void kick() throws ManagerCommunicationException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy