com.lucadev.coinmarketcap.api.Ticker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coinmarketcap-api Show documentation
Show all versions of coinmarketcap-api Show documentation
A REST API client specifically developed to connect to the CoinMarketCap API.
The newest version!
package com.lucadev.coinmarketcap.api;
import com.lucadev.coinmarketcap.model.ApiResponse;
/**
* A basic interface that offers methodes required to implement a ticker functionality.
*
* @param the type of response that will be returned.
* @author Luca Camphuisen < [email protected] >
* @since 21-11-17
*/
public interface Ticker, E> {
/**
* Obtain a response from the ticker implementation.
*
* @return a full api response containing our requested information.
*/
T getApiResponse();
/**
* Obtain a usable model from the ticker implementation.
*
* @return a valid response containing our requested information.
*/
E get();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy