push_common/push_common.go

35 lines
995 B
Go
Raw Permalink Normal View History

2025-01-27 12:09:39 +03:00
package push_common
2025-01-27 12:53:40 +03:00
type PushId uint32
func (id PushId) String() string {
return uint32ToString(uint32(id))
}
//-----------------------------------------------------------------------------
2025-01-27 13:10:03 +03:00
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"`
}
//-----------------------------------------------------------------------------
2025-01-27 12:09:39 +03:00
type TextVariant struct {
Lang int `json:"lang"`
Title string `json:"title"`
Message string `json:"message"`
}