2023-05-20 21:18:10 -05:00
|
|
|
package structs
|
|
|
|
|
2023-05-22 09:28:31 -05:00
|
|
|
import "time"
|
|
|
|
|
2023-05-20 21:18:10 -05:00
|
|
|
type Social struct {
|
2023-05-22 09:28:31 -05:00
|
|
|
Type string `json:"type"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
Url string `json:"url"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Stream struct {
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
Topic string `json:"topic"`
|
|
|
|
StartedAt time.Time `json:"startedAt"`
|
|
|
|
Viewers int `json:"viewers"`
|
|
|
|
Preview string `json:"preview"`
|
|
|
|
Cursor string `json:"cursor,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Streamer struct {
|
|
|
|
Username string `json:"username"`
|
|
|
|
About string `json:"about"`
|
|
|
|
Pfp string `json:"pfp"`
|
|
|
|
Followers int `json:"followers"`
|
|
|
|
Socials []Social `json:"socials"`
|
|
|
|
IsLive bool `json:"isLive"`
|
|
|
|
IsPartner bool `json:"isPartner"`
|
|
|
|
ColorHex string `json:"colorHex"`
|
|
|
|
Id string `json:"id"`
|
|
|
|
Stream *Stream `json:"stream,omitempty"`
|
2023-05-20 21:18:10 -05:00
|
|
|
}
|
2023-05-26 09:17:55 -05:00
|
|
|
|
|
|
|
type Category struct {
|
|
|
|
Name string `json:"username"`
|
|
|
|
DisplayName string `json:"displayName"`
|
|
|
|
Viewers string `json:"viewers"`
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
Image string `json:"image"`
|
|
|
|
Cursor string `json:"cursor,omitempty"`
|
|
|
|
}
|