Reddit.NET  1.5
Reddit.NET is a .NET Standard library that provides easy access to the Reddit API with virtually no boilerplate code required.
Reddit.Inputs.Flair.FlairTemplateV2Input Class Reference
Inheritance diagram for Reddit.Inputs.Flair.FlairTemplateV2Input:
Reddit.Inputs.Flair.FlairTextEditableInput Reddit.Inputs.Flair.FlairTextInput Reddit.Inputs.BaseInput

Public Member Functions

 FlairTemplateV2Input (string text=null, string flairType=null, bool? textEditable=null, string textColor="dark", string backgroundColor="#EEEEFF", string flairTemplateId="", bool? modOnly=false)
 Create or update a flair template. This new endpoint is primarily used for the redesign. More...
 
- Public Member Functions inherited from Reddit.Inputs.BaseInput
 BaseInput ()
 Set the raw_json. More...
 

Properties

string background_color [get, set]
 a 6-digit rgb hex color, e.g. #AABBCC More...
 
string flair_template_id [get, set]
 the ID of the template to modify More...
 
string flair_type [get, set]
 one of (USER_FLAIR, LINK_FLAIR) More...
 
bool? mod_only [get, set]
 boolean value More...
 
string text_color [get, set]
 one of (light, dark) More...
 
- Properties inherited from Reddit.Inputs.Flair.FlairTextEditableInput
bool? text_editable [get, set]
 boolean value More...
 
- Properties inherited from Reddit.Inputs.Flair.FlairTextInput
string text [get, set]
 a string no longer than 64 characters More...
 
- Properties inherited from Reddit.Inputs.BaseInput
int raw_json [get, set]
 Required by the API for all endpoints. Prevents <, >, and & in the response from being htmlencoded by the API. See: https://www.reddit.com/dev/api#response_body_encoding More...
 

Constructor & Destructor Documentation

◆ FlairTemplateV2Input()

Reddit.Inputs.Flair.FlairTemplateV2Input.FlairTemplateV2Input ( string  text = null,
string  flairType = null,
bool?  textEditable = null,
string  textColor = "dark",
string  backgroundColor = "#EEEEFF",
string  flairTemplateId = "",
bool?  modOnly = false 
)

Create or update a flair template. This new endpoint is primarily used for the redesign.

Parameters
texta string no longer than 64 characters
flairTypeone of (USER_FLAIR, LINK_FLAIR)
textEditableboolean value
textColorone of (light, dark)
backgroundColora 6-digit rgb hex color, e.g. #AABBCC
flairTemplateIdthe ID of the template to modify; leave blank to create new
modOnlyboolean value

Property Documentation

◆ background_color

string Reddit.Inputs.Flair.FlairTemplateV2Input.background_color
getset

a 6-digit rgb hex color, e.g. #AABBCC

◆ flair_template_id

string Reddit.Inputs.Flair.FlairTemplateV2Input.flair_template_id
getset

the ID of the template to modify

◆ flair_type

string Reddit.Inputs.Flair.FlairTemplateV2Input.flair_type
getset

one of (USER_FLAIR, LINK_FLAIR)

◆ mod_only

bool? Reddit.Inputs.Flair.FlairTemplateV2Input.mod_only
getset

boolean value

◆ text_color

string Reddit.Inputs.Flair.FlairTemplateV2Input.text_color
getset

one of (light, dark)


The documentation for this class was generated from the following file: