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

ch.loway.oss.ari4java.generated.ari_4_0_2.actions.ActionBridges_impl_ari_4_0_2 Maven / Gradle / Ivy

package ch.loway.oss.ari4java.generated.ari_4_0_2.actions;

// ----------------------------------------------------
//      THIS CLASS WAS GENERATED AUTOMATICALLY
//               PLEASE DO NOT EDIT
//    Generated on: Sat Aug 14 16:51:43 SAST 2021
// ----------------------------------------------------

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
import java.net.URLEncoder;
import ch.loway.oss.ari4java.ARI;
import ch.loway.oss.ari4java.tools.*;
import ch.loway.oss.ari4java.generated.actions.*;
import ch.loway.oss.ari4java.generated.actions.requests.*;
import ch.loway.oss.ari4java.generated.models.Module;
import ch.loway.oss.ari4java.generated.models.*;
import ch.loway.oss.ari4java.generated.ari_4_0_2.actions.requests.*;
import ch.loway.oss.ari4java.generated.ari_4_0_2.models.*;
import com.fasterxml.jackson.core.type.TypeReference;

/** Generated by: Apis */
public class ActionBridges_impl_ari_4_0_2 extends BaseAriAction implements ActionBridges {
  /** Active bridges List all active bridges in Asterisk. */
  @Override
  public BridgesListGetRequest list() throws RestException {
    BridgesListGetRequest_impl_ari_4_0_2 request = new BridgesListGetRequest_impl_ari_4_0_2();
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /**
   * Active bridges Create a new bridge. This bridge persists until it has been shut down, or
   * Asterisk has been shut down.
   */
  @Override
  public BridgesCreatePostRequest create() throws RestException {
    BridgesCreatePostRequest_impl_ari_4_0_2 request = new BridgesCreatePostRequest_impl_ari_4_0_2();
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /**
   * Individual bridge Create a new bridge or updates an existing one. This bridge persists until it
   * has been shut down, or Asterisk has been shut down.
   */
  @Override
  public BridgesCreateWithIdPostRequest createWithId(String bridgeId) throws RestException {
    BridgesCreateWithIdPostRequest_impl_ari_4_0_2 request =
        new BridgesCreateWithIdPostRequest_impl_ari_4_0_2(bridgeId);
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /** Individual bridge Get bridge details. */
  @Override
  public BridgesGetRequest get(String bridgeId) throws RestException {
    BridgesGetRequest_impl_ari_4_0_2 request = new BridgesGetRequest_impl_ari_4_0_2(bridgeId);
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /**
   * Individual bridge Shut down a bridge. If any channels are in this bridge, they will be removed
   * and resume whatever they were doing beforehand.
   */
  @Override
  public BridgesDestroyDeleteRequest destroy(String bridgeId) throws RestException {
    BridgesDestroyDeleteRequest_impl_ari_4_0_2 request =
        new BridgesDestroyDeleteRequest_impl_ari_4_0_2(bridgeId);
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /** Add a channel to a bridge Add a channel to a bridge. */
  @Override
  public BridgesAddChannelPostRequest addChannel(String bridgeId, String channel)
      throws RestException {
    BridgesAddChannelPostRequest_impl_ari_4_0_2 request =
        new BridgesAddChannelPostRequest_impl_ari_4_0_2(bridgeId, channel);
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /**
   * Play music on hold to a bridge Play music on hold to a bridge or change the MOH class that is
   * playing.
   */
  @Override
  public BridgesStartMohPostRequest startMoh(String bridgeId) throws RestException {
    BridgesStartMohPostRequest_impl_ari_4_0_2 request =
        new BridgesStartMohPostRequest_impl_ari_4_0_2(bridgeId);
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /**
   * Play music on hold to a bridge Stop playing music on hold to a bridge. This will only stop
   * music on hold being played via POST bridges/{bridgeId}/moh.
   */
  @Override
  public BridgesStopMohDeleteRequest stopMoh(String bridgeId) throws RestException {
    BridgesStopMohDeleteRequest_impl_ari_4_0_2 request =
        new BridgesStopMohDeleteRequest_impl_ari_4_0_2(bridgeId);
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /**
   * Play media to the participants of a bridge Start playback of media on a bridge. The media URI
   * may be any of a number of URI's. Currently sound:, recording:, number:, digits:, characters:,
   * and tone: URI's are supported. This operation creates a playback resource that can be used to
   * control the playback of media (pause, rewind, fast forward, etc.)
   */
  @Override
  public BridgesPlayPostRequest play(String bridgeId, String media) throws RestException {
    BridgesPlayPostRequest_impl_ari_4_0_2 request =
        new BridgesPlayPostRequest_impl_ari_4_0_2(bridgeId, media);
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /**
   * Play media to a bridge Start playback of media on a bridge. The media URI may be any of a
   * number of URI's. Currently sound:, recording:, number:, digits:, characters:, and tone: URI's
   * are supported. This operation creates a playback resource that can be used to control the
   * playback of media (pause, rewind, fast forward, etc.)
   */
  @Override
  public BridgesPlayWithIdPostRequest playWithId(String bridgeId, String playbackId, String media)
      throws RestException {
    BridgesPlayWithIdPostRequest_impl_ari_4_0_2 request =
        new BridgesPlayWithIdPostRequest_impl_ari_4_0_2(bridgeId, playbackId, media);
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /**
   * Record audio on a bridge Start a recording. This records the mixed audio from all channels
   * participating in this bridge.
   */
  @Override
  public BridgesRecordPostRequest record(String bridgeId, String name, String format)
      throws RestException {
    BridgesRecordPostRequest_impl_ari_4_0_2 request =
        new BridgesRecordPostRequest_impl_ari_4_0_2(bridgeId, name, format);
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /** Remove a channel from a bridge Remove a channel from a bridge. */
  @Override
  public BridgesRemoveChannelPostRequest removeChannel(String bridgeId, String channel)
      throws RestException {
    BridgesRemoveChannelPostRequest_impl_ari_4_0_2 request =
        new BridgesRemoveChannelPostRequest_impl_ari_4_0_2(bridgeId, channel);
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /**
   * Removes any explicit video source Removes any explicit video source in a multi-party mixing
   * bridge. This operation has no effect on bridges with two or fewer participants. When no
   * explicit video source is set, talk detection will be used to determine the active video stream.
   */
  @Override
  public BridgesClearVideoSourceDeleteRequest clearVideoSource(String bridgeId)
      throws RestException {
    BridgesClearVideoSourceDeleteRequest_impl_ari_4_0_2 request =
        new BridgesClearVideoSourceDeleteRequest_impl_ari_4_0_2(bridgeId);
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  /**
   * Set a channel as the video source in a multi-party bridge Set a channel as the video source in
   * a multi-party mixing bridge. This operation has no effect on bridges with two or fewer
   * participants.
   */
  @Override
  public BridgesSetVideoSourcePostRequest setVideoSource(String bridgeId, String channelId)
      throws RestException {
    BridgesSetVideoSourcePostRequest_impl_ari_4_0_2 request =
        new BridgesSetVideoSourcePostRequest_impl_ari_4_0_2(bridgeId, channelId);
    request.setHttpClient(this.getHttpClient());
    request.setWsClient(this.getWsClient());
    request.setLiveActionList(this.getLiveActionList());
    request.setForcedResponse(this.getForcedResponse());
    return request;
  }

  public BridgesCreate_or_update_with_idPostRequest create_or_update_with_id(String bridgeId)
      throws RestException {
    throw new UnsupportedOperationException("Method available from ari_1_2_0");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy