simpbot/youtube.go
Steve 0d5a3ff5b9
All checks were successful
continuous-integration/drone/push Build is passing
republic things since json, set dimension server
2023-05-14 21:05:52 -04:00

33 lines
1.0 KiB
Go

package main
type Integration struct {
Category string `json:"category"`
Type string `json:"type"`
}
type DimensionAppMetadata struct {
InRoomID string `json:"inRoomId"`
WrapperURLBase string `json:"wrapperUrlBase"`
WrapperID string `json:"wrapperId"`
ScalarWrapperID string `json:"scalarWrapperId"`
Integration Integration `json:"integration"`
LastUpdatedTs int64 `json:"lastUpdatedTs"`
}
type VideoData struct {
VideoURL string `json:"videoUrl"`
URL string `json:"url"`
DimensionAppMetadata DimensionAppMetadata `json:"dimension:app:metadata"`
}
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"`
}
type unsignedAge struct {
Age int `json:"age"`
}