Initial Commit

Initial commit of Code Base.
This commit is contained in:
Mario Steele 2025-06-12 14:31:14 -05:00
parent 293b1213e1
commit c11a4ebbc2
653 changed files with 36893 additions and 1 deletions

View file

@ -0,0 +1,107 @@
@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