com.github.twitch4j.graphql.command.CommandFetchChatters 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.FetchChattersQuery;
import lombok.NonNull;
public class CommandFetchChatters extends BaseCommand {
private final String channelLogin;
/**
* Constructor
*
* @param apolloClient Apollo Client
* @param channelLogin The name of the channel to get the connected chatters of
*/
public CommandFetchChatters(@NonNull ApolloClient apolloClient, @NonNull String channelLogin) {
super(apolloClient);
this.channelLogin = channelLogin;
}
@Override
protected ApolloCall getGraphQLCall() {
return apolloClient.query(
FetchChattersQuery.builder()
.login(channelLogin)
.build()
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy