37 lines
986 B
GDScript3
37 lines
986 B
GDScript3
|
|
@tool
|
||
|
|
extends TwitchData
|
||
|
|
|
||
|
|
# CLASS GOT AUTOGENERATED DON'T CHANGE MANUALLY. CHANGES CAN BE OVERWRITTEN EASILY.
|
||
|
|
|
||
|
|
##
|
||
|
|
## #/components/schemas/CheermoteImages
|
||
|
|
class_name TwitchCheermoteImages
|
||
|
|
|
||
|
|
##
|
||
|
|
@export var light: TwitchCheermoteImageTheme:
|
||
|
|
set(val):
|
||
|
|
light = val
|
||
|
|
track_data(&"light", val)
|
||
|
|
|
||
|
|
##
|
||
|
|
@export var dark: TwitchCheermoteImageTheme:
|
||
|
|
set(val):
|
||
|
|
dark = val
|
||
|
|
track_data(&"dark", val)
|
||
|
|
var response: BufferedHTTPClient.ResponseData
|
||
|
|
|
||
|
|
|
||
|
|
## Constructor with all required fields.
|
||
|
|
static func create() -> TwitchCheermoteImages:
|
||
|
|
var twitch_cheermote_images: TwitchCheermoteImages = TwitchCheermoteImages.new()
|
||
|
|
return twitch_cheermote_images
|
||
|
|
|
||
|
|
|
||
|
|
static func from_json(d: Dictionary) -> TwitchCheermoteImages:
|
||
|
|
var result: TwitchCheermoteImages = TwitchCheermoteImages.new()
|
||
|
|
if d.get("light", null) != null:
|
||
|
|
result.light = TwitchCheermoteImageTheme.from_json(d["light"])
|
||
|
|
if d.get("dark", null) != null:
|
||
|
|
result.dark = TwitchCheermoteImageTheme.from_json(d["dark"])
|
||
|
|
return result
|