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

47 lines
1.4 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.
##
## #/components/schemas/UserBlockList
class_name TwitchUserBlockList
## An ID that identifies the blocked user.
@export var user_id: String:
set(val):
user_id = val
track_data(&"user_id", val)
## The blocked users login name.
@export var user_login: String:
set(val):
user_login = val
track_data(&"user_login", val)
## The blocked users display name.
@export var display_name: String:
set(val):
display_name = val
track_data(&"display_name", val)
var response: BufferedHTTPClient.ResponseData
## Constructor with all required fields.
static func create(_user_id: String, _user_login: String, _display_name: String) -> TwitchUserBlockList:
var twitch_user_block_list: TwitchUserBlockList = TwitchUserBlockList.new()
twitch_user_block_list.user_id = _user_id
twitch_user_block_list.user_login = _user_login
twitch_user_block_list.display_name = _display_name
return twitch_user_block_list
static func from_json(d: Dictionary) -> TwitchUserBlockList:
var result: TwitchUserBlockList = TwitchUserBlockList.new()
if d.get("user_id", null) != null:
result.user_id = d["user_id"]
if d.get("user_login", null) != null:
result.user_login = d["user_login"]
if d.get("display_name", null) != null:
result.display_name = d["display_name"]
return result