pokepurple/addons/twitcher/generated/twitch_create_conduits.gd
Mario Steele c11a4ebbc2 Initial Commit
Initial commit of Code Base.
2025-06-12 14:31:14 -05:00

98 lines
No EOL
2.3 KiB
GDScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@tool
extends TwitchData
# CLASS GOT AUTOGENERATED DON'T CHANGE MANUALLY. CHANGES CAN BE OVERWRITTEN EASILY.
class_name TwitchCreateConduits
##
## #/components/schemas/CreateConduitsBody
class Body extends TwitchData:
## The number of shards to create for this conduit.
@export var shard_count: int:
set(val):
shard_count = val
track_data(&"shard_count", val)
var response: BufferedHTTPClient.ResponseData
## Constructor with all required fields.
static func create(_shard_count: int) -> Body:
var body: Body = Body.new()
body.shard_count = _shard_count
return body
static func from_json(d: Dictionary) -> Body:
var result: Body = Body.new()
if d.get("shard_count", null) != null:
result.shard_count = d["shard_count"]
return result
##
## #/components/schemas/CreateConduitsResponse
class Response extends TwitchData:
## List of information about the clients conduits.
@export var data: Array[ResponseData]:
set(val):
data = val
track_data(&"data", val)
var response: BufferedHTTPClient.ResponseData
## Constructor with all required fields.
static func create(_data: Array[ResponseData]) -> 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(ResponseData.from_json(value))
return result
## List of information about the clients conduits.
## #/components/schemas/CreateConduitsResponse/Data
class ResponseData extends TwitchData:
## Conduit ID.
@export var id: String:
set(val):
id = val
track_data(&"id", val)
## Number of shards created for this conduit.
@export var shard_count: int:
set(val):
shard_count = val
track_data(&"shard_count", val)
## Constructor with all required fields.
static func create(_id: String, _shard_count: int) -> ResponseData:
var response_data: ResponseData = ResponseData.new()
response_data.id = _id
response_data.shard_count = _shard_count
return response_data
static func from_json(d: Dictionary) -> ResponseData:
var result: ResponseData = ResponseData.new()
if d.get("id", null) != null:
result.id = d["id"]
if d.get("shard_count", null) != null:
result.shard_count = d["shard_count"]
return result