simpbot/youtube.go

33 lines
1.0 KiB
Go
Raw Normal View History

2021-05-21 12:45:24 -04:00
package main
2023-05-14 18:45:55 -04:00
type integration struct {
2021-05-21 12:45:24 -04:00
Category string `json:"category"`
Type string `json:"type"`
}
2023-05-14 18:45:55 -04:00
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"`
2023-05-14 18:45:55 -04:00
Integration integration `json:"integration"`
2021-05-21 12:45:24 -04:00
LastUpdatedTs int64 `json:"lastUpdatedTs"`
}
2023-05-14 18:45:55 -04:00
type videoData struct {
2021-05-21 12:45:24 -04:00
VideoURL string `json:"videoUrl"`
URL string `json:"url"`
2023-05-14 18:45:55 -04:00
DimensionAppMetadata dimensionAppMetadata `json:"dimension:app:metadata"`
2021-05-21 12:45:24 -04:00
}
2023-05-14 18:45:55 -04:00
type youtubeWidget struct {
Type string `json:"type"`
URL string `json:"url"`
Name string `json:"name"`
Data videoData `json:"data"`
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"`
}