0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch-backend.git synced 2024-12-22 21:23:01 -05:00
safetwitch-backend/extractor/structs/streamerInfoRaw.go
2023-05-20 16:30:12 -04:00

64 lines
1.8 KiB
Go

package structs
import "time"
type StreamerDataRaw struct {
Data Data `json:"data"`
Extensions Extensions `json:"extensions"`
}
type Followers struct {
TotalCount int `json:"totalCount"`
}
type SocialMedias struct {
ID string `json:"id"`
Name string `json:"name"`
Title string `json:"title"`
URL string `json:"url"`
}
type NextSegment struct {
ID string `json:"id"`
StartAt time.Time `json:"startAt"`
HasReminder bool `json:"hasReminder"`
}
type Schedule struct {
ID string `json:"id"`
NextSegment NextSegment `json:"nextSegment"`
}
type Channel struct {
ID string `json:"id"`
SocialMedias []SocialMedias `json:"socialMedias"`
Schedule Schedule `json:"schedule"`
}
type Game struct {
ID string `json:"id"`
DisplayName string `json:"displayName"`
}
type LastBroadcast struct {
ID string `json:"id"`
Game Game `json:"game"`
}
type PrimaryTeam struct {
ID string `json:"id"`
Name string `json:"name"`
DisplayName string `json:"displayName"`
}
type User struct {
ID string `json:"id"`
Description string `json:"description"`
DisplayName string `json:"displayName"`
IsPartner bool `json:"isPartner"`
PrimaryColorHex string `json:"primaryColorHex"`
ProfileImageURL string `json:"profileImageURL"`
Followers Followers `json:"followers"`
Channel Channel `json:"channel"`
LastBroadcast LastBroadcast `json:"lastBroadcast"`
PrimaryTeam PrimaryTeam `json:"primaryTeam"`
}
type Data struct {
User User `json:"user"`
}
type Extensions struct {
DurationMilliseconds int `json:"durationMilliseconds"`
OperationName string `json:"operationName"`
RequestID string `json:"requestID"`
}