![]() |
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.
|
Controller class for flairs. More...
Public Member Functions | |||
Flairs (Dispatch dispatch, string subreddit) | |||
Create a new instance of the flairs controller. More... | |||
void | ClearLinkFlairTemplates () | ||
Clear link flair templates. More... | |||
async Task | ClearLinkFlairTemplatesAsync () | ||
Clear link flair templates asynchronously. More... | |||
void | ClearUserFlairTemplates () | ||
Clear user flair templates. More... | |||
async Task | ClearUserFlairTemplatesAsync () | ||
Clear user flair templates asynchronously. More... | |||
void | DeleteFlair (string username) | ||
Delete flair. More... | |||
async Task | DeleteFlairAsync (string username) | ||
Delete flair asynchronously. More... | |||
void | DeleteFlairTemplate (string flairTemplateId) | ||
Delete flair template. More... | |||
async Task | DeleteFlairTemplateAsync (string flairTemplateId) | ||
Delete flair template asynchronously.
| |||
void | CreateLinkFlair (FlairSelectFlairInput flairSelectFlairInput) | ||
Create a new link flair. More... | |||
async Task | CreateLinkFlairAsync (FlairSelectFlairInput flairSelectFlairInput) | ||
Create a new link flair asynchronously. More... | |||
void | CreateUserFlair (string username, string text, string cssClass="") | ||
Create a new user flair. More... | |||
async Task | CreateUserFlairAsync (string username, string text, string cssClass="") | ||
Create a new user flair asynchronously. More... | |||
void | CreateUserFlair (FlairCreateInput flairCreateInput) | ||
Create a new user flair. More... | |||
async Task | CreateUserFlairAsync (FlairCreateInput flairCreateInput) | ||
Create a new user flair asynchronously. More... | |||
void | FlairConfig (FlairConfigInput flairConfigInput) | ||
Update the flair configuration settings for this subreddit. More... | |||
async Task | FlairConfigAsync (FlairConfigInput flairConfigInput) | ||
Update the flair configuration settings for this subreddit asynchronously. More... | |||
List< ActionResult > | FlairCSV (string flairCsv) | ||
Change the flair of multiple users in the same subreddit with a single API call. Requires a string 'flair_csv' which has up to 100 lines of the form 'user,flairtext,cssclass' (Lines beyond the 100th are ignored). If both cssclass and flairtext are the empty string for a given user, instead clears that user's flair. Returns an array of objects indicating if each flair setting was applied, or a reason for the failure. More... | |||
async Task< List< ActionResult > > | FlairCSVAsync (string flairCsv) | ||
Asynchronously change the flair of multiple users in the same subreddit with a single API call. Requires a string 'flair_csv' which has up to 100 lines of the form 'user,flairtext,cssclass' (Lines beyond the 100th are ignored). If both cssclass and flairtext are the empty string for a given user, instead clears that user's flair. Returns an array of objects indicating if each flair setting was applied, or a reason for the failure. More... | |||
List< ActionResult > | FlairCSV (FlairListResultContainer flairCsv) | ||
Change the flair of multiple users in the same subreddit with a single API call. If both cssclass and flairtext are the empty string for a given user, instead clears that user's flair. Returns an array of objects indicating if each flair setting was applied, or a reason for the failure. More... | |||
async Task< List< ActionResult > > | FlairCSVAsync (FlairListResultContainer flairCsv) | ||
Asynchronously change the flair of multiple users in the same subreddit with a single API call. If both cssclass and flairtext are the empty string for a given user, instead clears that user's flair. Returns an array of objects indicating if each flair setting was applied, or a reason for the failure. More... | |||
List< ActionResult > | FlairCSV (List< FlairListResult > flairCsv) | ||
Change the flair of multiple users in the same subreddit with a single API call. If both cssclass and flairtext are the empty string for a given user, instead clears that user's flair. Returns an array of objects indicating if each flair setting was applied, or a reason for the failure. More... | |||
async Task< List< ActionResult > > | FlairCSVAsync (List< FlairListResult > flairCsv) | ||
Asynchronously change the flair of multiple users in the same subreddit with a single API call. If both cssclass and flairtext are the empty string for a given user, instead clears that user's flair. Returns an array of objects indicating if each flair setting was applied, or a reason for the failure. More... | |||
List< FlairListResult > | GetFlairList (string username="", int limit=25, string after="", string before="", int count=0, string show="all", bool srDetail=false) | ||
List of flairs. More... | |||
List< FlairListResult > | GetFlairList (FlairNameListingInput flairNameListingInput) | ||
List of flairs. More... | |||
FlairSelectorResultContainer | FlairSelector (string username=null, string link=null) | ||
Return information about a user's or link's flair options. More... | |||
void | CreateLinkFlairTemplate (string text, bool textEditable=false, string cssClass="") | ||
Create a new link flair template. More... | |||
async Task | CreateLinkFlairTemplateAsync (string text, bool textEditable=false, string cssClass="") | ||
Create a new link flair template asynchronously. More... | |||
void | CreateLinkFlairTemplate (FlairTemplateInput flairTemplateInput) | ||
Create a new link flair template. More... | |||
async Task | CreateLinkFlairTemplateAsync (FlairTemplateInput flairTemplateInput) | ||
Create a new link flair template asynchronously. More... | |||
void | CreateUserFlairTemplate (string text, bool textEditable=false, string cssClass="") | ||
Create a new user flair template. More... | |||
async Task | CreateUserFlairTemplateAsync (string text, bool textEditable=false, string cssClass="") | ||
Create a new user flair template asynchronously. More... | |||
void | CreateUserFlairTemplate (FlairTemplateInput flairTemplateInput) | ||
Create a new user flair template. More... | |||
async Task | CreateUserFlairTemplateAsync (FlairTemplateInput flairTemplateInput) | ||
Create a new user flair template asynchronously. More... | |||
void | UpdateLinkFlairTemplate (string flairTemplateId, string text=null, bool? textEditable=null, string cssClass=null) | ||
Update an existing link flair template. More... | |||
async Task | UpdateLinkFlairTemplateAsync (string flairTemplateId, string text, bool textEditable=false, string cssClass="") | ||
Update an existing link flair template asynchronously. More... | |||
void | UpdateLinkFlairTemplate (FlairTemplateInput flairTemplateInput) | ||
Update an existing link flair template. More... | |||
async Task | UpdateLinkFlairTemplateAsync (FlairTemplateInput flairTemplateInput) | ||
Update an existing link flair template asynchronously. More... | |||
void | UpdateUserFlairTemplate (string flairTemplateId, string text=null, bool? textEditable=null, string cssClass=null) | ||
Update an existing user flair template. More... | |||
async Task | UpdateUserFlairTemplateAsync (string flairTemplateId, string text, bool textEditable=false, string cssClass="") | ||
Update an existing user flair template asynchronously. More... | |||
void | UpdateUserFlairTemplate (FlairTemplateInput flairTemplateInput) | ||
Update an existing user flair template. More... | |||
async Task | UpdateUserFlairTemplateAsync (FlairTemplateInput flairTemplateInput) | ||
Update an existing user flair template asynchronously. More... | |||
FlairV2 | CreateLinkFlairTemplateV2 (string text, bool textEditable=false, string textColor="dark", string backgroundColor="#EEEEFF", bool modOnly=false) | ||
Create a new link flair template. This new endpoint is primarily used for the redesign. More... | |||
async Task< FlairV2 > | CreateLinkFlairTemplateV2Async (string text, bool textEditable=false, string textColor="dark", string backgroundColor="#EEEEFF", bool modOnly=false) | ||
Create a new link flair template asynchronously. This new endpoint is primarily used for the redesign. More... | |||
FlairV2 | CreateLinkFlairTemplateV2 (FlairTemplateV2Input flairTemplateV2Input) | ||
Create a new link flair template. This new endpoint is primarily used for the redesign. More... | |||
async Task< FlairV2 > | CreateLinkFlairTemplateV2Async (FlairTemplateV2Input flairTemplateV2Input) | ||
Create a new link flair template asynchronously. This new endpoint is primarily used for the redesign. More... | |||
FlairV2 | CreateUserFlairTemplateV2 (string text, bool textEditable=false, string textColor="dark", string backgroundColor="#EEEEFF", bool modOnly=false) | ||
Create a new user flair template. This new endpoint is primarily used for the redesign. More... | |||
async Task< FlairV2 > | CreateUserFlairTemplateV2Async (string text, bool textEditable=false, string textColor="dark", string backgroundColor="#EEEEFF", bool modOnly=false) | ||
Create a new user flair template asynchronously. This new endpoint is primarily used for the redesign. More... | |||
FlairV2 | CreateUserFlairTemplateV2 (FlairTemplateV2Input flairTemplateV2Input) | ||
Create a new user flair template asynchronously. This new endpoint is primarily used for the redesign. More... | |||
async Task< FlairV2 > | CreateUserFlairTemplateV2Async (FlairTemplateV2Input flairTemplateV2Input) | ||
Create a new user flair template asynchronously. This new endpoint is primarily used for the redesign. More... | |||
FlairV2 | UpdateLinkFlairTemplateV2 (string flairTemplateId, string text=null, bool? textEditable=null, string textColor=null, string backgroundColor=null, bool? modOnly=null) | ||
Update an existing link flair template. This new endpoint is primarily used for the redesign. More... | |||
async Task< FlairV2 > | UpdateLinkFlairTemplateV2Async (string flairTemplateId, string text=null, bool? textEditable=null, string textColor=null, string backgroundColor=null, bool? modOnly=null) | ||
Update an existing link flair template asynchronously. This new endpoint is primarily used for the redesign. More... | |||
FlairV2 | UpdateLinkFlairTemplateV2 (FlairTemplateV2Input flairTemplateV2Input) | ||
Update an existing link flair template. This new endpoint is primarily used for the redesign. More... | |||
async Task< FlairV2 > | UpdateLinkFlairTemplateV2Async (FlairTemplateV2Input flairTemplateV2Input) | ||
Update an existing link flair template asynchronously. This new endpoint is primarily used for the redesign. More... | |||
FlairV2 | UpdateUserFlairTemplateV2 (string flairTemplateId, string text=null, bool? textEditable=null, string textColor=null, string backgroundColor=null, bool? modOnly=null) | ||
Update an existing user flair template. This new endpoint is primarily used for the redesign. More... | |||
async Task< FlairV2 > | UpdateUserFlairTemplateV2Async (string flairTemplateId, string text=null, bool? textEditable=null, string textColor=null, string backgroundColor=null, bool? modOnly=null) | ||
Update an existing user flair template asynchronously. This new endpoint is primarily used for the redesign. More... | |||
FlairV2 | UpdateUserFlairTemplateV2 (FlairTemplateV2Input flairTemplateV2Input) | ||
Update an existing user flair template. This new endpoint is primarily used for the redesign. More... | |||
async Task< FlairV2 > | UpdateUserFlairTemplateV2Async (FlairTemplateV2Input flairTemplateV2Input) | ||
Update an existing user flair template asynchronously. This new endpoint is primarily used for the redesign. More... | |||
void | SetFlairEnabled (bool flairEnabled=true) | ||
Set flair enabled. More... | |||
async Task | SetFlairEnabledAsync (bool flairEnabled=true) | ||
Set flair enabled asynchronously. More... | |||
List< Flair > | GetLinkFlair () | ||
Return list of available link flair for the current subreddit. Will not return flair if the user cannot set their own link flair and they are not a moderator that can set flair. More... | |||
List< FlairV2 > | GetLinkFlairV2 () | ||
Return list of available link flair for the current subreddit. Will not return flair if the user cannot set their own link flair and they are not a moderator that can set flair. More... | |||
List< Flair > | GetUserFlair () | ||
Return list of available user flair for the current subreddit. Will not return flair if flair is disabled on the subreddit, the user cannot set their own flair, or they are not a moderator that can set flair. More... | |||
List< FlairV2 > | GetUserFlairV2 () | ||
Return list of available user flair for the current subreddit. Will not return flair if flair is disabled on the subreddit, the user cannot set their own flair, or they are not a moderator that can set flair. More... | |||
![]() | |||
BaseController () | |||
Create a new Controller instance. More... | |||
![]() | |||
Exception | BuildException (Exception ex, List< List< string >> errors) | ||
dynamic | Validate (dynamic obj) | ||
GenericContainer | Validate (GenericContainer genericContainer) | ||
Generic | Validate (Generic generic) | ||
DynamicShortListingContainer | Validate (DynamicShortListingContainer dynamicShortListingContainer) | ||
DynamicShortListingData | Validate (DynamicShortListingData dynamicShortListingData) | ||
ImageUploadResult | Validate (ImageUploadResult imageUploadResult) | ||
LiveUpdateEventContainer | Validate (LiveUpdateEventContainer liveUpdateEventContainer) | ||
LiveThreadCreateResultContainer | Validate (LiveThreadCreateResultContainer liveThreadCreateResultContainer) | ||
LiveUpdateContainer | Validate (LiveUpdateContainer liveUpdateContainer, int? minChildren=null) | ||
SubredditSettingsContainer | Validate (SubredditSettingsContainer subredditSettingsContainer) | ||
SubredditSettings | Validate (SubredditSettings subredditSettings) | ||
List< ActionResult > | Validate (List< ActionResult > actionResults) | ||
ActionResult | Validate (ActionResult actionResult) | ||
FlairListResultContainer | Validate (FlairListResultContainer flairListResultContainer) | ||
Flair | Validate (Flair flair) | ||
FlairV2 | Validate (FlairV2 flairV2) | ||
ModActionContainer | Validate (ModActionContainer modActionContainer) | ||
ModActionData | Validate (ModActionData modActionData) | ||
WikiPageRevisionContainer | Validate (WikiPageRevisionContainer wikiPageRevisionContainer) | ||
WikiPageRevisionData | Validate (WikiPageRevisionData wikiPageRevisionData) | ||
WikiPageSettingsContainer | Validate (WikiPageSettingsContainer wikiPageSettingsContainer) | ||
WikiPageSettings | Validate (WikiPageSettings wikiPageSettings) | ||
List< UserPrefsContainer > | Validate (List< UserPrefsContainer > userPrefsContainers) | ||
UserPrefsContainer | Validate (UserPrefsContainer userPrefsContainer) | ||
UserPrefsData | Validate (UserPrefsData userPrefsData) | ||
PostResultShortContainer | Validate (PostResultShortContainer postResultShortContainer) | ||
PostResultShort | Validate (PostResultShort postResultShort) | ||
PostResultContainer | Validate (PostResultContainer postResultContainer) | ||
PostResult | Validate (PostResult postResult) | ||
JQueryReturn | Validate (JQueryReturn jQueryReturn) | ||
List<(PostContainer, CommentContainer)> | Validate (List<(PostContainer, CommentContainer)> ps) | ||
CommentResultContainer | Validate (CommentResultContainer commentResultContainer) | ||
SubredditContainer | Validate (SubredditContainer subredditContainer) | ||
Properties | |
List< FlairListResult >? | FlairList [get, set] |
List of flairs. More... | |
string | FlairListNext [get] |
Fullname of the next page of flair list results. More... | |
string | FlairListPrev [get] |
Fullname of the previous page of flair list results. More... | |
List< Flair >? | LinkFlair [get, set] |
List of link flairs. More... | |
List< FlairV2 >? | LinkFlairV2 [get, set] |
List of link flairs. More... | |
List< Flair >? | UserFlair [get, set] |
List of user flairs. More... | |
List< FlairV2 >? | UserFlairV2 [get, set] |
List of user flairs. More... | |
![]() | |
Lists | Lists [get, set] |
List-handling. More... | |
Additional Inherited Members | |
![]() | |
void | CheckErrors (List< List< string >> errors) |
void | CheckErrors (List< string > errors) |
void | CheckNull (object res, string msg="Reddit API returned null response.") |
Controller class for flairs.
Reddit.Controllers.Flairs.Flairs | ( | Dispatch | dispatch, |
string | subreddit | ||
) |
Create a new instance of the flairs controller.
subreddit | The name of the subreddit with the flairs |
dispatch |
void Reddit.Controllers.Flairs.ClearLinkFlairTemplates | ( | ) |
Clear link flair templates.
async Task Reddit.Controllers.Flairs.ClearLinkFlairTemplatesAsync | ( | ) |
Clear link flair templates asynchronously.
void Reddit.Controllers.Flairs.ClearUserFlairTemplates | ( | ) |
Clear user flair templates.
async Task Reddit.Controllers.Flairs.ClearUserFlairTemplatesAsync | ( | ) |
Clear user flair templates asynchronously.
void Reddit.Controllers.Flairs.CreateLinkFlair | ( | FlairSelectFlairInput | flairSelectFlairInput | ) |
Create a new link flair.
flairSelectFlairInput | a valid FlairSelectFlairInput instance |
async Task Reddit.Controllers.Flairs.CreateLinkFlairAsync | ( | FlairSelectFlairInput | flairSelectFlairInput | ) |
Create a new link flair asynchronously.
flairSelectFlairInput | a valid FlairSelectFlairInput instance |
void Reddit.Controllers.Flairs.CreateLinkFlairTemplate | ( | FlairTemplateInput | flairTemplateInput | ) |
Create a new link flair template.
flairTemplateInput | A valid FlairTemplateInput instance |
void Reddit.Controllers.Flairs.CreateLinkFlairTemplate | ( | string | text, |
bool | textEditable = false , |
||
string | cssClass = "" |
||
) |
Create a new link flair template.
text | a string no longer than 64 characters |
textEditable | boolean value |
cssClass | a valid subreddit image name |
async Task Reddit.Controllers.Flairs.CreateLinkFlairTemplateAsync | ( | FlairTemplateInput | flairTemplateInput | ) |
Create a new link flair template asynchronously.
flairTemplateInput | A valid FlairTemplateInput instance |
async Task Reddit.Controllers.Flairs.CreateLinkFlairTemplateAsync | ( | string | text, |
bool | textEditable = false , |
||
string | cssClass = "" |
||
) |
Create a new link flair template asynchronously.
text | a string no longer than 64 characters |
textEditable | boolean value |
cssClass | a valid subreddit image name |
FlairV2 Reddit.Controllers.Flairs.CreateLinkFlairTemplateV2 | ( | FlairTemplateV2Input | flairTemplateV2Input | ) |
Create a new link flair template. This new endpoint is primarily used for the redesign.
flairTemplateV2Input | A valid FlairTemplateV2Input instance |
FlairV2 Reddit.Controllers.Flairs.CreateLinkFlairTemplateV2 | ( | string | text, |
bool | textEditable = false , |
||
string | textColor = "dark" , |
||
string | backgroundColor = "#EEEEFF" , |
||
bool | modOnly = false |
||
) |
Create a new link flair template. This new endpoint is primarily used for the redesign.
text | a string no longer than 64 characters |
textEditable | boolean value |
textColor | one of (light, dark) |
backgroundColor | a 6-digit rgb hex color, e.g. #AABBCC |
modOnly | boolean value |
async Task<FlairV2> Reddit.Controllers.Flairs.CreateLinkFlairTemplateV2Async | ( | FlairTemplateV2Input | flairTemplateV2Input | ) |
Create a new link flair template asynchronously. This new endpoint is primarily used for the redesign.
flairTemplateV2Input | A valid FlairTemplateV2Input instance |
async Task<FlairV2> Reddit.Controllers.Flairs.CreateLinkFlairTemplateV2Async | ( | string | text, |
bool | textEditable = false , |
||
string | textColor = "dark" , |
||
string | backgroundColor = "#EEEEFF" , |
||
bool | modOnly = false |
||
) |
Create a new link flair template asynchronously. This new endpoint is primarily used for the redesign.
text | a string no longer than 64 characters |
textEditable | boolean value |
textColor | one of (light, dark) |
backgroundColor | a 6-digit rgb hex color, e.g. #AABBCC |
modOnly | boolean value |
void Reddit.Controllers.Flairs.CreateUserFlair | ( | FlairCreateInput | flairCreateInput | ) |
Create a new user flair.
flairCreateInput | A valid FlairCreateInput instance |
void Reddit.Controllers.Flairs.CreateUserFlair | ( | string | username, |
string | text, | ||
string | cssClass = "" |
||
) |
Create a new user flair.
username | The user who's getting the new flair |
text | The flair text |
cssClass | a valid subreddit image name |
async Task Reddit.Controllers.Flairs.CreateUserFlairAsync | ( | FlairCreateInput | flairCreateInput | ) |
Create a new user flair asynchronously.
flairCreateInput | A valid FlairCreateInput instance |
async Task Reddit.Controllers.Flairs.CreateUserFlairAsync | ( | string | username, |
string | text, | ||
string | cssClass = "" |
||
) |
Create a new user flair asynchronously.
username | The user who's getting the new flair |
text | The flair text |
cssClass | a valid subreddit image name |
void Reddit.Controllers.Flairs.CreateUserFlairTemplate | ( | FlairTemplateInput | flairTemplateInput | ) |
Create a new user flair template.
flairTemplateInput | A valid FlairTemplateInput instance |
void Reddit.Controllers.Flairs.CreateUserFlairTemplate | ( | string | text, |
bool | textEditable = false , |
||
string | cssClass = "" |
||
) |
Create a new user flair template.
text | a string no longer than 64 characters |
textEditable | boolean value |
cssClass | a valid subreddit image name |
async Task Reddit.Controllers.Flairs.CreateUserFlairTemplateAsync | ( | FlairTemplateInput | flairTemplateInput | ) |
Create a new user flair template asynchronously.
flairTemplateInput | A valid FlairTemplateInput instance |
async Task Reddit.Controllers.Flairs.CreateUserFlairTemplateAsync | ( | string | text, |
bool | textEditable = false , |
||
string | cssClass = "" |
||
) |
Create a new user flair template asynchronously.
text | a string no longer than 64 characters |
textEditable | boolean value |
cssClass | a valid subreddit image name |
FlairV2 Reddit.Controllers.Flairs.CreateUserFlairTemplateV2 | ( | FlairTemplateV2Input | flairTemplateV2Input | ) |
Create a new user flair template asynchronously. This new endpoint is primarily used for the redesign.
flairTemplateV2Input | A valid FlairTemplateV2Input instance |
FlairV2 Reddit.Controllers.Flairs.CreateUserFlairTemplateV2 | ( | string | text, |
bool | textEditable = false , |
||
string | textColor = "dark" , |
||
string | backgroundColor = "#EEEEFF" , |
||
bool | modOnly = false |
||
) |
Create a new user flair template. This new endpoint is primarily used for the redesign.
text | a string no longer than 64 characters |
textEditable | boolean value |
textColor | one of (light, dark) |
backgroundColor | a 6-digit rgb hex color, e.g. #AABBCC |
modOnly | boolean value |
async Task<FlairV2> Reddit.Controllers.Flairs.CreateUserFlairTemplateV2Async | ( | FlairTemplateV2Input | flairTemplateV2Input | ) |
Create a new user flair template asynchronously. This new endpoint is primarily used for the redesign.
flairTemplateV2Input | A valid FlairTemplateV2Input instance |
async Task<FlairV2> Reddit.Controllers.Flairs.CreateUserFlairTemplateV2Async | ( | string | text, |
bool | textEditable = false , |
||
string | textColor = "dark" , |
||
string | backgroundColor = "#EEEEFF" , |
||
bool | modOnly = false |
||
) |
Create a new user flair template asynchronously. This new endpoint is primarily used for the redesign.
text | a string no longer than 64 characters |
textEditable | boolean value |
textColor | one of (light, dark) |
backgroundColor | a 6-digit rgb hex color, e.g. #AABBCC |
modOnly | boolean value |
void Reddit.Controllers.Flairs.DeleteFlair | ( | string | username | ) |
Delete flair.
username | The user whose flair we're removing |
async Task Reddit.Controllers.Flairs.DeleteFlairAsync | ( | string | username | ) |
Delete flair asynchronously.
username | The user whose flair we're removing |
void Reddit.Controllers.Flairs.DeleteFlairTemplate | ( | string | flairTemplateId | ) |
Delete flair template.
flairTemplateId | The ID of the flair template being deleted (e.g. "0778d5ec-db43-11e8-9258-0e3a02270976") |
async Task Reddit.Controllers.Flairs.DeleteFlairTemplateAsync | ( | string | flairTemplateId | ) |
Delete flair template asynchronously.
flairTemplateId | The ID of the flair template being deleted (e.g. "0778d5ec-db43-11e8-9258-0e3a02270976") |
void Reddit.Controllers.Flairs.FlairConfig | ( | FlairConfigInput | flairConfigInput | ) |
Update the flair configuration settings for this subreddit.
flairConfigInput | A valid FlairConfigInput instance |
async Task Reddit.Controllers.Flairs.FlairConfigAsync | ( | FlairConfigInput | flairConfigInput | ) |
Update the flair configuration settings for this subreddit asynchronously.
flairConfigInput | A valid FlairConfigInput instance |
List<ActionResult> Reddit.Controllers.Flairs.FlairCSV | ( | FlairListResultContainer | flairCsv | ) |
Change the flair of multiple users in the same subreddit with a single API call. If both cssclass and flairtext are the empty string for a given user, instead clears that user's flair. Returns an array of objects indicating if each flair setting was applied, or a reason for the failure.
flairCsv | A valid FlairListResultContainer object |
List<ActionResult> Reddit.Controllers.Flairs.FlairCSV | ( | List< FlairListResult > | flairCsv | ) |
Change the flair of multiple users in the same subreddit with a single API call. If both cssclass and flairtext are the empty string for a given user, instead clears that user's flair. Returns an array of objects indicating if each flair setting was applied, or a reason for the failure.
flairCsv | A list of valid FlairListResult objects |
List<ActionResult> Reddit.Controllers.Flairs.FlairCSV | ( | string | flairCsv | ) |
Change the flair of multiple users in the same subreddit with a single API call. Requires a string 'flair_csv' which has up to 100 lines of the form 'user,flairtext,cssclass' (Lines beyond the 100th are ignored). If both cssclass and flairtext are the empty string for a given user, instead clears that user's flair. Returns an array of objects indicating if each flair setting was applied, or a reason for the failure.
flairCsv | comma-seperated flair information |
async Task<List<ActionResult> > Reddit.Controllers.Flairs.FlairCSVAsync | ( | FlairListResultContainer | flairCsv | ) |
Asynchronously change the flair of multiple users in the same subreddit with a single API call. If both cssclass and flairtext are the empty string for a given user, instead clears that user's flair. Returns an array of objects indicating if each flair setting was applied, or a reason for the failure.
flairCsv | A valid FlairListResultContainer object |
async Task<List<ActionResult> > Reddit.Controllers.Flairs.FlairCSVAsync | ( | List< FlairListResult > | flairCsv | ) |
Asynchronously change the flair of multiple users in the same subreddit with a single API call. If both cssclass and flairtext are the empty string for a given user, instead clears that user's flair. Returns an array of objects indicating if each flair setting was applied, or a reason for the failure.
flairCsv | A list of valid FlairListResult objects |
async Task<List<ActionResult> > Reddit.Controllers.Flairs.FlairCSVAsync | ( | string | flairCsv | ) |
Asynchronously change the flair of multiple users in the same subreddit with a single API call. Requires a string 'flair_csv' which has up to 100 lines of the form 'user,flairtext,cssclass' (Lines beyond the 100th are ignored). If both cssclass and flairtext are the empty string for a given user, instead clears that user's flair. Returns an array of objects indicating if each flair setting was applied, or a reason for the failure.
flairCsv | comma-seperated flair information |
FlairSelectorResultContainer Reddit.Controllers.Flairs.FlairSelector | ( | string | username = null , |
string | link = null |
||
) |
Return information about a user's or link's flair options.
username | A valid Reddit username |
///
link | a fullname of a link |
List<FlairListResult> Reddit.Controllers.Flairs.GetFlairList | ( | FlairNameListingInput | flairNameListingInput | ) |
List of flairs.
flairNameListingInput | A valid FlairNameListingInput instance |
List<FlairListResult> Reddit.Controllers.Flairs.GetFlairList | ( | string | username = "" , |
int | limit = 25 , |
||
string | after = "" , |
||
string | before = "" , |
||
int | count = 0 , |
||
string | show = "all" , |
||
bool | srDetail = false |
||
) |
List of flairs.
username | a user by name |
limit | the maximum number of items desired (default: 25, maximum: 1000) |
after | fullname of a thing |
before | fullname of a thing |
count | a positive integer (default: 0) |
show | (optional) the string all |
srDetail | (optional) expand subreddits |
List<Flair> Reddit.Controllers.Flairs.GetLinkFlair | ( | ) |
Return list of available link flair for the current subreddit. Will not return flair if the user cannot set their own link flair and they are not a moderator that can set flair.
List<FlairV2> Reddit.Controllers.Flairs.GetLinkFlairV2 | ( | ) |
Return list of available link flair for the current subreddit. Will not return flair if the user cannot set their own link flair and they are not a moderator that can set flair.
List<Flair> Reddit.Controllers.Flairs.GetUserFlair | ( | ) |
Return list of available user flair for the current subreddit. Will not return flair if flair is disabled on the subreddit, the user cannot set their own flair, or they are not a moderator that can set flair.
List<FlairV2> Reddit.Controllers.Flairs.GetUserFlairV2 | ( | ) |
Return list of available user flair for the current subreddit. Will not return flair if flair is disabled on the subreddit, the user cannot set their own flair, or they are not a moderator that can set flair.
void Reddit.Controllers.Flairs.SetFlairEnabled | ( | bool | flairEnabled = true | ) |
Set flair enabled.
flairEnabled | boolean value |
async Task Reddit.Controllers.Flairs.SetFlairEnabledAsync | ( | bool | flairEnabled = true | ) |
Set flair enabled asynchronously.
flairEnabled | boolean value |
void Reddit.Controllers.Flairs.UpdateLinkFlairTemplate | ( | FlairTemplateInput | flairTemplateInput | ) |
Update an existing link flair template.
flairTemplateInput | A valid FlairTemplateInput instance |
void Reddit.Controllers.Flairs.UpdateLinkFlairTemplate | ( | string | flairTemplateId, |
string | text = null , |
||
bool? | textEditable = null , |
||
string | cssClass = null |
||
) |
Update an existing link flair template.
flairTemplateId | The ID of the flair template being updated (e.g. "0778d5ec-db43-11e8-9258-0e3a02270976") |
text | a string no longer than 64 characters |
textEditable | boolean value |
cssClass | a valid subreddit image name |
async Task Reddit.Controllers.Flairs.UpdateLinkFlairTemplateAsync | ( | FlairTemplateInput | flairTemplateInput | ) |
Update an existing link flair template asynchronously.
flairTemplateInput | A valid FlairTemplateInput instance |
async Task Reddit.Controllers.Flairs.UpdateLinkFlairTemplateAsync | ( | string | flairTemplateId, |
string | text, | ||
bool | textEditable = false , |
||
string | cssClass = "" |
||
) |
Update an existing link flair template asynchronously.
flairTemplateId | The ID of the flair template being updated (e.g. "0778d5ec-db43-11e8-9258-0e3a02270976") |
text | a string no longer than 64 characters |
textEditable | boolean value |
cssClass | a valid subreddit image name |
FlairV2 Reddit.Controllers.Flairs.UpdateLinkFlairTemplateV2 | ( | FlairTemplateV2Input | flairTemplateV2Input | ) |
Update an existing link flair template. This new endpoint is primarily used for the redesign.
flairTemplateV2Input | A valid FlairTemplateV2Input instance |
FlairV2 Reddit.Controllers.Flairs.UpdateLinkFlairTemplateV2 | ( | string | flairTemplateId, |
string | text = null , |
||
bool? | textEditable = null , |
||
string | textColor = null , |
||
string | backgroundColor = null , |
||
bool? | modOnly = null |
||
) |
Update an existing link flair template. This new endpoint is primarily used for the redesign.
flairTemplateId | The ID of the flair template being updated (e.g. "0778d5ec-db43-11e8-9258-0e3a02270976") |
text | a string no longer than 64 characters |
textEditable | boolean value |
textColor | one of (light, dark) |
backgroundColor | a 6-digit rgb hex color, e.g. #AABBCC |
modOnly | boolean value |
async Task<FlairV2> Reddit.Controllers.Flairs.UpdateLinkFlairTemplateV2Async | ( | FlairTemplateV2Input | flairTemplateV2Input | ) |
Update an existing link flair template asynchronously. This new endpoint is primarily used for the redesign.
flairTemplateV2Input | A valid FlairTemplateV2Input instance |
async Task<FlairV2> Reddit.Controllers.Flairs.UpdateLinkFlairTemplateV2Async | ( | string | flairTemplateId, |
string | text = null , |
||
bool? | textEditable = null , |
||
string | textColor = null , |
||
string | backgroundColor = null , |
||
bool? | modOnly = null |
||
) |
Update an existing link flair template asynchronously. This new endpoint is primarily used for the redesign.
flairTemplateId | The ID of the flair template being updated (e.g. "0778d5ec-db43-11e8-9258-0e3a02270976") |
text | a string no longer than 64 characters |
textEditable | boolean value |
textColor | one of (light, dark) |
backgroundColor | a 6-digit rgb hex color, e.g. #AABBCC |
modOnly | boolean value |
void Reddit.Controllers.Flairs.UpdateUserFlairTemplate | ( | FlairTemplateInput | flairTemplateInput | ) |
Update an existing user flair template.
flairTemplateInput | A valid FlairTemplateInput instance |
void Reddit.Controllers.Flairs.UpdateUserFlairTemplate | ( | string | flairTemplateId, |
string | text = null , |
||
bool? | textEditable = null , |
||
string | cssClass = null |
||
) |
Update an existing user flair template.
flairTemplateId | The ID of the flair template being updated (e.g. "0778d5ec-db43-11e8-9258-0e3a02270976") |
text | a string no longer than 64 characters |
textEditable | boolean value |
cssClass | a valid subreddit image name |
async Task Reddit.Controllers.Flairs.UpdateUserFlairTemplateAsync | ( | FlairTemplateInput | flairTemplateInput | ) |
Update an existing user flair template asynchronously.
flairTemplateInput | A valid FlairTemplateInput instance |
async Task Reddit.Controllers.Flairs.UpdateUserFlairTemplateAsync | ( | string | flairTemplateId, |
string | text, | ||
bool | textEditable = false , |
||
string | cssClass = "" |
||
) |
Update an existing user flair template asynchronously.
flairTemplateId | The ID of the flair template being updated (e.g. "0778d5ec-db43-11e8-9258-0e3a02270976") |
text | a string no longer than 64 characters |
textEditable | boolean value |
cssClass | a valid subreddit image name |
FlairV2 Reddit.Controllers.Flairs.UpdateUserFlairTemplateV2 | ( | FlairTemplateV2Input | flairTemplateV2Input | ) |
Update an existing user flair template. This new endpoint is primarily used for the redesign.
flairTemplateV2Input | A valid FlairTemplateV2Input instance |
FlairV2 Reddit.Controllers.Flairs.UpdateUserFlairTemplateV2 | ( | string | flairTemplateId, |
string | text = null , |
||
bool? | textEditable = null , |
||
string | textColor = null , |
||
string | backgroundColor = null , |
||
bool? | modOnly = null |
||
) |
Update an existing user flair template. This new endpoint is primarily used for the redesign.
flairTemplateId | The ID of the flair template being updated (e.g. "0778d5ec-db43-11e8-9258-0e3a02270976") |
text | a string no longer than 64 characters |
textEditable | boolean value |
textColor | one of (light, dark) |
backgroundColor | a 6-digit rgb hex color, e.g. #AABBCC |
modOnly | boolean value |
async Task<FlairV2> Reddit.Controllers.Flairs.UpdateUserFlairTemplateV2Async | ( | FlairTemplateV2Input | flairTemplateV2Input | ) |
Update an existing user flair template asynchronously. This new endpoint is primarily used for the redesign.
flairTemplateV2Input | A valid FlairTemplateV2Input instance |
async Task<FlairV2> Reddit.Controllers.Flairs.UpdateUserFlairTemplateV2Async | ( | string | flairTemplateId, |
string | text = null , |
||
bool? | textEditable = null , |
||
string | textColor = null , |
||
string | backgroundColor = null , |
||
bool? | modOnly = null |
||
) |
Update an existing user flair template asynchronously. This new endpoint is primarily used for the redesign.
flairTemplateId | The ID of the flair template being updated (e.g. "0778d5ec-db43-11e8-9258-0e3a02270976") |
text | a string no longer than 64 characters |
textEditable | boolean value |
textColor | one of (light, dark) |
backgroundColor | a 6-digit rgb hex color, e.g. #AABBCC |
modOnly | boolean value |
|
getset |
List of flairs.
|
get |
Fullname of the next page of flair list results.
|
get |
Fullname of the previous page of flair list results.
|
getset |
List of link flairs.
|
getset |
List of link flairs.
|
getset |
List of user flairs.
|
getset |
List of user flairs.