package models

import "time"

type GameServer struct {
	ID                int        `json:"id"`
	Name              string     `json:"name"`
	Address           string     `json:"address"`
	IsEnabled         bool       `json:"is_enabled"`
	StatusJSON        *string    `json:"-"`
	LastPolledAt      *time.Time `json:"last_polled_at"`
	Motd              *string    `json:"motd"`
	PlayerCount       *int       `json:"player_count"`
	MaxPlayers        *int       `json:"max_players"`
	VersionName       *string    `json:"version_name"`
	PingBackendServer *int       `json:"ping_proxy_server"`
	BlueMapURL        *string    `json:"bluemap_url"`
}

type ServerStatus struct {
	StatusJSON  string
	Motd        string
	PlayerCount int
	MaxPlayers  int
	VersionName string
	Ping        int64
}
