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

25 lines
685 B
Go

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"`
}
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"`
}