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

org.asteriskjava.pbx.asterisk.wrap.actions.BridgeAction Maven / Gradle / Ivy

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

import org.asteriskjava.pbx.Channel;

public class BridgeAction extends AbstractManagerAction {

    private final Channel _lhs;
    private final Channel _rhs;

    public BridgeAction(final Channel lhs, final Channel rhs) {
        this._lhs = lhs;
        this._rhs = rhs;
    }

    @Override
    public org.asteriskjava.manager.action.ManagerAction getAJAction() {
        final org.asteriskjava.manager.action.BridgeAction action = new org.asteriskjava.manager.action.BridgeAction();
        action.setActionId(this.getActionId());
        action.setChannel1(this._lhs.getChannelName());
        action.setChannel2(this._rhs.getChannelName());
        return action;
    }

    public String toString() {
        return "BridgeAction: lhs=" + this._lhs + " rhs=" + this._rhs; //$NON-NLS-1$ //$NON-NLS-2$
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy