simpbot/youtube.go
Steve b0ad50f907
All checks were successful
continuous-integration/drone/push Build is passing
api update, minor cleanup
2023-11-27 20:34:32 -05:00

30 lines
1020 B
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"`
}