Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package ch.loway.oss.ari4java.generated.ari_6_0_0.actions;
// ----------------------------------------------------
// THIS CLASS WAS GENERATED AUTOMATICALLY
// PLEASE DO NOT EDIT
// Generated on: Sat Aug 14 16:51:46 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_6_0_0.actions.requests.*;
import ch.loway.oss.ari4java.generated.ari_6_0_0.models.*;
import com.fasterxml.jackson.core.type.TypeReference;
/** Generated by: Apis */
public class ActionChannels_impl_ari_6_0_0 extends BaseAriAction implements ActionChannels {
/** Active channels List all active channels in Asterisk. */
@Override
public ChannelsListGetRequest list() throws RestException {
ChannelsListGetRequest_impl_ari_6_0_0 request = new ChannelsListGetRequest_impl_ari_6_0_0();
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Active channels Create a new channel (originate). The new channel is created immediately and a
* snapshot of it returned. If a Stasis application is provided it will be automatically
* subscribed to the originated channel for further events and updates.
*/
@Override
public ChannelsOriginatePostRequest originate(String endpoint) throws RestException {
ChannelsOriginatePostRequest_impl_ari_6_0_0 request =
new ChannelsOriginatePostRequest_impl_ari_6_0_0(endpoint);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Create a channel and place it in a Stasis app, but do not dial the channel yet. Create channel.
*/
@Override
public ChannelsCreatePostRequest create(String endpoint, String app) throws RestException {
ChannelsCreatePostRequest_impl_ari_6_0_0 request =
new ChannelsCreatePostRequest_impl_ari_6_0_0(endpoint, app);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Active channel Channel details. */
@Override
public ChannelsGetRequest get(String channelId) throws RestException {
ChannelsGetRequest_impl_ari_6_0_0 request = new ChannelsGetRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Active channel Create a new channel (originate with id). The new channel is created immediately
* and a snapshot of it returned. If a Stasis application is provided it will be automatically
* subscribed to the originated channel for further events and updates.
*/
@Override
public ChannelsOriginateWithIdPostRequest originateWithId(String channelId, String endpoint)
throws RestException {
ChannelsOriginateWithIdPostRequest_impl_ari_6_0_0 request =
new ChannelsOriginateWithIdPostRequest_impl_ari_6_0_0(channelId, endpoint);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Active channel Delete (i.e. hangup) a channel. */
@Override
public ChannelsHangupDeleteRequest hangup(String channelId) throws RestException {
ChannelsHangupDeleteRequest_impl_ari_6_0_0 request =
new ChannelsHangupDeleteRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Answer a channel Answer a channel. */
@Override
public ChannelsAnswerPostRequest answer(String channelId) throws RestException {
ChannelsAnswerPostRequest_impl_ari_6_0_0 request =
new ChannelsAnswerPostRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Exit application; continue execution in the dialplan Exit application; continue execution in
* the dialplan.
*/
@Override
public ChannelsContinueInDialplanPostRequest continueInDialplan(String channelId)
throws RestException {
ChannelsContinueInDialplanPostRequest_impl_ari_6_0_0 request =
new ChannelsContinueInDialplanPostRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Dial a channel Dial a created channel. */
@Override
public ChannelsDialPostRequest dial(String channelId) throws RestException {
ChannelsDialPostRequest_impl_ari_6_0_0 request =
new ChannelsDialPostRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Send DTMF to a channel Send provided DTMF to a given channel. */
@Override
public ChannelsSendDTMFPostRequest sendDTMF(String channelId) throws RestException {
ChannelsSendDTMFPostRequest_impl_ari_6_0_0 request =
new ChannelsSendDTMFPostRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Put a channel on hold Hold a channel. */
@Override
public ChannelsHoldPostRequest hold(String channelId) throws RestException {
ChannelsHoldPostRequest_impl_ari_6_0_0 request =
new ChannelsHoldPostRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Put a channel on hold Remove a channel from hold. */
@Override
public ChannelsUnholdDeleteRequest unhold(String channelId) throws RestException {
ChannelsUnholdDeleteRequest_impl_ari_6_0_0 request =
new ChannelsUnholdDeleteRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Play music on hold to a channel Play music on hold to a channel. Using media operations such as
* /play on a channel playing MOH in this manner will suspend MOH without resuming automatically.
* If continuing music on hold is desired, the stasis application must reinitiate music on hold.
*/
@Override
public ChannelsStartMohPostRequest startMoh(String channelId) throws RestException {
ChannelsStartMohPostRequest_impl_ari_6_0_0 request =
new ChannelsStartMohPostRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Play music on hold to a channel Stop playing music on hold to a channel. */
@Override
public ChannelsStopMohDeleteRequest stopMoh(String channelId) throws RestException {
ChannelsStopMohDeleteRequest_impl_ari_6_0_0 request =
new ChannelsStopMohDeleteRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Move the channel from one Stasis application to another. Move the channel from one Stasis
* application to another.
*/
@Override
public ChannelsMovePostRequest move(String channelId, String app) throws RestException {
ChannelsMovePostRequest_impl_ari_6_0_0 request =
new ChannelsMovePostRequest_impl_ari_6_0_0(channelId, app);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Mute a channel Mute a channel. */
@Override
public ChannelsMutePostRequest mute(String channelId) throws RestException {
ChannelsMutePostRequest_impl_ari_6_0_0 request =
new ChannelsMutePostRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Mute a channel Unmute a channel. */
@Override
public ChannelsUnmuteDeleteRequest unmute(String channelId) throws RestException {
ChannelsUnmuteDeleteRequest_impl_ari_6_0_0 request =
new ChannelsUnmuteDeleteRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Play media to a channel Start playback of media. 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 ChannelsPlayPostRequest play(String channelId, String media) throws RestException {
ChannelsPlayPostRequest_impl_ari_6_0_0 request =
new ChannelsPlayPostRequest_impl_ari_6_0_0(channelId, media);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Play media to a channel Start playback of media and specify the playbackId. 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 ChannelsPlayWithIdPostRequest playWithId(String channelId, String playbackId, String media)
throws RestException {
ChannelsPlayWithIdPostRequest_impl_ari_6_0_0 request =
new ChannelsPlayWithIdPostRequest_impl_ari_6_0_0(channelId, playbackId, media);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Record audio from a channel Start a recording. Record audio from a channel. Note that this will
* not capture audio sent to the channel. The bridge itself has a record feature if that's what
* you want.
*/
@Override
public ChannelsRecordPostRequest record(String channelId, String name, String format)
throws RestException {
ChannelsRecordPostRequest_impl_ari_6_0_0 request =
new ChannelsRecordPostRequest_impl_ari_6_0_0(channelId, name, format);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Inform the channel that it should redirect itself to a different location. Note that this will
* almost certainly cause the channel to exit the application. Redirect the channel to a different
* location.
*/
@Override
public ChannelsRedirectPostRequest redirect(String channelId, String endpoint)
throws RestException {
ChannelsRedirectPostRequest_impl_ari_6_0_0 request =
new ChannelsRedirectPostRequest_impl_ari_6_0_0(channelId, endpoint);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Send a ringing indication to a channel Indicate ringing to a channel. */
@Override
public ChannelsRingPostRequest ring(String channelId) throws RestException {
ChannelsRingPostRequest_impl_ari_6_0_0 request =
new ChannelsRingPostRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Send a ringing indication to a channel Stop ringing indication on a channel if locally
* generated.
*/
@Override
public ChannelsRingStopDeleteRequest ringStop(String channelId) throws RestException {
ChannelsRingStopDeleteRequest_impl_ari_6_0_0 request =
new ChannelsRingStopDeleteRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Get RTP statistics information for RTP on a channel RTP stats on a channel. */
@Override
public ChannelsRtpstatisticsGetRequest rtpstatistics(String channelId) throws RestException {
ChannelsRtpstatisticsGetRequest_impl_ari_6_0_0 request =
new ChannelsRtpstatisticsGetRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/**
* Play silence to a channel Play silence to a channel. Using media operations such as /play on a
* channel playing silence in this manner will suspend silence without resuming automatically.
*/
@Override
public ChannelsStartSilencePostRequest startSilence(String channelId) throws RestException {
ChannelsStartSilencePostRequest_impl_ari_6_0_0 request =
new ChannelsStartSilencePostRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Play silence to a channel Stop playing silence to a channel. */
@Override
public ChannelsStopSilenceDeleteRequest stopSilence(String channelId) throws RestException {
ChannelsStopSilenceDeleteRequest_impl_ari_6_0_0 request =
new ChannelsStopSilenceDeleteRequest_impl_ari_6_0_0(channelId);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Snoop (spy/whisper) on a channel Start snooping. Snoop (spy/whisper) on a specific channel. */
@Override
public ChannelsSnoopChannelPostRequest snoopChannel(String channelId, String app)
throws RestException {
ChannelsSnoopChannelPostRequest_impl_ari_6_0_0 request =
new ChannelsSnoopChannelPostRequest_impl_ari_6_0_0(channelId, app);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Snoop (spy/whisper) on a channel Start snooping. Snoop (spy/whisper) on a specific channel. */
@Override
public ChannelsSnoopChannelWithIdPostRequest snoopChannelWithId(
String channelId, String snoopId, String app) throws RestException {
ChannelsSnoopChannelWithIdPostRequest_impl_ari_6_0_0 request =
new ChannelsSnoopChannelWithIdPostRequest_impl_ari_6_0_0(channelId, snoopId, app);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Variables on a channel Get the value of a channel variable or function. */
@Override
public ChannelsGetChannelVarGetRequest getChannelVar(String channelId, String variable)
throws RestException {
ChannelsGetChannelVarGetRequest_impl_ari_6_0_0 request =
new ChannelsGetChannelVarGetRequest_impl_ari_6_0_0(channelId, variable);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Variables on a channel Set the value of a channel variable or function. */
@Override
public ChannelsSetChannelVarPostRequest setChannelVar(String channelId, String variable)
throws RestException {
ChannelsSetChannelVarPostRequest_impl_ari_6_0_0 request =
new ChannelsSetChannelVarPostRequest_impl_ari_6_0_0(channelId, variable);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
public ChannelsExternalMediaPostRequest externalMedia(
String app, String external_host, String format) throws RestException {
throw new UnsupportedOperationException("Method available from ari_4_1_2");
}
}