simpbot/youtube.go

30 lines
1020 B
Go
Raw 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"`
2023-11-27 20:34:32 -05:00
LastUpdatedTS int64 `json:"lastUpdatedTs"`
2021-05-21 12:45:24 -04:00
}
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
}