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

com.xeiam.xchange.coinsetter.service.polling.CoinsetterPingServiceRaw Maven / Gradle / Ivy

package com.xeiam.xchange.coinsetter.service.polling;

import java.io.IOException;

import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.coinsetter.rs.CoinsetterPing;
import com.xeiam.xchange.service.BaseExchangeService;

import si.mazi.rescu.RestProxyFactory;

/**
 * Ping service.
 */
public class CoinsetterPingServiceRaw extends BaseExchangeService {

  protected final CoinsetterPing ping;

  /**
   * Constructor
   *
   * @param exchange
   */
  public CoinsetterPingServiceRaw(Exchange exchange) {

    super(exchange);

    String baseUrl = exchange.getExchangeSpecification().getSslUri();
    ping = RestProxyFactory.createProxy(CoinsetterPing.class, baseUrl);
  }

  public String ping(String text) throws IOException {

    return ping.ping(text);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy