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