ch.loway.oss.ari4java.generated.ari_1_9_0.actions.ActionMailboxes_impl_ari_1_9_0 Maven / Gradle / Ivy
package ch.loway.oss.ari4java.generated.ari_1_9_0.actions;
// ----------------------------------------------------
// THIS CLASS WAS GENERATED AUTOMATICALLY
// PLEASE DO NOT EDIT
// Generated on: Sat Aug 14 16:51:40 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_1_9_0.actions.requests.*;
import ch.loway.oss.ari4java.generated.ari_1_9_0.models.*;
import com.fasterxml.jackson.core.type.TypeReference;
/** Generated by: Apis */
public class ActionMailboxes_impl_ari_1_9_0 extends BaseAriAction implements ActionMailboxes {
/** Mailboxes List all mailboxes. */
@Override
public MailboxesListGetRequest list() throws RestException {
MailboxesListGetRequest_impl_ari_1_9_0 request = new MailboxesListGetRequest_impl_ari_1_9_0();
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Mailbox state Retrieve the current state of a mailbox. */
@Override
public MailboxesGetRequest get(String mailboxName) throws RestException {
MailboxesGetRequest_impl_ari_1_9_0 request =
new MailboxesGetRequest_impl_ari_1_9_0(mailboxName);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Mailbox state Change the state of a mailbox. (Note - implicitly creates the mailbox). */
@Override
public MailboxesUpdatePutRequest update(
String mailboxName, Integer oldMessages, Integer newMessages) throws RestException {
MailboxesUpdatePutRequest_impl_ari_1_9_0 request =
new MailboxesUpdatePutRequest_impl_ari_1_9_0(mailboxName, oldMessages, newMessages);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/** Mailbox state Destroy a mailbox. */
@Override
public MailboxesDeleteRequest delete(String mailboxName) throws RestException {
MailboxesDeleteRequest_impl_ari_1_9_0 request =
new MailboxesDeleteRequest_impl_ari_1_9_0(mailboxName);
request.setHttpClient(this.getHttpClient());
request.setWsClient(this.getWsClient());
request.setLiveActionList(this.getLiveActionList());
request.setForcedResponse(this.getForcedResponse());
return request;
}
/* No missing signatures from interface */
}