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: 0

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