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

com.sportradar.unifiedodds.sdk.CustomBetManager 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.custombetentities.AvailableSelections;
import com.sportradar.unifiedodds.sdk.custombetentities.Calculation;
import com.sportradar.unifiedodds.sdk.custombetentities.Selection;
import com.sportradar.utils.URN;

import java.util.List;

/**
 * Defines methods used to perform various custom bet operations
 */
public interface CustomBetManager {
    /**
     * Returns an {@link AvailableSelections} instance providing the available selections
     * for the event associated with the provided {@link URN} identifier
     *
     * @param eventId the {@link URN} identifier of the event for which the available selections should be returned
     * @return an {@link AvailableSelections} providing the the available selections of the associated event
     */
    AvailableSelections getAvailableSelections(URN eventId);

    /**
     * Returns an {@link Calculation} instance providing the probability for the specified selections
     *
     * @param selections the {@link List} containing selections for which the probability should be calculated
     * @return an {@link Calculation} providing the the probability for the specified selections
     */
    Calculation calculateProbability(List selections);

    /**
     * Returns an {@link CustomBetSelectionBuilder} instance used to build selections
     *
     * @return an {@link CustomBetSelectionBuilder} instance used to build selections
     */
    CustomBetSelectionBuilder getCustomBetSelectionBuilder();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy