sharedutils/sessionUtils/sessionTypes.go

28 lines
456 B
Go
Raw Normal View History

2022-10-27 20:31:46 +00:00
package sessionUtils
import (
"time"
)
type Session struct {
2022-10-28 14:21:10 +00:00
GameId string
2022-10-28 15:23:04 +00:00
Icon string
Title string
Status string
Version string
Expires time.Time
2022-10-27 20:31:46 +00:00
}
2022-11-03 23:21:44 +00:00
type Sessions struct {
Sessions []Session
}
2022-10-27 20:31:46 +00:00
type JSSessionInterface struct {
2022-10-28 14:21:10 +00:00
GameID string `json:"gameId"`
Icon string `json:"icon"`
Title string `json:"title"`
Status string `json:"status"`
Version string `json:"version"`
Expires time.Time `json:"expires"`
2022-10-27 20:31:46 +00:00
}