Initial Commit
Initial commit of Code Base.
This commit is contained in:
parent
293b1213e1
commit
c11a4ebbc2
653 changed files with 36893 additions and 1 deletions
83
addons/twitcher/generated/twitch_end_poll.gd
Normal file
83
addons/twitcher/generated/twitch_end_poll.gd
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
@tool
|
||||
extends TwitchData
|
||||
|
||||
# CLASS GOT AUTOGENERATED DON'T CHANGE MANUALLY. CHANGES CAN BE OVERWRITTEN EASILY.
|
||||
|
||||
class_name TwitchEndPoll
|
||||
|
||||
|
||||
|
||||
##
|
||||
## #/components/schemas/EndPollBody
|
||||
class Body extends TwitchData:
|
||||
|
||||
## The ID of the broadcaster that’s running the poll. This ID must match the user ID in the user access token.
|
||||
@export var broadcaster_id: String:
|
||||
set(val):
|
||||
broadcaster_id = val
|
||||
track_data(&"broadcaster_id", val)
|
||||
|
||||
## The ID of the poll to update.
|
||||
@export var id: String:
|
||||
set(val):
|
||||
id = val
|
||||
track_data(&"id", val)
|
||||
|
||||
## The status to set the poll to. Possible case-sensitive values are:
|
||||
##
|
||||
## * TERMINATED — Ends the poll before the poll is scheduled to end. The poll remains publicly visible.
|
||||
## * ARCHIVED — Ends the poll before the poll is scheduled to end, and then archives it so it's no longer publicly visible.
|
||||
@export var status: String:
|
||||
set(val):
|
||||
status = val
|
||||
track_data(&"status", val)
|
||||
var response: BufferedHTTPClient.ResponseData
|
||||
|
||||
|
||||
## Constructor with all required fields.
|
||||
static func create(_broadcaster_id: String, _id: String, _status: String) -> Body:
|
||||
var body: Body = Body.new()
|
||||
body.broadcaster_id = _broadcaster_id
|
||||
body.id = _id
|
||||
body.status = _status
|
||||
return body
|
||||
|
||||
|
||||
static func from_json(d: Dictionary) -> Body:
|
||||
var result: Body = Body.new()
|
||||
if d.get("broadcaster_id", null) != null:
|
||||
result.broadcaster_id = d["broadcaster_id"]
|
||||
if d.get("id", null) != null:
|
||||
result.id = d["id"]
|
||||
if d.get("status", null) != null:
|
||||
result.status = d["status"]
|
||||
return result
|
||||
|
||||
|
||||
|
||||
##
|
||||
## #/components/schemas/EndPollResponse
|
||||
class Response extends TwitchData:
|
||||
|
||||
## A list that contains the poll that you ended.
|
||||
@export var data: Array[TwitchPoll]:
|
||||
set(val):
|
||||
data = val
|
||||
track_data(&"data", val)
|
||||
var response: BufferedHTTPClient.ResponseData
|
||||
|
||||
|
||||
## Constructor with all required fields.
|
||||
static func create(_data: Array[TwitchPoll]) -> 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(TwitchPoll.from_json(value))
|
||||
return result
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue