2020-06-22 20:11:56 -05:00
|
|
|
package models
|
2020-06-02 17:35:49 -07:00
|
|
|
|
2020-10-06 01:07:09 +08:00
|
|
|
import "github.com/owncast/owncast/utils"
|
2020-06-24 22:52:05 -07:00
|
|
|
|
2020-06-22 20:11:56 -05:00
|
|
|
//Status represents the status of the system
|
2020-06-02 17:35:49 -07:00
|
|
|
type Status struct {
|
2020-06-10 23:52:55 -07:00
|
|
|
Online bool `json:"online"`
|
|
|
|
ViewerCount int `json:"viewerCount"`
|
|
|
|
OverallMaxViewerCount int `json:"overallMaxViewerCount"`
|
|
|
|
SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
|
2020-06-24 22:52:05 -07:00
|
|
|
|
2020-07-18 15:06:54 -07:00
|
|
|
LastConnectTime utils.NullTime `json:"lastConnectTime"`
|
|
|
|
LastDisconnectTime utils.NullTime `json:"lastDisconnectTime"`
|
2020-06-02 17:35:49 -07:00
|
|
|
}
|