0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch-backend.git synced 2024-12-22 13:13:00 -05:00
safetwitch-backend/extractor/structs/streamerInfoRaw.go

26 lines
685 B
Go
Raw Permalink Normal View History

2023-05-20 15:30:12 -05:00
package structs
// API RESPONSE
// To save space and readability, i'm taking this approach
// to fit to any response from twitch, and then define the
// specific parts later, because we don't need every part
// of the request
type TwitchApiResponse struct {
Data map[string]interface{} `json:"data"`
Extensions Extensions `json:"extensions"`
2023-05-20 15:30:12 -05:00
}
type Extensions struct {
DurationMilliseconds int `json:"durationMilliseconds"`
OperationName string `json:"operationName"`
RequestID string `json:"requestID"`
}
// PARTS OF RESPONSE
type RawSocial struct {
Name string `json:"name"`
Title string `json:"title"`
Url string `json:"url"`
}