com.github.twitch4j.graphql.command.CommandBulkApproveUnbanRequest Maven / Gradle / Ivy
The newest version!
package com.github.twitch4j.graphql.command;
import com.apollographql.apollo.ApolloCall;
import com.apollographql.apollo.ApolloClient;
import com.github.twitch4j.graphql.internal.BulkApproveUnbanRequestMutation;
import com.github.twitch4j.graphql.internal.type.BulkApproveUnbanRequestInput;
import java.util.List;
public class CommandBulkApproveUnbanRequest extends BaseCommand {
private final List ids;
/**
* Constructor
*
* @param apolloClient Apollo Client
* @param ids IDs of the unban requests to be approved
*/
public CommandBulkApproveUnbanRequest(ApolloClient apolloClient, List ids) {
super(apolloClient);
this.ids = ids;
}
@Override
protected ApolloCall getGraphQLCall() {
return apolloClient.mutate(
BulkApproveUnbanRequestMutation.builder()
.input(
BulkApproveUnbanRequestInput.builder()
.ids(ids)
.build()
)
.build()
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy