C# Class RedditSharp.Things.Subreddit

Inheritance: Thing
Afficher le fichier Open project: SirCmpwn/RedditSharp Class Usage Examples

Private Properties

Свойство Type Description
CommonInit void
GetHot Listing
GetModQueue Listing
GetModerators IEnumerable
GetNew Listing
GetPosts Listing
GetSettings SubredditSettings
GetStylesheet SubredditStyle
GetUnmoderatedLinks Listing
GetUserFlairTemplates UserFlairTemplate[]
SetName void
Submit Post

Méthodes publiques

Méthode Description
AcceptModeratorInvite ( ) : void
AddContributor ( string user ) : void
AddFlairTemplate ( string cssClass, FlairType flairType, string text, bool userEditable ) : void
AddModerator ( string user ) : void
BanUser ( string user, string reason ) : void
ClearFlairTemplates ( FlairType flairType ) : void
GetFlairCssClass ( string user ) : string
GetFlairText ( string user ) : string
GetFrontPage ( Reddit reddit ) : Subreddit
GetModerationLog ( ) : Listing

Gets the moderation log of the current subreddit

GetModerationLog ( ModActionType action ) : Listing

Gets the moderation log of the current subreddit filtered by the action taken

GetModerationLog ( ModActionType action, string mods ) : Listing

Gets the moderation log of the current subreddit filtered by the action taken and moderator(s) who performed the action

GetModerationLog ( string mods ) : Listing

Gets the moderation log of the current subreddit filtered by moderator(s) who performed the action

GetRSlashAll ( Reddit reddit ) : Subreddit
GetTop ( FromTime timePeriod ) : Listing
Init ( Reddit reddit, JToken json, IWebAgent webAgent ) : Subreddit
InitAsync ( Reddit reddit, JToken json, IWebAgent webAgent ) : Task
RemoveContributor ( string id ) : void
RemoveModerator ( string id ) : void
Search ( System.DateTime from, System.DateTime to, Sorting sortE = Sorting.New ) : Listing
Search ( string terms, Sorting sortE = Sorting.Relevance, TimeSorting timeE = TimeSorting.All ) : Listing
SetUserFlair ( string user, string cssClass, string text ) : void
SubmitPost ( string title, string url, string captchaId = "", string captchaAnswer = "", bool resubmit = false ) : Post

Submits a link post in the current subreddit using the logged-in user

SubmitTextPost ( string title, string text, string captchaId = "", string captchaAnswer = "" ) : Post

Submits a text post in the current subreddit using the logged-in user

Subscribe ( ) : void
ToString ( ) : string
Unsubscribe ( ) : void
UploadHeaderImage ( string name, ImageType imageType, byte file ) : void

Private Methods

Méthode Description
CommonInit ( Reddit reddit, JToken json, IWebAgent webAgent ) : void
GetHot ( ) : Listing
GetModQueue ( ) : Listing
GetModerators ( ) : IEnumerable
GetNew ( ) : Listing
GetPosts ( ) : Listing
GetSettings ( ) : SubredditSettings
GetStylesheet ( ) : SubredditStyle
GetUnmoderatedLinks ( ) : Listing
GetUserFlairTemplates ( ) : UserFlairTemplate[]
SetName ( ) : void
Submit ( SubmitData data ) : Post

Method Details

AcceptModeratorInvite() public méthode

public AcceptModeratorInvite ( ) : void
Résultat void

AddContributor() public méthode

public AddContributor ( string user ) : void
user string
Résultat void

AddFlairTemplate() public méthode

public AddFlairTemplate ( string cssClass, FlairType flairType, string text, bool userEditable ) : void
cssClass string
flairType FlairType
text string
userEditable bool
Résultat void

AddModerator() public méthode

public AddModerator ( string user ) : void
user string
Résultat void

BanUser() public méthode

public BanUser ( string user, string reason ) : void
user string
reason string
Résultat void

ClearFlairTemplates() public méthode

public ClearFlairTemplates ( FlairType flairType ) : void
flairType FlairType
Résultat void

GetFlairCssClass() public méthode

public GetFlairCssClass ( string user ) : string
user string
Résultat string

GetFlairText() public méthode

public GetFlairText ( string user ) : string
user string
Résultat string

GetFrontPage() public static méthode

public static GetFrontPage ( Reddit reddit ) : Subreddit
reddit Reddit
Résultat Subreddit

GetModerationLog() public méthode

Gets the moderation log of the current subreddit
public GetModerationLog ( ) : Listing
Résultat Listing

GetModerationLog() public méthode

Gets the moderation log of the current subreddit filtered by the action taken
public GetModerationLog ( ModActionType action ) : Listing
action ModActionType ModActionType of action performed
Résultat Listing

GetModerationLog() public méthode

Gets the moderation log of the current subreddit filtered by the action taken and moderator(s) who performed the action
public GetModerationLog ( ModActionType action, string mods ) : Listing
action ModActionType ModActionType of action performed
mods string String array of mods to filter by
Résultat Listing

GetModerationLog() public méthode

Gets the moderation log of the current subreddit filtered by moderator(s) who performed the action
public GetModerationLog ( string mods ) : Listing
mods string String array of mods to filter by
Résultat Listing

GetRSlashAll() public static méthode

public static GetRSlashAll ( Reddit reddit ) : Subreddit
reddit Reddit
Résultat Subreddit

GetTop() public méthode

public GetTop ( FromTime timePeriod ) : Listing
timePeriod FromTime
Résultat Listing

Init() public méthode

public Init ( Reddit reddit, JToken json, IWebAgent webAgent ) : Subreddit
reddit Reddit
json JToken
webAgent IWebAgent
Résultat Subreddit

InitAsync() public méthode

public InitAsync ( Reddit reddit, JToken json, IWebAgent webAgent ) : Task
reddit Reddit
json JToken
webAgent IWebAgent
Résultat Task

RemoveContributor() public méthode

public RemoveContributor ( string id ) : void
id string
Résultat void

RemoveModerator() public méthode

public RemoveModerator ( string id ) : void
id string
Résultat void

Search() public méthode

public Search ( System.DateTime from, System.DateTime to, Sorting sortE = Sorting.New ) : Listing
from System.DateTime
to System.DateTime
sortE Sorting
Résultat Listing

Search() public méthode

public Search ( string terms, Sorting sortE = Sorting.Relevance, TimeSorting timeE = TimeSorting.All ) : Listing
terms string
sortE Sorting
timeE TimeSorting
Résultat Listing

SetUserFlair() public méthode

public SetUserFlair ( string user, string cssClass, string text ) : void
user string
cssClass string
text string
Résultat void

SubmitPost() public méthode

Submits a link post in the current subreddit using the logged-in user
public SubmitPost ( string title, string url, string captchaId = "", string captchaAnswer = "", bool resubmit = false ) : Post
title string The title of the submission
url string The url of the submission link
captchaId string
captchaAnswer string
resubmit bool
Résultat Post

SubmitTextPost() public méthode

Submits a text post in the current subreddit using the logged-in user
public SubmitTextPost ( string title, string text, string captchaId = "", string captchaAnswer = "" ) : Post
title string The title of the submission
text string The raw markdown text of the submission
captchaId string
captchaAnswer string
Résultat Post

Subscribe() public méthode

public Subscribe ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

Unsubscribe() public méthode

public Unsubscribe ( ) : void
Résultat void

UploadHeaderImage() public méthode

public UploadHeaderImage ( string name, ImageType imageType, byte file ) : void
name string
imageType ImageType
file byte
Résultat void