net.accelbyte.sdk.api.lobby.wrappers.Profanity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of module-lobby Show documentation
Show all versions of module-lobby Show documentation
AccelByte Gaming Services Java Extend SDK generated from OpenAPI specs
/*
* 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.lobby.wrappers;
import java.util.*;
import net.accelbyte.sdk.api.lobby.models.*;
import net.accelbyte.sdk.api.lobby.operations.profanity.*;
import net.accelbyte.sdk.core.HttpResponse;
import net.accelbyte.sdk.core.RequestRunner;
public class Profanity {
private RequestRunner sdk;
private String customBasePath = "";
public Profanity(RequestRunner sdk) {
this.sdk = sdk;
String configCustomBasePath =
sdk.getSdkConfiguration().getConfigRepository().getCustomServiceBasePath("lobby");
if (!configCustomBasePath.equals("")) {
this.customBasePath = configCustomBasePath;
}
}
public Profanity(RequestRunner sdk, String customBasePath) {
this.sdk = sdk;
this.customBasePath = customBasePath;
}
/**
* @see AdminDebugProfanityFilters
*/
public List adminDebugProfanityFilters(AdminDebugProfanityFilters input)
throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
return input.parseResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AdminGetProfanityListFiltersV1
*/
public ModelsAdminGetProfanityListFiltersV1Response adminGetProfanityListFiltersV1(
AdminGetProfanityListFiltersV1 input) throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
return input.parseResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AdminAddProfanityFilterIntoList
*/
public void adminAddProfanityFilterIntoList(AdminAddProfanityFilterIntoList input)
throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
input.handleEmptyResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AdminAddProfanityFilters
*/
public void adminAddProfanityFilters(AdminAddProfanityFilters input) throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
input.handleEmptyResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AdminImportProfanityFiltersFromFile
*/
public void adminImportProfanityFiltersFromFile(AdminImportProfanityFiltersFromFile input)
throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
input.handleEmptyResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AdminDeleteProfanityFilter
*/
public List adminDeleteProfanityFilter(AdminDeleteProfanityFilter input)
throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
return input.parseResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AdminGetProfanityLists
*/
public List adminGetProfanityLists(
AdminGetProfanityLists input) throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
return input.parseResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AdminCreateProfanityList
*/
public void adminCreateProfanityList(AdminCreateProfanityList input) throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
input.handleEmptyResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AdminUpdateProfanityList
*/
public void adminUpdateProfanityList(AdminUpdateProfanityList input) throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
input.handleEmptyResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AdminDeleteProfanityList
*/
public void adminDeleteProfanityList(AdminDeleteProfanityList input) throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
input.handleEmptyResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AdminGetProfanityRule
*/
public ModelsProfanityRule adminGetProfanityRule(AdminGetProfanityRule input) throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
return input.parseResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AdminSetProfanityRuleForNamespace
*/
public void adminSetProfanityRuleForNamespace(AdminSetProfanityRuleForNamespace input)
throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
input.handleEmptyResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AdminVerifyMessageProfanityResponse
*/
public ModelsAdminVerifyMessageProfanityResponse adminVerifyMessageProfanityResponse(
AdminVerifyMessageProfanityResponse input) throws Exception {
if (input.getCustomBasePath().equals("") && !customBasePath.equals("")) {
input.setCustomBasePath(customBasePath);
}
final HttpResponse httpResponse = sdk.runRequest(input);
return input.parseResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy