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;
}
}