dto

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2023 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombTbAndCurrIDs

func CombTbAndCurrIDs(tableID, currencyID string) string

CombTbAndCurrIDs combines tableID and currencyID in the following format: "$(tableID):$(currencyID)" Example: tableID = 100, currencyID = USD ==> "100:USD"

Types

type Dealer

type Dealer struct {
	Name string `json:"name"`
}

type Last20Results

type Last20Results struct {
	Time               string `json:"time"`
	Result             int    `json:"result"`
	Color              string `json:"color"`
	GameId             string `json:"gameId"`
	PowerUpList        []any  `json:"powerUpList"`
	PowerUpMultipliers []any  `json:"powerUpMultipliers"`
}

type PragmaticTable

type PragmaticTable struct {
	TotalSeatedPlayers        int             `json:"totalSeatedPlayers"`
	Last20Results             []Last20Results `json:"last20Results"`
	TableId                   string          `json:"tableId"`
	TableName                 string          `json:"tableName"`
	NewTable                  bool            `json:"newTable"`
	LanguageSpecificTableInfo string          `json:"languageSpecificTableInfo"`
	TableImage                string          `json:"tableImage"`
	TableLimits               TableLimits     `json:"tableLimits"`
	Dealer                    Dealer          `json:"dealer"`
	TableOpen                 bool            `json:"tableOpen"`
	TableType                 string          `json:"tableType"`
	TableSubtype              string          `json:"tableSubtype"`
	Currency                  string          `json:"currency"`
}

func Bytes2PT

func Bytes2PT(data []byte) (PragmaticTable, error)

Bytes2PT unmarshal bytes array into PragmaticTable.

type PragmaticTableWithID

type PragmaticTableWithID struct {
	// tID = 100; cID = 200 => TableAndCurrencyID = "100:200"
	TableAndCurrencyID string         `json:"tableAndCurrencyID,omitempty"`
	PragmaticTable     PragmaticTable `json:"pragmaticTable"`
}

type TableLimits

type TableLimits struct {
	Ranges     []float64 `json:"ranges"`
	MinBet     float64   `json:"minBet"`
	MaxBet     float64   `json:"maxBet"`
	MaxPlayers int       `json:"maxPlayers"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL