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

com.lucadev.coinmarketcap.api.Ticker Maven / Gradle / Ivy

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