ch.loway.oss.ari4java.generated.ari_4_0_2.actions.requests.EventsEventWebsocketGetRequest_impl_ari_4_0_2 Maven / Gradle / Ivy
package ch.loway.oss.ari4java.generated.ari_4_0_2.actions.requests;
// ----------------------------------------------------
// 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.HashMap;
import java.util.ArrayList;
import java.net.URLEncoder;
import com.fasterxml.jackson.core.type.TypeReference;
import ch.loway.oss.ari4java.ARI;
import ch.loway.oss.ari4java.tools.*;
import ch.loway.oss.ari4java.generated.*;
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.*;
import ch.loway.oss.ari4java.generated.ari_4_0_2.actions.requests.*;
import ch.loway.oss.ari4java.generated.ari_4_0_2.models.*;
public class EventsEventWebsocketGetRequest_impl_ari_4_0_2 extends BaseAriAction
implements EventsEventWebsocketGetRequest {
private String app;
private Boolean subscribeAll;
public EventsEventWebsocketGetRequest_impl_ari_4_0_2(String app) {
this.app = app;
}
public EventsEventWebsocketGetRequest setApp(String app) {
this.app = app;
return this;
}
public EventsEventWebsocketGetRequest setSubscribeAll(boolean subscribeAll) {
this.subscribeAll = subscribeAll;
return this;
}
private AriRequest build() {
AriRequest ariRequest = new AriRequest("/events", "GET");
ariRequest.addParamQuery(HttpParam.build("app", app));
ariRequest.addParamQuery(HttpParam.build("subscribeAll", subscribeAll));
ariRequest.setWsUpgrade(true);
return ariRequest;
}
public Message execute() throws RestException {
throw new RestException("No synchronous operation on WebSocket");
}
public void execute(AriCallback callback) {
httpActionAsync(build(), callback, Message_impl_ari_4_0_2.class);
}
/* No missing signatures from interface */
}