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

com.sportdataapi.data.Odds Maven / Gradle / Ivy

The newest version!
/**
 * 
 */
package com.sportdataapi.data;

import java.util.Collection;
import java.util.HashMap;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * Odds object for Sportdataapi.com.
 * @author ralph
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Odds extends HashMap{

	private static final long serialVersionUID = 1L;
	
	/**
	 * Constructor.
	 */
	public Odds() {
	}

	/**
	 * Returns the markets.
	 * @return the markets
	 */
	public Collection getMarkets() {
		return keySet();
	}

	/**
	 * Returns a single market odds info
	 * @param market the market name
	 * @return the odds for this market
	 */
	public MarketOdds getMarket(String market) {
		return get(market);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy