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

com.elypia.elypiai.twitch.TwitchQuery Maven / Gradle / Ivy

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