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

org.asteriskjava.pbx.asterisk.wrap.events.AbstractChannelStateEvent Maven / Gradle / Ivy

There is a newer version: 3.41.0
Show newest version
package org.asteriskjava.pbx.asterisk.wrap.events;

import org.asteriskjava.pbx.InvalidChannelName;
import org.asteriskjava.util.Log;
import org.asteriskjava.util.LogFactory;

public abstract class AbstractChannelStateEvent extends ChannelEventHelper
{

    private static final long serialVersionUID = 1L;

    @SuppressWarnings("unused")
    private static final Log logger = LogFactory.getLog(AbstractChannelStateEvent.class);

    private final ChannelState channelState;
    private final String channelStateDesc;

    AbstractChannelStateEvent(final org.asteriskjava.manager.event.AbstractChannelStateEvent event) throws InvalidChannelName
    {
        super(event);
        this.channelState = ChannelState.valueOfDesc(event.getChannelStateDesc());
        this.channelStateDesc = event.getChannelStateDesc();
    }

    public ChannelState getChannelState()
    {
        return this.channelState;
    }

    public String getChannelStateDesc()
    {
        return this.channelStateDesc;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy