C# Класс RedditSharp.Things.Subreddit

Наследование: Thing
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CommonInit void
GetHot Listing
GetModQueue Listing
GetModerators IEnumerable
GetNew Listing
GetPosts Listing
GetSettings SubredditSettings
GetStylesheet SubredditStyle
GetUnmoderatedLinks Listing
GetUserFlairTemplates UserFlairTemplate[]
SetName void
Submit Post

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AcceptModeratorInvite() публичный Метод

public AcceptModeratorInvite ( ) : void
Результат void

AddContributor() публичный Метод

public AddContributor ( string user ) : void
user string
Результат void

AddFlairTemplate() публичный Метод

public AddFlairTemplate ( string cssClass, FlairType flairType, string text, bool userEditable ) : void
cssClass string
flairType FlairType
text string
userEditable bool
Результат void

AddModerator() публичный Метод

public AddModerator ( string user ) : void
user string
Результат void

BanUser() публичный Метод

public BanUser ( string user, string reason ) : void
user string
reason string
Результат void

ClearFlairTemplates() публичный Метод

public ClearFlairTemplates ( FlairType flairType ) : void
flairType FlairType
Результат void

GetFlairCssClass() публичный Метод

public GetFlairCssClass ( string user ) : string
user string
Результат string

GetFlairText() публичный Метод

public GetFlairText ( string user ) : string
user string
Результат string

GetFrontPage() публичный статический Метод

public static GetFrontPage ( Reddit reddit ) : Subreddit
reddit Reddit
Результат Subreddit

GetModerationLog() публичный Метод

Gets the moderation log of the current subreddit
public GetModerationLog ( ) : Listing
Результат Listing

GetModerationLog() публичный Метод

Gets the moderation log of the current subreddit filtered by the action taken
public GetModerationLog ( ModActionType action ) : Listing
action ModActionType ModActionType of action performed
Результат Listing

GetModerationLog() публичный Метод

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
Результат Listing

GetModerationLog() публичный Метод

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
Результат Listing

GetRSlashAll() публичный статический Метод

public static GetRSlashAll ( Reddit reddit ) : Subreddit
reddit Reddit
Результат Subreddit

GetTop() публичный Метод

public GetTop ( FromTime timePeriod ) : Listing
timePeriod FromTime
Результат Listing

Init() публичный Метод

public Init ( Reddit reddit, JToken json, IWebAgent webAgent ) : Subreddit
reddit Reddit
json JToken
webAgent IWebAgent
Результат Subreddit

InitAsync() публичный Метод

public InitAsync ( Reddit reddit, JToken json, IWebAgent webAgent ) : Task
reddit Reddit
json JToken
webAgent IWebAgent
Результат Task

RemoveContributor() публичный Метод

public RemoveContributor ( string id ) : void
id string
Результат void

RemoveModerator() публичный Метод

public RemoveModerator ( string id ) : void
id string
Результат void

Search() публичный Метод

public Search ( System.DateTime from, System.DateTime to, Sorting sortE = Sorting.New ) : Listing
from System.DateTime
to System.DateTime
sortE Sorting
Результат Listing

Search() публичный Метод

public Search ( string terms, Sorting sortE = Sorting.Relevance, TimeSorting timeE = TimeSorting.All ) : Listing
terms string
sortE Sorting
timeE TimeSorting
Результат Listing

SetUserFlair() публичный Метод

public SetUserFlair ( string user, string cssClass, string text ) : void
user string
cssClass string
text string
Результат void

SubmitPost() публичный Метод

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
Результат Post

SubmitTextPost() публичный Метод

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
Результат Post

Subscribe() публичный Метод

public Subscribe ( ) : void
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string

Unsubscribe() публичный Метод

public Unsubscribe ( ) : void
Результат void

UploadHeaderImage() публичный Метод

public UploadHeaderImage ( string name, ImageType imageType, byte file ) : void
name string
imageType ImageType
file byte
Результат void