C# 클래스 RedditSharp.Things.Subreddit

상속: Thing
파일 보기 프로젝트 열기: SirCmpwn/RedditSharp 1 사용 예제들

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