C# Class RedditSharp.Things.Post

Inheritance: RedditSharp.Things.VotableThing
Mostrar archivo Open project: SirCmpwn/RedditSharp Class Usage Examples

Private Properties

Property Type Description
CommonInit void
GetComments RedditSharp.Things.Comment[]
RemoveImpl void
SimpleAction string
SimpleActionToggle string

Public Methods

Method Description
Approve ( ) : void
Comment ( string message ) : Comment
ContestMode ( bool state ) : void
Del ( ) : void
EditText ( string newText ) : void

Replaces the text in this post with the input text.

Hide ( ) : void
Init ( Reddit reddit, JToken post, IWebAgent webAgent ) : Post
InitAsync ( Reddit reddit, JToken post, IWebAgent webAgent ) : Task
ListComments ( int limit = null ) : List
MarkNSFW ( ) : void
Remove ( ) : void
RemoveSpam ( ) : void
SetFlair ( string flairText, string flairClass ) : void
StickyMode ( bool state ) : void
Unhide ( ) : void
UnmarkNSFW ( ) : void
Update ( ) : void

Private Methods

Method Description
CommonInit ( Reddit reddit, JToken post, IWebAgent webAgent ) : void
GetComments ( ) : RedditSharp.Things.Comment[]
RemoveImpl ( bool spam ) : void
SimpleAction ( string endpoint ) : string
SimpleActionToggle ( string endpoint, bool value, bool requiresModAction = false ) : string

Method Details

Approve() public method

public Approve ( ) : void
return void

Comment() public method

public Comment ( string message ) : Comment
message string
return Comment

ContestMode() public method

public ContestMode ( bool state ) : void
state bool
return void

Del() public method

public Del ( ) : void
return void

EditText() public method

Replaces the text in this post with the input text.
public EditText ( string newText ) : void
newText string The text to replace the post's contents
return void

Hide() public method

public Hide ( ) : void
return void

Init() public method

public Init ( Reddit reddit, JToken post, IWebAgent webAgent ) : Post
reddit Reddit
post JToken
webAgent IWebAgent
return Post

InitAsync() public method

public InitAsync ( Reddit reddit, JToken post, IWebAgent webAgent ) : Task
reddit Reddit
post JToken
webAgent IWebAgent
return Task

ListComments() public method

public ListComments ( int limit = null ) : List
limit int
return List

MarkNSFW() public method

public MarkNSFW ( ) : void
return void

Remove() public method

public Remove ( ) : void
return void

RemoveSpam() public method

public RemoveSpam ( ) : void
return void

SetFlair() public method

public SetFlair ( string flairText, string flairClass ) : void
flairText string
flairClass string
return void

StickyMode() public method

public StickyMode ( bool state ) : void
state bool
return void

Unhide() public method

public Unhide ( ) : void
return void

UnmarkNSFW() public method

public UnmarkNSFW ( ) : void
return void

Update() public method

public Update ( ) : void
return void