
net.accelbyte.sdk.api.eventlog.operations.event_descriptions.SpecificEventIDDescriptionHandler Maven / Gradle / Ivy
/*
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
* This is licensed software from AccelByte Inc, for limitations
* and restrictions contact your company contract manager.
*
* Code generated. DO NOT EDIT.
*/
package net.accelbyte.sdk.api.eventlog.operations.event_descriptions;
import java.io.*;
import java.util.*;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import net.accelbyte.sdk.api.eventlog.models.*;
import net.accelbyte.sdk.core.HttpResponseException;
import net.accelbyte.sdk.core.Operation;
import net.accelbyte.sdk.core.util.Helper;
/**
* SpecificEventIDDescriptionHandler
*
* @deprecated
*/
@Deprecated
@Getter
@Setter
public class SpecificEventIDDescriptionHandler extends Operation {
/** generated field's value */
private String path = "/event/descriptions/eventId/listByEventIds";
private String method = "GET";
private List consumes = Arrays.asList();
private List produces = Arrays.asList("application/json");
private String locationQuery = null;
/** fields as input parameter */
private String eventIds;
/** */
@Builder
// @deprecated 2022-08-29 - All args constructor may cause problems. Use builder instead.
@Deprecated
public SpecificEventIDDescriptionHandler(String eventIds) {
this.eventIds = eventIds;
securities.add("Bearer");
}
@Override
public Map> getQueryParams() {
Map> queryParams = new HashMap<>();
queryParams.put("eventIds", this.eventIds == null ? null : Arrays.asList(this.eventIds));
return queryParams;
}
@Override
public boolean isValid() {
return true;
}
public ModelsMultipleEventID parseResponse(int code, String contentType, InputStream payload)
throws HttpResponseException, IOException {
if (code != 200) {
final String json = Helper.convertInputStreamToString(payload);
throw new HttpResponseException(code, json);
}
final String json = Helper.convertInputStreamToString(payload);
return new ModelsMultipleEventID().createFromJson(json);
}
@Override
protected Map getCollectionFormatMap() {
Map result = new HashMap<>();
result.put("eventIds", "None");
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy