internal static int[] GetBetWinNumbersByBetPosition(RDeepBetPosition betPosition) { int[] result = null; RDeepBetTypeWiningNumbersList betTypeWinnningNumberList = GetWiningNumbersListByBetType(betPosition.betType); result = GetWinningNumbersForBet(betPosition.betPositions, betTypeWinnningNumberList.betWiningNumbersList); return(result); }
private static RDeepBetTypeWiningNumbersList GetWiningNumbersListByBetType(BetTypes bet) { RDeepBetTypeWiningNumbersList result = null; foreach (RDeepBetTypeWiningNumbersList betTypeWinnningNumbersList in RDeepWiningNumbersList.betTypeWinningNumbersLists) { if (betTypeWinnningNumbersList.betType == bet) { result = betTypeWinnningNumbersList; } } return(result); }
internal static RDeepBetTypeWiningNumbersList GetBetTypeWinningNumbersListByID(int ID) { RDeepBetTypeWiningNumbersList result = null; foreach (RDeepBetTypeWiningNumbersList winningNumbersList in betTypeWinningNumbersLists) { if (winningNumbersList.ID == ID) { result = winningNumbersList; } } return(result); }