Six4Win.WebApi

<back to all web services

GetDrawDignostics

The following routes are available for this service:
All Verbs/qry/rounds/draw/diagnostics
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class GetDrawDignostics
    {
        public String id = null;
        
        public String getId() { return id; }
        public GetDrawDignostics setId(String value) { this.id = value; return this; }
    }

    public static class DrawDiagnostics
    {
        public String id = null;
        public Initialization initializationInfo = null;
        public SequenceGeneration sequenceGenerationInfo = null;
        public BestFitFinder bestFitFinderInfo = null;
        public Purger purgerInfo = null;
        public Long duration = null;
        public ArrayList<StimulationResponse> stimulationResponses = null;
        public LocalCodePotInfo localCodePot = null;
        public SuperWinInfo superWin = null;
        public HappyHourInfo happyHour = null;
        public String reasoning = null;
        public AccumulatorConfiguration configuration = null;
        public SyphonInfo syphonInfo = null;
        
        public String getId() { return id; }
        public DrawDiagnostics setId(String value) { this.id = value; return this; }
        public Initialization getInitializationInfo() { return initializationInfo; }
        public DrawDiagnostics setInitializationInfo(Initialization value) { this.initializationInfo = value; return this; }
        public SequenceGeneration getSequenceGenerationInfo() { return sequenceGenerationInfo; }
        public DrawDiagnostics setSequenceGenerationInfo(SequenceGeneration value) { this.sequenceGenerationInfo = value; return this; }
        public BestFitFinder getBestFitFinderInfo() { return bestFitFinderInfo; }
        public DrawDiagnostics setBestFitFinderInfo(BestFitFinder value) { this.bestFitFinderInfo = value; return this; }
        public Purger getPurgerInfo() { return purgerInfo; }
        public DrawDiagnostics setPurgerInfo(Purger value) { this.purgerInfo = value; return this; }
        public Long getDuration() { return duration; }
        public DrawDiagnostics setDuration(Long value) { this.duration = value; return this; }
        public ArrayList<StimulationResponse> getStimulationResponses() { return stimulationResponses; }
        public DrawDiagnostics setStimulationResponses(ArrayList<StimulationResponse> value) { this.stimulationResponses = value; return this; }
        public LocalCodePotInfo getLocalCodePot() { return localCodePot; }
        public DrawDiagnostics setLocalCodePot(LocalCodePotInfo value) { this.localCodePot = value; return this; }
        public SuperWinInfo getSuperWin() { return superWin; }
        public DrawDiagnostics setSuperWin(SuperWinInfo value) { this.superWin = value; return this; }
        public HappyHourInfo getHappyHour() { return happyHour; }
        public DrawDiagnostics setHappyHour(HappyHourInfo value) { this.happyHour = value; return this; }
        public String getReasoning() { return reasoning; }
        public DrawDiagnostics setReasoning(String value) { this.reasoning = value; return this; }
        public AccumulatorConfiguration getConfiguration() { return configuration; }
        public DrawDiagnostics setConfiguration(AccumulatorConfiguration value) { this.configuration = value; return this; }
        public SyphonInfo getSyphonInfo() { return syphonInfo; }
        public DrawDiagnostics setSyphonInfo(SyphonInfo value) { this.syphonInfo = value; return this; }
    }

    public static class Initialization
    {
        public Long dataLoadDuration = null;
        public Long betsCollectionsCreationDuration = null;
        public Long combinationsOccuranceLookupInitializationDuration = null;
        
        public Long getDataLoadDuration() { return dataLoadDuration; }
        public Initialization setDataLoadDuration(Long value) { this.dataLoadDuration = value; return this; }
        public Long getBetsCollectionsCreationDuration() { return betsCollectionsCreationDuration; }
        public Initialization setBetsCollectionsCreationDuration(Long value) { this.betsCollectionsCreationDuration = value; return this; }
        public Long getCombinationsOccuranceLookupInitializationDuration() { return combinationsOccuranceLookupInitializationDuration; }
        public Initialization setCombinationsOccuranceLookupInitializationDuration(Long value) { this.combinationsOccuranceLookupInitializationDuration = value; return this; }
    }

    public static class SequenceGeneration
    {
        public Integer nrOfThreads = null;
        public Integer nrOfResultsProbed = null;
        public Long duration = null;
        public Long avgSinglePassDuration = null;
        
        public Integer getNrOfThreads() { return nrOfThreads; }
        public SequenceGeneration setNrOfThreads(Integer value) { this.nrOfThreads = value; return this; }
        public Integer getNrOfResultsProbed() { return nrOfResultsProbed; }
        public SequenceGeneration setNrOfResultsProbed(Integer value) { this.nrOfResultsProbed = value; return this; }
        public Long getDuration() { return duration; }
        public SequenceGeneration setDuration(Long value) { this.duration = value; return this; }
        public Long getAvgSinglePassDuration() { return avgSinglePassDuration; }
        public SequenceGeneration setAvgSinglePassDuration(Long value) { this.avgSinglePassDuration = value; return this; }
    }

    public static class BestFitFinder
    {
        public BigDecimal targetAmount = null;
        public BigDecimal awardedAmount = null;
        public BigDecimal deviation = null;
        public BigDecimal deviationPct = null;
        public String sequenceResultType = null;
        public Boolean isJackPot5Drawn = null;
        public Long filteringPeriod = null;
        public SortingOrder winCountOrder = null;
        public BigDecimal minAmount = null;
        public BigDecimal maxAmount = null;
        
        public BigDecimal getTargetAmount() { return targetAmount; }
        public BestFitFinder setTargetAmount(BigDecimal value) { this.targetAmount = value; return this; }
        public BigDecimal getAwardedAmount() { return awardedAmount; }
        public BestFitFinder setAwardedAmount(BigDecimal value) { this.awardedAmount = value; return this; }
        public BigDecimal getDeviation() { return deviation; }
        public BestFitFinder setDeviation(BigDecimal value) { this.deviation = value; return this; }
        public BigDecimal getDeviationPct() { return deviationPct; }
        public BestFitFinder setDeviationPct(BigDecimal value) { this.deviationPct = value; return this; }
        public String getSequenceResultType() { return sequenceResultType; }
        public BestFitFinder setSequenceResultType(String value) { this.sequenceResultType = value; return this; }
        public Boolean getIsJackPot5Drawn() { return isJackPot5Drawn; }
        public BestFitFinder setIsJackPot5Drawn(Boolean value) { this.isJackPot5Drawn = value; return this; }
        public Long getFilteringPeriod() { return filteringPeriod; }
        public BestFitFinder setFilteringPeriod(Long value) { this.filteringPeriod = value; return this; }
        public SortingOrder getWinCountOrder() { return winCountOrder; }
        public BestFitFinder setWinCountOrder(SortingOrder value) { this.winCountOrder = value; return this; }
        public BigDecimal getMinAmount() { return minAmount; }
        public BestFitFinder setMinAmount(BigDecimal value) { this.minAmount = value; return this; }
        public BigDecimal getMaxAmount() { return maxAmount; }
        public BestFitFinder setMaxAmount(BigDecimal value) { this.maxAmount = value; return this; }
    }

    public static enum SortingOrder
    {
        @SerializedName("0") None(0),
        @SerializedName("1") Ascending(1),
        @SerializedName("2") Descending(2);

        private final int value;
        SortingOrder(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static class Purger
    {
        public BigDecimal prevalentStake = null;
        public String poolPurger = null;
        public ArrayList<QualifiedPool> qualifiedPools = null;
        
        public BigDecimal getPrevalentStake() { return prevalentStake; }
        public Purger setPrevalentStake(BigDecimal value) { this.prevalentStake = value; return this; }
        public String getPoolPurger() { return poolPurger; }
        public Purger setPoolPurger(String value) { this.poolPurger = value; return this; }
        public ArrayList<QualifiedPool> getQualifiedPools() { return qualifiedPools; }
        public Purger setQualifiedPools(ArrayList<QualifiedPool> value) { this.qualifiedPools = value; return this; }
    }

    public static class QualifiedPool
    {
        public Integer id = null;
        public String name = null;
        public BigDecimal coefficient = null;
        public BigDecimal availableAmount = null;
        public BigDecimal awardedAmount = null;
        public Bet targetBet = null;
        
        public Integer getId() { return id; }
        public QualifiedPool setId(Integer value) { this.id = value; return this; }
        public String getName() { return name; }
        public QualifiedPool setName(String value) { this.name = value; return this; }
        public BigDecimal getCoefficient() { return coefficient; }
        public QualifiedPool setCoefficient(BigDecimal value) { this.coefficient = value; return this; }
        public BigDecimal getAvailableAmount() { return availableAmount; }
        public QualifiedPool setAvailableAmount(BigDecimal value) { this.availableAmount = value; return this; }
        public BigDecimal getAwardedAmount() { return awardedAmount; }
        public QualifiedPool setAwardedAmount(BigDecimal value) { this.awardedAmount = value; return this; }
        public Bet getTargetBet() { return targetBet; }
        public QualifiedPool setTargetBet(Bet value) { this.targetBet = value; return this; }
    }

    public static class Bet
    {
        public Boolean isFound = null;
        public String betId = null;
        public String slipId = null;
        public Object combStake = null;
        
        public Boolean getIsFound() { return isFound; }
        public Bet setIsFound(Boolean value) { this.isFound = value; return this; }
        public String getBetId() { return betId; }
        public Bet setBetId(String value) { this.betId = value; return this; }
        public String getSlipId() { return slipId; }
        public Bet setSlipId(String value) { this.slipId = value; return this; }
        public Object getCombStake() { return combStake; }
        public Bet setCombStake(Object value) { this.combStake = value; return this; }
    }

    public static class StimulationResponse
    {
        public String stimulationId = null;
        public ResponseStatus status = null;
        public String failureReason = null;
        public String slipId = null;
        public String betId = null;
        public BigDecimal amountAwarded = null;
        
        public String getStimulationId() { return stimulationId; }
        public StimulationResponse setStimulationId(String value) { this.stimulationId = value; return this; }
        public ResponseStatus getStatus() { return status; }
        public StimulationResponse setStatus(ResponseStatus value) { this.status = value; return this; }
        public String getFailureReason() { return failureReason; }
        public StimulationResponse setFailureReason(String value) { this.failureReason = value; return this; }
        public String getSlipId() { return slipId; }
        public StimulationResponse setSlipId(String value) { this.slipId = value; return this; }
        public String getBetId() { return betId; }
        public StimulationResponse setBetId(String value) { this.betId = value; return this; }
        public BigDecimal getAmountAwarded() { return amountAwarded; }
        public StimulationResponse setAmountAwarded(BigDecimal value) { this.amountAwarded = value; return this; }
    }

    public static class LocalCodePotInfo
    {
        public Boolean isActive = null;
        public CurrentRoundInfo current = null;
        public ArrayList<WinnerByCode> winners = null;
        
        public Boolean getIsActive() { return isActive; }
        public LocalCodePotInfo setIsActive(Boolean value) { this.isActive = value; return this; }
        public CurrentRoundInfo getCurrent() { return current; }
        public LocalCodePotInfo setCurrent(CurrentRoundInfo value) { this.current = value; return this; }
        public ArrayList<WinnerByCode> getWinners() { return winners; }
        public LocalCodePotInfo setWinners(ArrayList<WinnerByCode> value) { this.winners = value; return this; }
    }

    public static class CurrentRoundInfo
    {
        public String roundId = null;
        public BigDecimal amount = null;
        public String inertCode = null;
        
        public String getRoundId() { return roundId; }
        public CurrentRoundInfo setRoundId(String value) { this.roundId = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public CurrentRoundInfo setAmount(BigDecimal value) { this.amount = value; return this; }
        public String getInertCode() { return inertCode; }
        public CurrentRoundInfo setInertCode(String value) { this.inertCode = value; return this; }
    }

    public static class WinnerByCode
    {
        public String roundId = null;
        public Date drawnAtUtc = null;
        public String slipId = null;
        public String betId = null;
        public String code = null;
        public BigDecimal amount = null;
        public Origin origin = null;
        public Ref bettor = null;
        public String locationAddressOrBettorInfo = null;
        
        public String getRoundId() { return roundId; }
        public WinnerByCode setRoundId(String value) { this.roundId = value; return this; }
        public Date getDrawnAtUtc() { return drawnAtUtc; }
        public WinnerByCode setDrawnAtUtc(Date value) { this.drawnAtUtc = value; return this; }
        public String getSlipId() { return slipId; }
        public WinnerByCode setSlipId(String value) { this.slipId = value; return this; }
        public String getBetId() { return betId; }
        public WinnerByCode setBetId(String value) { this.betId = value; return this; }
        public String getCode() { return code; }
        public WinnerByCode setCode(String value) { this.code = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public WinnerByCode setAmount(BigDecimal value) { this.amount = value; return this; }
        public Origin getOrigin() { return origin; }
        public WinnerByCode setOrigin(Origin value) { this.origin = value; return this; }
        public Ref getBettor() { return bettor; }
        public WinnerByCode setBettor(Ref value) { this.bettor = value; return this; }
        public String getLocationAddressOrBettorInfo() { return locationAddressOrBettorInfo; }
        public WinnerByCode setLocationAddressOrBettorInfo(String value) { this.locationAddressOrBettorInfo = value; return this; }
    }

    public static class Origin
    {
        public BettingApp application = null;
        public String ip = null;
        public RefEx organization = null;
        public Ref region = null;
        public Ref locationGroup = null;
        public RefEx location = null;
        public RefEx device = null;
        public Ref clerk = null;
        
        public BettingApp getApplication() { return application; }
        public Origin setApplication(BettingApp value) { this.application = value; return this; }
        public String getIp() { return ip; }
        public Origin setIp(String value) { this.ip = value; return this; }
        public RefEx getOrganization() { return organization; }
        public Origin setOrganization(RefEx value) { this.organization = value; return this; }
        public Ref getRegion() { return region; }
        public Origin setRegion(Ref value) { this.region = value; return this; }
        public Ref getLocationGroup() { return locationGroup; }
        public Origin setLocationGroup(Ref value) { this.locationGroup = value; return this; }
        public RefEx getLocation() { return location; }
        public Origin setLocation(RefEx value) { this.location = value; return this; }
        public RefEx getDevice() { return device; }
        public Origin setDevice(RefEx value) { this.device = value; return this; }
        public Ref getClerk() { return clerk; }
        public Origin setClerk(Ref value) { this.clerk = value; return this; }
    }

    public static class BettingApp
    {
        public String name = null;
        public String version = null;
        
        public String getName() { return name; }
        public BettingApp setName(String value) { this.name = value; return this; }
        public String getVersion() { return version; }
        public BettingApp setVersion(String value) { this.version = value; return this; }
    }

    public static class RefEx extends Ref
    {
        public RecordDictionary<String, String> data = null;
        
        public RecordDictionary<String, String> getData() { return data; }
        public RefEx setData(RecordDictionary<String, String> value) { this.data = value; return this; }
    }

    public static class Ref
    {
        public String id = null;
        public String val = null;
        
        public String getId() { return id; }
        public Ref setId(String value) { this.id = value; return this; }
        public String getVal() { return val; }
        public Ref setVal(String value) { this.val = value; return this; }
    }

    public static class RecordDictionary<TKey, TVal> extends HashMap<TKey,TVal>
    {
        
    }

    public static class SuperWinInfo
    {
        public Long durationInMs = null;
        
        public Long getDurationInMs() { return durationInMs; }
        public SuperWinInfo setDurationInMs(Long value) { this.durationInMs = value; return this; }
    }

    public static class HappyHourInfo
    {
        public Boolean isHappyHour = null;
        public BigDecimal oddsModifier = null;
        public BigDecimal roundPoolBonusPct = null;
        
        public Boolean getIsHappyHour() { return isHappyHour; }
        public HappyHourInfo setIsHappyHour(Boolean value) { this.isHappyHour = value; return this; }
        public BigDecimal getOddsModifier() { return oddsModifier; }
        public HappyHourInfo setOddsModifier(BigDecimal value) { this.oddsModifier = value; return this; }
        public BigDecimal getRoundPoolBonusPct() { return roundPoolBonusPct; }
        public HappyHourInfo setRoundPoolBonusPct(BigDecimal value) { this.roundPoolBonusPct = value; return this; }
    }

    public static class AccumulatorConfiguration extends AccumulatorConfiguration
    {
        public String id = null;
        public Date updatedAt = null;
        
        public String getId() { return id; }
        public AccumulatorConfiguration setId(String value) { this.id = value; return this; }
        public Date getUpdatedAt() { return updatedAt; }
        public AccumulatorConfiguration setUpdatedAt(Date value) { this.updatedAt = value; return this; }
    }

    public static class SyphonInfo
    {
        public HashMap<String,Syphon> bettors = null;
        public HashMap<String,Syphon> locations = null;
        public Boolean hasSyphons = null;
        public Integer totalSyphonsInRound = null;
        
        public HashMap<String,Syphon> getBettors() { return bettors; }
        public SyphonInfo setBettors(HashMap<String,Syphon> value) { this.bettors = value; return this; }
        public HashMap<String,Syphon> getLocations() { return locations; }
        public SyphonInfo setLocations(HashMap<String,Syphon> value) { this.locations = value; return this; }
        public Boolean isHasSyphons() { return hasSyphons; }
        public SyphonInfo setHasSyphons(Boolean value) { this.hasSyphons = value; return this; }
        public Integer getTotalSyphonsInRound() { return totalSyphonsInRound; }
        public SyphonInfo setTotalSyphonsInRound(Integer value) { this.totalSyphonsInRound = value; return this; }
    }

    public static class Syphon
    {
        public String id = null;
        public String name = null;
        public SyphonType type = null;
        public Integer nrOfCombinations = null;
        
        public String getId() { return id; }
        public Syphon setId(String value) { this.id = value; return this; }
        public String getName() { return name; }
        public Syphon setName(String value) { this.name = value; return this; }
        public SyphonType getType() { return type; }
        public Syphon setType(SyphonType value) { this.type = value; return this; }
        public Integer getNrOfCombinations() { return nrOfCombinations; }
        public Syphon setNrOfCombinations(Integer value) { this.nrOfCombinations = value; return this; }
    }

    public static enum SyphonType
    {
        @SerializedName("0") Location(0),
        @SerializedName("1") Bettor(1);

        private final int value;
        SyphonType(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

}

Java GetDrawDignostics DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /qry/rounds/draw/diagnostics HTTP/1.1 
Host: s4w2.api.bettor.cc 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id":"String","initializationInfo":{"dataLoadDuration":0,"betsCollectionsCreationDuration":0,"combinationsOccuranceLookupInitializationDuration":0},"sequenceGenerationInfo":{"nrOfThreads":0,"nrOfResultsProbed":0,"duration":0,"avgSinglePassDuration":0},"bestFitFinderInfo":{"targetAmount":0,"awardedAmount":0,"deviation":0,"deviationPct":0,"sequenceResultType":"String","isJackPot5Drawn":false,"filteringPeriod":0,"winCountOrder":0,"minAmount":0,"maxAmount":0},"purgerInfo":{"prevalentStake":0,"poolPurger":"String","qualifiedPools":[{"id":0,"name":"String","coefficient":0,"availableAmount":0,"awardedAmount":0,"targetBet":{"isFound":false,"betId":"String","slipId":"String","combStake":{}}}]},"duration":0,"stimulationResponses":[{"stimulationId":"String","status":0,"failureReason":"String","slipId":"String","betId":"String","amountAwarded":0}],"localCodePot":{"durationInMs":0},"superWin":{"durationInMs":0},"happyHour":{"isHappyHour":false,"oddsModifier":0,"roundPoolBonusPct":0},"reasoning":"String","configuration":{"pools":[{"id":0,"name":"String","rtp":0,"reserveRTP":0,"totalRTP":0}],"prevalentStake":0,"purgeThresholdModifier":0,"locationOptimizationLevel":0,"jackPot5ThresholdInterval":{"start":0,"end":0},"deviationCategorySpanInPct":0,"deviationCategoryThresholdAmount":0,"roundPoolCircuitBreakerThreshold":0,"lowWinCountAffinityInPct":0,"winCountOrderAffinity":[{"order":0,"probability":0}],"highRollerSettings":{"pools":[{"id":0,"name":"String","isActive":false,"contributionToRoundPoolPct":0,"caps":{"plusCoef":0,"minusCoef":0,"maxAmountInPrevalentStakes":0}}],"categoryThresholds":[{"category":0,"threshold":0}]},"overflowCoefficientPoolsToRound":false,"antiSyphonProtectionOverride":false,"fraudDetectionConfig":{"antiSyphon":{"combinationCountPerRoundThresholdPct":0,"excludedLocations":[{"id":"String","val":"String"}],"includeRoundPctAsBettorSyphonCriteria":false,"isActive":false}},"debugConfig":{"logLocationStats":false,"logBettorSats":false}},"syphonInfo":{"bettors":{"String":{"id":"String","name":"String","type":0,"nrOfCombinations":0}},"locations":{"String":{"id":"String","name":"String","type":0,"nrOfCombinations":0}},"hasSyphons":true,"totalSyphonsInRound":2}}