All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.twitch4j.graphql.command.CommandFetchCommunityPointsSettings 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.FetchCommunityPointsSettingsQuery;
import org.jetbrains.annotations.NotNull;

public class CommandFetchCommunityPointsSettings extends BaseCommand {

    private final String channelLogin;

    /**
     * Constructor
     *
     * @param apolloClient Apollo Client
     * @param channelLogin Channel login name
     */
    public CommandFetchCommunityPointsSettings(@NotNull ApolloClient apolloClient, @NotNull String channelLogin) {
        super(apolloClient);
        this.channelLogin = channelLogin;
    }

    @Override
    protected ApolloCall getGraphQLCall() {
        return apolloClient.query(
            FetchCommunityPointsSettingsQuery.builder()
                .login(channelLogin)
                .build()
        );
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy