Add type PushPreview.

This commit is contained in:
Владислав Весельский 2025-01-27 13:10:03 +03:00
parent 2b7a4dcac0
commit 6ca0eff5d7
1 changed files with 19 additions and 0 deletions

View File

@ -8,6 +8,25 @@ func (id PushId) String() string {
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
type PushPreview struct {
Id PushId `json:"id"`
Ctime uint32 `json:"ctime"`
Stime uint32 `json:"stime"`
Status int `json:"status"`
Info string `json:"info,omitempty"`
MaxVersion string `json:"maxVersion,omitempty"`
Platforms []uint32 `json:"platforms,omitempty"`
PlayersIds []uint32 `json:"playersIds,omitempty"`
Title string `json:"title"`
Message string `json:"message"`
Total int `json:"total"`
Sent int `json:"sent"`
Fails int `json:"fails"`
ForTest bool `json:"forTest,omitempty"`
}
//-----------------------------------------------------------------------------
type TextVariant struct { type TextVariant struct {
Lang int `json:"lang"` Lang int `json:"lang"`
Title string `json:"title"` Title string `json:"title"`