2023-05-20 22:18:10 -04:00
|
|
|
package structs
|
|
|
|
|
2023-05-22 10:28:31 -04:00
|
|
|
import "time"
|
|
|
|
|
2023-05-20 22:18:10 -04:00
|
|
|
type Social struct {
|
2023-05-29 16:02:10 -04:00
|
|
|
Type string `json:"type"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Url string `json:"url"`
|
2023-05-22 10:28:31 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
2023-06-19 22:59:34 -04:00
|
|
|
Login string `json:"login"`
|
2023-05-22 10:28:31 -04:00
|
|
|
About string `json:"about"`
|
|
|
|
Pfp string `json:"pfp"`
|
2023-07-03 15:28:20 -04:00
|
|
|
Banner *string `json:"banner"`
|
2023-05-22 10:28:31 -04:00
|
|
|
Followers int `json:"followers"`
|
|
|
|
Socials []Social `json:"socials"`
|
|
|
|
IsLive bool `json:"isLive"`
|
|
|
|
IsPartner bool `json:"isPartner"`
|
2023-05-28 16:19:39 -04:00
|
|
|
ColorHex *string `json:"colorHex"`
|
2023-05-22 10:28:31 -04:00
|
|
|
Id string `json:"id"`
|
|
|
|
Stream *Stream `json:"stream,omitempty"`
|
2023-05-20 22:18:10 -04:00
|
|
|
}
|
2023-05-26 10:17:55 -04:00
|
|
|
|
2023-05-28 16:19:39 -04:00
|
|
|
type CategoryPreview struct {
|
|
|
|
Name string `json:"name"`
|
2023-05-26 10:17:55 -04:00
|
|
|
DisplayName string `json:"displayName"`
|
2023-05-28 16:19:39 -04:00
|
|
|
Viewers int `json:"viewers"`
|
2023-05-26 10:17:55 -04:00
|
|
|
Tags []string `json:"tags"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
Image string `json:"image"`
|
|
|
|
Cursor string `json:"cursor,omitempty"`
|
|
|
|
}
|
2023-05-28 16:19:39 -04:00
|
|
|
|
|
|
|
type CategoryMinifiedStreamer struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Pfp string `json:"pfp"`
|
|
|
|
ColorHex *string `json:"colorHex"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CategoryMinifiedStream struct {
|
|
|
|
Title string `json:"title"`
|
|
|
|
Viewers int `json:"viewers"`
|
|
|
|
Preview string `json:"preview"`
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
Cursor string `json:"cursor,omitempty"`
|
|
|
|
Streamer CategoryMinifiedStreamer `json:"streamer"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CategoryData struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
DisplayName string `json:"displayName"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
Viewers int `json:"viewers"`
|
|
|
|
Followers int `json:"followers"`
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
Streams []CategoryMinifiedStream `json:"streams"`
|
|
|
|
Cover string `json:"cover"`
|
|
|
|
}
|
2023-05-31 19:39:07 -04:00
|
|
|
|
|
|
|
type Badge struct {
|
|
|
|
Id string `json:"id"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
SetId string `json:"setId"`
|
|
|
|
Version string `json:"version"`
|
|
|
|
Images map[string]string `json:"images"`
|
|
|
|
}
|
2023-06-06 08:31:12 -04:00
|
|
|
|
|
|
|
type SearchResult struct {
|
|
|
|
Channels []Streamer `json:"channels"`
|
|
|
|
Categories []CategoryPreview `json:"categories"`
|
|
|
|
RelatedLiveChannels []Streamer `json:"relatedChannels"`
|
|
|
|
ChannelsWithTag []Streamer `json:"channelsWithTag"`
|
|
|
|
}
|
2023-07-04 20:54:12 -04:00
|
|
|
|
|
|
|
type MinifiedCategory struct {
|
|
|
|
Image string `json:"image"`
|
|
|
|
Id string `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
DisplayName string `json:"displayName"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MinifiedStreamer struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Login string `json:"login"`
|
|
|
|
Pfp string `json:"pfp"`
|
|
|
|
ColorHex string `json:"colorHex"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Video struct {
|
|
|
|
Preview string `json:"preview"`
|
|
|
|
Game MinifiedCategory `json:"game"`
|
|
|
|
Duration int `json:"duration"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
PublishedAt time.Time `json:"publishedAt"`
|
|
|
|
Views int `json:"views"`
|
|
|
|
Tag []string `json:"tags,omitempty"`
|
|
|
|
Streamer MinifiedStreamer `json:"streamer"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Shelve struct {
|
|
|
|
Title string `json:"title"`
|
|
|
|
Videos []Video `json:"videos"`
|
|
|
|
}
|