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

107 lines
No EOL
2.5 KiB
GDScript
Raw 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 TwitchUpdateConduits
##
## #/components/schemas/UpdateConduitsBody
class Body extends TwitchData:
## Conduit ID.
@export var id: String:
set(val):
id = val
track_data(&"id", val)
## The new number of shards 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(_id: String, _shard_count: int) -> Body:
var body: Body = Body.new()
body.id = _id
body.shard_count = _shard_count
return body
static func from_json(d: Dictionary) -> Body:
var result: Body = Body.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
##
## #/components/schemas/UpdateConduitsResponse
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/UpdateConduitsResponse/Data
class ResponseData extends TwitchData:
## Conduit ID.
@export var id: String:
set(val):
id = val
track_data(&"id", val)
## Number of shards associated with this conduit after the update.
@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