com.github.twitch4j.graphql.command.CommandFetchBanStatus Maven / Gradle / Ivy
package com.github.twitch4j.graphql.command;
import com.apollographql.apollo.ApolloCall;
import com.apollographql.apollo.ApolloClient;
import com.github.twitch4j.graphql.internal.FetchBanStatusQuery;
import lombok.NonNull;
public class CommandFetchBanStatus extends BaseCommand {
private final String channelId;
private final String userId;
/**
* Constructor
*
* @param apolloClient Apollo Client
* @param channelId Channel ID
* @param userId User ID
*/
public CommandFetchBanStatus(@NonNull ApolloClient apolloClient, @NonNull String channelId, @NonNull String userId) {
super(apolloClient);
this.channelId = channelId;
this.userId = userId;
}
@Override
protected ApolloCall getGraphQLCall() {
return apolloClient.query(
FetchBanStatusQuery.builder()
.channelID(channelId)
.userID(userId)
.build()
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy