61 lines
1.5 KiB
GDScript3
61 lines
1.5 KiB
GDScript3
|
|
@tool
|
||
|
|
extends TwitchData
|
||
|
|
|
||
|
|
# CLASS GOT AUTOGENERATED DON'T CHANGE MANUALLY. CHANGES CAN BE OVERWRITTEN EASILY.
|
||
|
|
|
||
|
|
class_name TwitchGetReleasedExtensions
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
##
|
||
|
|
## #/components/schemas/GetReleasedExtensionsResponse
|
||
|
|
class Response extends TwitchData:
|
||
|
|
|
||
|
|
## A list that contains the specified extension.
|
||
|
|
@export var data: Array[TwitchExtension]:
|
||
|
|
set(val):
|
||
|
|
data = val
|
||
|
|
track_data(&"data", val)
|
||
|
|
var response: BufferedHTTPClient.ResponseData
|
||
|
|
|
||
|
|
|
||
|
|
## Constructor with all required fields.
|
||
|
|
static func create(_data: Array[TwitchExtension]) -> Response:
|
||
|
|
var response: Response = Response.new()
|
||
|
|
response.data = _data
|
||
|
|
return response
|
||
|
|
|
||
|
|
|
||
|
|
static func from_json(d: Dictionary) -> Response:
|
||
|
|
var result: Response = Response.new()
|
||
|
|
if d.get("data", null) != null:
|
||
|
|
for value in d["data"]:
|
||
|
|
result.data.append(TwitchExtension.from_json(value))
|
||
|
|
return result
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
## All optional parameters for TwitchAPI.get_released_extensions
|
||
|
|
## #/components/schemas/GetReleasedExtensionsOpt
|
||
|
|
class Opt extends TwitchData:
|
||
|
|
|
||
|
|
## The version of the extension to get. If not specified, it returns the latest version.
|
||
|
|
@export var extension_version: String:
|
||
|
|
set(val):
|
||
|
|
extension_version = val
|
||
|
|
track_data(&"extension_version", val)
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
## Constructor with all required fields.
|
||
|
|
static func create() -> Opt:
|
||
|
|
var opt: Opt = Opt.new()
|
||
|
|
return opt
|
||
|
|
|
||
|
|
|
||
|
|
static func from_json(d: Dictionary) -> Opt:
|
||
|
|
var result: Opt = Opt.new()
|
||
|
|
if d.get("extension_version", null) != null:
|
||
|
|
result.extension_version = d["extension_version"]
|
||
|
|
return result
|
||
|
|
|