
net.accelbyte.sdk.api.match2.wrappers.Backfill 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.match2.wrappers;
import net.accelbyte.sdk.api.match2.models.*;
import net.accelbyte.sdk.api.match2.operations.backfill.*;
import net.accelbyte.sdk.core.AccelByteSDK;
import net.accelbyte.sdk.core.HttpResponse;
public class Backfill {
private AccelByteSDK sdk;
public Backfill(AccelByteSDK sdk) {
this.sdk = sdk;
}
/**
* @see CreateBackfill
*/
public ApiBackfillCreateResponse createBackfill(CreateBackfill input) throws Exception {
final HttpResponse httpResponse = sdk.runRequest(input);
return input.parseResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see GetBackfillProposal
*/
public ApiBackfillProposalResponse getBackfillProposal(GetBackfillProposal input)
throws Exception {
final HttpResponse httpResponse = sdk.runRequest(input);
return input.parseResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see GetBackfill
*/
public ApiBackfillGetResponse getBackfill(GetBackfill input) throws Exception {
final HttpResponse httpResponse = sdk.runRequest(input);
return input.parseResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see DeleteBackfill
*/
public void deleteBackfill(DeleteBackfill input) throws Exception {
final HttpResponse httpResponse = sdk.runRequest(input);
input.handleEmptyResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see AcceptBackfill
*/
public ModelsGameSession acceptBackfill(AcceptBackfill input) throws Exception {
final HttpResponse httpResponse = sdk.runRequest(input);
return input.parseResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
/**
* @see RejectBackfill
*/
public void rejectBackfill(RejectBackfill input) throws Exception {
final HttpResponse httpResponse = sdk.runRequest(input);
input.handleEmptyResponse(
httpResponse.getCode(), httpResponse.getContentType(), httpResponse.getPayload());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy