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

com.lucadev.coinmarketcap.model.CoinMarketApiResponse Maven / Gradle / Ivy

The newest version!
package com.lucadev.coinmarketcap.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Map;

/**
 * API response for a single market
 *
 * @author Luca Camphuisen
 * @since 6-5-18
 */
public class CoinMarketApiResponse extends ApiResponse {

    /**
     * Constructs the response model.
     *
     * @param data     the response data.
     * @param metadata the metadata object in the response. Inside a map.
     */
    @JsonCreator
    public CoinMarketApiResponse(@JsonProperty(JSON_DATA_PROPERTY) CoinMarket data,
                                 @JsonProperty(JSON_METADATA_PROPERTY) Map metadata) {
        super(data, metadata);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy