simpbot/youtube.go

33 lines
1.0 KiB
Go
Raw Permalink Normal View History

2021-05-21 12:45:24 -04:00
package main
type Integration struct {
2021-05-21 12:45:24 -04:00
Category string `json:"category"`
Type string `json:"type"`
}
type DimensionAppMetadata struct {
2021-05-21 12:45:24 -04:00
InRoomID string `json:"inRoomId"`
WrapperURLBase string `json:"wrapperUrlBase"`
WrapperID string `json:"wrapperId"`
ScalarWrapperID string `json:"scalarWrapperId"`
Integration Integration `json:"integration"`
2021-05-21 12:45:24 -04:00
LastUpdatedTs int64 `json:"lastUpdatedTs"`
}
type VideoData struct {
2021-05-21 12:45:24 -04:00
VideoURL string `json:"videoUrl"`
URL string `json:"url"`
DimensionAppMetadata DimensionAppMetadata `json:"dimension:app:metadata"`
2021-05-21 12:45:24 -04:00
}
type YoutubeWidget struct {
2023-05-14 18:45:55 -04:00
Type string `json:"type"`
URL string `json:"url"`
Name string `json:"name"`
Data VideoData `json:"data"`
2023-05-14 18:45:55 -04:00
CreatorUserID string `json:"creatorUserId"`
ID string `json:"id"`
RoomID string `json:"roomId"`
EventID string `json:"eventId"`
2021-05-21 12:45:24 -04:00
}
2023-05-14 18:45:55 -04:00
type unsignedAge struct {
2021-05-21 12:45:24 -04:00
Age int `json:"age"`
}