com.github.twitch4j.graphql.command.CommandCreateCommunityPointsGoal 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.CreateCommunityPointsCommunityGoalMutation;
import com.github.twitch4j.graphql.internal.type.CreateCommunityPointsCommunityGoalInput;
import lombok.NonNull;
public class CommandCreateCommunityPointsGoal extends BaseCommand {
private final CreateCommunityPointsCommunityGoalInput input;
/**
* Constructor
*
* @param apolloClient Apollo Client
* @param input Create community goal input
*/
public CommandCreateCommunityPointsGoal(@NonNull ApolloClient apolloClient, @NonNull CreateCommunityPointsCommunityGoalInput input) {
super(apolloClient);
this.input = input;
}
@Override
protected ApolloCall getGraphQLCall() {
return apolloClient.mutate(
CreateCommunityPointsCommunityGoalMutation.builder()
.input(input)
.build()
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy