package com.binance.connector.client.impl.websocketapi;

import com.binance.connector.client.utils.ParameterChecker;
import com.binance.connector.client.utils.websocketapi.WebSocketApiRequestHandler;
import org.json.JSONObject;

/* loaded from: binance-connector-java-3.0.0rc3.jar:com/binance/connector/client/impl/websocketapi/WebSocketApiGeneral.class */
public class WebSocketApiGeneral {
    private WebSocketApiRequestHandler handler;

    public WebSocketApiGeneral(WebSocketApiRequestHandler handler) {
        this.handler = handler;
    }

    public void ping(JSONObject parameters) {
        this.handler.publicRequest("ping", parameters);
    }

    public void serverTime(JSONObject parameters) {
        this.handler.publicRequest("time", parameters);
    }

    public void exchangeInfo(JSONObject parameters) {
        ParameterChecker.checkOnlyOneOfParameters(parameters, "symbol", "symbols", "permissions");
        this.handler.publicRequest("exchangeInfo", parameters);
    }
}
