
com.elypia.elypiai.twitch.TwitchQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twitch Show documentation
Show all versions of twitch Show documentation
Wrappers for many APIs available online from various services.
The newest version!
package com.elypia.elypiai.twitch;
import java.util.*;
public class TwitchQuery {
private List userIds;
private List logins;
private List gameIds;
public TwitchQuery() {
userIds = new ArrayList<>();
logins = new ArrayList<>();
gameIds = new ArrayList<>();
}
public int getTotal() {
return userIds.size() + logins.size() + gameIds.size();
}
public void addUserId(Integer... ids) {
userIds.addAll(List.of(ids));
}
public void addUsername(String names) {
logins.addAll(List.of(names));
}
public void addGame(Integer... ids) {
gameIds.addAll(List.of(ids));
}
public List getUserIds() {
return userIds;
}
public List getUsernames() {
return logins;
}
public List getGames() {
return gameIds;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy