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

com.exaroton.api.request.server.ServerListRequest Maven / Gradle / Ivy

package com.exaroton.api.request.server;

import com.exaroton.api.ExarotonClient;

import java.util.HashMap;

public abstract class ServerListRequest extends ServerRequest {
    private final String list;

    public ServerListRequest(ExarotonClient client, String serverId, String list) {
        super(client, serverId);
        if (list == null || list.length() == 0) throw new IllegalArgumentException("Invalid list name!");
        this.list = list;
    }

    @Override
    protected HashMap getData() {
        HashMap map = super.getData();
        map.put("list", this.list);
        return map;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy