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

com.sportradar.unifiedodds.sdk.CashOutProbabilitiesManager Maven / Gradle / Ivy

/*
 * Copyright (C) Sportradar AG. See LICENSE for full license governing this code
 */

package com.sportradar.unifiedodds.sdk;

import com.sportradar.unifiedodds.sdk.entities.SportEvent;
import com.sportradar.unifiedodds.sdk.oddsentities.CashOutProbabilities;
import com.sportradar.utils.URN;

import java.util.Locale;
import java.util.Map;

/**
 * Defines methods used retrieve markets with probability information used for cash out
 */
public interface CashOutProbabilitiesManager {
    /**
     * Returns a {@link CashOutProbabilities} instance providing the cashout probabilities for the specified event
     * (the provided data is translated in the default language)
     *
     * @param eventId the {@link URN} identifier of the event
     * @param  a SportEvent inherited instance
     * @return a {@link CashOutProbabilities} providing the probabilities of the associated event
     */
     CashOutProbabilities getCashOutProbabilities(URN eventId);

    /**
     * Returns a {@link CashOutProbabilities} instance providing the cashout probabilities for the specified event
     *
     * @param eventId the {@link URN} identifier of the event
     * @param locale the {@link Locale} in which to provide the data
     * @param  a SportEvent inherited instance
     * @return a {@link CashOutProbabilities} providing the probabilities of the associated event
     */
     CashOutProbabilities getCashOutProbabilities(URN eventId, Locale locale);

    /**
     * Returns a {@link CashOutProbabilities} instance providing the cashout probabilities for the specified market on the associated event
     * (the provided data is translated in the default language)
     *
     * @param eventId the {@link URN} identifier of the event
     * @param marketId the market identifier
     * @param specifiers a {@link Map} containing market specifiers or a null reference if market has no specifiers
     * @param  a SportEvent inherited instance
     * @return a {@link CashOutProbabilities} providing the probabilities of the associated event/market combination
     */
     CashOutProbabilities getCashOutProbabilities(URN eventId, int marketId, Map specifiers);

    /**
     * Returns a {@link CashOutProbabilities} instance providing the cashout probabilities for the specified market on the associated event
     *
     * @param eventId the {@link URN} identifier of the event
     * @param marketId the market identifier
     * @param specifiers a {@link Map} containing market specifiers or a null reference if market has no specifiers
     * @param locale the {@link Locale} in which to provide the data
     * @param  a SportEvent inherited instance
     * @return a {@link CashOutProbabilities} providing the probabilities of the associated event/market combination
     */
     CashOutProbabilities getCashOutProbabilities(URN eventId, int marketId, Map specifiers, Locale locale);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy