Skip to main content

Message Format

Notification Types

Description

  • As the game progresses, different events will occur. When each event occurs, there is a corresponding notification type (GameNotifyType) and an event message. This message has four message formats: GameProvide, ShiftRecord, ShoeRecord, RoundRecord.

List

GameNotifyTypeBody Message FormatTrigger Time
NOTIFY_GAME_PROVIDE_STATE_CHANGEGameProvideNotification when game supply status changes
NOTIFY_GAME_DEALER_LOGINGameProvideNotification when dealer logs in during game flow
NOTIFY_GAME_DEALER_LOGOUTGameProvideNotification when dealer logs out during game flow
NOTIFY_GAME_CHANGING_SHOEGameProvideNotification when shoe changing starts during game flow
NOTIFY_SHIFT_STARTShiftRecordNotification when new shift starts
NOTIFY_SHIFT_ENDShiftRecordNotification when this shift ends
NOTIFY_SHOE_STARTShoeRecordNotification when new shoe starts
NOTIFY_SHOE_ENDShoeRecordNotification when this shoe ends
NOTIFY_ROUND_STARTRoundRecordNotification when new round starts
NOTIFY_ROUND_BETRoundRecordNotification when game round starts betting
NOTIFY_ROUND_NO_MORE_BETRoundRecordNotification when game round ends betting
NOTIFY_ROUND_STEPRoundRecordNotification during game round step
NOTIFY_ROUND_FINISHRoundRecordNotification when game round completes
NOTIFY_ROUND_CANCELRoundRecordNotification when game round is cancelled
NOTIFY_ROUND_PLAYBACKRoundRecordNotification when game round playback is created

GameProvide

  • proto Github

  • Records current game supply status, dealer, live stream information, etc.

FieldTypeDescription
supplierstringGame supplier
game_typestringGame type
game_subtypestringGame subtype
game_codestringGame code
tagsmap<string, string>Tags
stateGameProvideStateStatus
playersmap<int32, string>Player seating
players_namemap<string, string>Player names
mediasmap<string, string>Additional media: key: media resource code; value: media content.
live_streamsmap<string, LiveStreamParams>Live stream parameters
last_round_codestringLast round

GameProvideState

Game supply status types

ValueCodeDescription
0GAME_PROVIDE_STATE_UNSPECIFIEDUnspecified
1GAME_PROVIDE_AVAILABLEAvailable
2GAME_PROVIDE_MAINTEN_AFTER_ROUNDMaintenance after this round
3GAME_PROVIDE_IN_MAINTENANCEIn maintenance
4GAME_PROVIDE_CLOSE_AFTER_ROUNDClose after this round
5GAME_PROVIDE_CLOSEClose after this round
6GAME_PROVIDE_AVAILABLE_AFTER_ROUNDAvailable after this round

LiveStreamParams

Live stream information, required when composing live stream URL

FieldTypeDescription
codestringStream code
appstringApplication
channelstringChannel

ShiftRecord

Shift record

FieldTypeDescription
idbytesRecord ID
supplierstringGame supplier
game_typestringGame type
game_subtypestringGame subtype
game_versionstringGame version
game_codestringGame code
table_codestringTable code
shift_codestringShift code
ts_startgoogle.protobuf.TimestampStart time
tagsmap<string, string>Tags
round_codesrepeated stringExecuted game rounds
shoe_codesrepeated stringShuffles
is_endboolEnded
ts_endgoogle.protobuf.TimestampEnd time
testboolIs test

ShoeRecord

Shoe record

FieldTypeDescription
idbytesRecord ID
supplierstringGame supplier
game_typestringGame type
game_subtypestringGame subtype
game_versionstringGame version
game_codestringGame code
table_codestringTable code
shift_codestringShift code
shoe_codestringUsed shuffle code
ts_startgoogle.protobuf.TimestampTime when this shoe starts being used
decksmap<int32, Deck>cardList
is_endboolThis shoe has been used up and cannot be used again
ts_endgoogle.protobuf.TimestampTime when shoe usage is completed
testboolIs test

Deck

A deck of cards

FieldTypeDescription
cardsCardListCards
start_indexint64Starting position (after cutting)
cut_indexint64Cut position
indexint64Current position

RoundRecord

Round record

FieldTypeDescription
idbytesRecord ID
supplierstringGame supplier
game_typestringGame type
game_subtypestringGame subtype
game_versionstringGame version
game_codestringGame code
table_codestringTable code
shift_codestringShift code
shift_roundint64Round number in this shift
shoe_codestringUsed shoe code
shoe_roundint64Which round using this shuffle, counting from 1
round_codestringRound code
tagsmap<string, string>Tags
ts_startgoogle.protobuf.TimestampStart time
bet_stepBetStepBetting status
seatsmap<int32, Seat>Seat groups
playersmap<int32, string>Player seating
players_namemap<string, string>Player names
processrepeated StepHistory
is_endboolEnded
ts_endgoogle.protobuf.TimestampEnd time
cancelboolCancelled
cancel_codestringCancel code: CancelReasonCode
cancel_messagestringCancel remarks
win_typemap<int32, games.WinType>Winners
mediasmap<string, string>Additional media: key: media resource code; value: media content.
fortune_ratesmap<string, int64>Fortune rates
testboolIs test

BetStep

Betting step

ValueCodeDescription
0BET_STEP_UNSPECIFIEDUnspecified, this step is unrelated to betting
1ROUND_BETStart betting
3NO_MORE_BETStop betting
4CARDCard changes

Seat

Seat

FieldTypeDescription
codeint32Seat function code: SeatCode
cardsmap<int32, CardList>Various hand cards

Step

Game step

FieldTypeDescription
codeint32Step code: StepCode
seatint32Player, executor: SeatCode
timestampgoogle.protobuf.TimestampTimestamp
actionsrepeated StepActionExecution actions
errorstringExecution error
cancelboolCancelled
durationint64Allocated milliseconds
bet_stepBetStepBetting action

StepAction

Execution action: add, delete, or transfer certain resources

FieldTypeDescription
codestringAction description code
typeStepActionTypeAction type
source_seatint32Resource owner seat.
target_seatint32Resource transfer target seat.
cardsmap<int32, CardList>Target card resources
datagoogle.protobuf.Any(Optional) Additional data

StepActionType

Action type

ValueCodeDescription
0STEP_ACTION_TYPE_UNSPECIFIEDUnspecified
1ADDDeal resources
2SETSet specified resources
3SETALLOverwrite all resources
4REMOVERemove resources from the field
5READRead card data
6READ_UNVISIBLERead cards but not visible
7TRANSFERTransfer resources
8VISIBLECard front and back
9STATUSCard status change
10NONEThis step does not need to modify resources
11WINDetermine win/loss

CardList

Card list

FieldTypeDescription
card_typestring
listrepeated CardList
patternint32Hand pattern

Card

Card, represents various items used in this round

FieldTypeDescription
idstringCard ID: unique card code
codestringCard code
indexint64Order
visibleboolVisible
statusint64Horizontal, vertical...
plain_textstringPlain text
signaturestringSignature
sign_algorithmstringSignature method