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

net.accelbyte.sdk.api.gametelemetry.operations.telemetry.GetEventsGameTelemetryV1AdminNamespacesNamespaceEventsGet Maven / Gradle / Ivy

/*
 * Copyright (c) 2024 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.gametelemetry.operations.telemetry;

import java.io.*;
import java.util.*;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import net.accelbyte.sdk.api.gametelemetry.models.*;
import net.accelbyte.sdk.core.HttpResponseException;
import net.accelbyte.sdk.core.Operation;
import net.accelbyte.sdk.core.util.Helper;

/**
 * get_events_game_telemetry_v1_admin_namespaces__namespace__events_get
 *
 * 

This endpoint requires valid JWT token and telemetry permission This endpoint retrieves event * list */ @Getter @Setter public class GetEventsGameTelemetryV1AdminNamespacesNamespaceEventsGet extends Operation { /** generated field's value */ private String path = "/game-telemetry/v1/admin/namespaces/{namespace}/events"; 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 namespace; private String deviceType; private String endTime; private String eventId; private String eventName; private String eventPayload; private String flightId; private Integer limit; private Integer offset; private String startTime; private String userId; /** * @param namespace required */ @Builder // @deprecated 2022-08-29 - All args constructor may cause problems. Use builder instead. @Deprecated public GetEventsGameTelemetryV1AdminNamespacesNamespaceEventsGet( String customBasePath, String namespace, String deviceType, String endTime, String eventId, String eventName, String eventPayload, String flightId, Integer limit, Integer offset, String startTime, String userId) { this.namespace = namespace; this.deviceType = deviceType; this.endTime = endTime; this.eventId = eventId; this.eventName = eventName; this.eventPayload = eventPayload; this.flightId = flightId; this.limit = limit; this.offset = offset; this.startTime = startTime; this.userId = userId; super.customBasePath = customBasePath != null ? customBasePath : ""; securities.add("Bearer"); securities.add("Cookie"); } @Override public Map getPathParams() { Map pathParams = new HashMap<>(); if (this.namespace != null) { pathParams.put("namespace", this.namespace); } return pathParams; } @Override public Map> getQueryParams() { Map> queryParams = new HashMap<>(); queryParams.put("deviceType", this.deviceType == null ? null : Arrays.asList(this.deviceType)); queryParams.put("endTime", this.endTime == null ? null : Arrays.asList(this.endTime)); queryParams.put("eventId", this.eventId == null ? null : Arrays.asList(this.eventId)); queryParams.put("eventName", this.eventName == null ? null : Arrays.asList(this.eventName)); queryParams.put( "eventPayload", this.eventPayload == null ? null : Arrays.asList(this.eventPayload)); queryParams.put("flightId", this.flightId == null ? null : Arrays.asList(this.flightId)); queryParams.put("limit", this.limit == null ? null : Arrays.asList(String.valueOf(this.limit))); queryParams.put( "offset", this.offset == null ? null : Arrays.asList(String.valueOf(this.offset))); queryParams.put("startTime", this.startTime == null ? null : Arrays.asList(this.startTime)); queryParams.put("userId", this.userId == null ? null : Arrays.asList(this.userId)); return queryParams; } @Override public boolean isValid() { if (this.namespace == null) { return false; } return true; } public PagedResponseGetNamespaceEventResponse 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 PagedResponseGetNamespaceEventResponse().createFromJson(json); } @Override protected Map getCollectionFormatMap() { Map result = new HashMap<>(); result.put("deviceType", "None"); result.put("endTime", "None"); result.put("eventId", "None"); result.put("eventName", "None"); result.put("eventPayload", "None"); result.put("flightId", "None"); result.put("limit", "None"); result.put("offset", "None"); result.put("startTime", "None"); result.put("userId", "None"); return result; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy