mirror of
https://github.com/teacat/chaturbate-dvr.git
synced 2025-10-29 16:59:59 +00:00
22 lines
618 B
Go
22 lines
618 B
Go
package chaturbate
|
|
|
|
type Update struct {
|
|
Username string `json:"username"`
|
|
Log string `json:"log"`
|
|
IsPaused bool `json:"is_paused"`
|
|
IsOnline bool `json:"is_online"`
|
|
IsStopped bool `json:"is_stopped"`
|
|
Filename string `json:"filename"`
|
|
LastStreamedAt string `json:"last_streamed_at"`
|
|
SegmentDuration int `json:"segment_duration"`
|
|
SegmentFilesize int `json:"segment_filesize"`
|
|
}
|
|
|
|
func (u *Update) SegmentDurationStr() string {
|
|
return DurationStr(u.SegmentDuration)
|
|
}
|
|
|
|
func (u *Update) SegmentFilesizeStr() string {
|
|
return ByteStr(u.SegmentFilesize)
|
|
}
|