C# Class RedditSharp.Things.Comment

Inheritance: RedditSharp.Things.VotableThing
Datei anzeigen Open project: SirCmpwn/RedditSharp Class Usage Examples

Private Properties

Property Type Description
CommonInit JToken
ParseComments void
ParseCommentsAsync System.Threading.Tasks.Task
RemoveImpl void
SimpleAction string

Public Methods

Method Description
Del ( ) : void
EditText ( string newText ) : void

Replaces the text in this comment with the input text.

Init ( Reddit reddit, JToken json, IWebAgent webAgent, Thing sender ) : Comment
InitAsync ( Reddit reddit, JToken json, IWebAgent webAgent, Thing sender ) : Task
Remove ( ) : void
RemoveSpam ( ) : void
Reply ( string message ) : Comment
SetAsRead ( ) : void

Private Methods

Method Description
CommonInit ( Reddit reddit, JToken json, IWebAgent webAgent, Thing sender ) : JToken
ParseComments ( Reddit reddit, JToken data, IWebAgent webAgent, Thing sender ) : void
ParseCommentsAsync ( Reddit reddit, JToken data, IWebAgent webAgent, Thing sender ) : System.Threading.Tasks.Task
RemoveImpl ( bool spam ) : void
SimpleAction ( string endpoint ) : string

Method Details

Del() public method

public Del ( ) : void
return void

EditText() public method

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

Init() public method

public Init ( Reddit reddit, JToken json, IWebAgent webAgent, Thing sender ) : Comment
reddit Reddit
json JToken
webAgent IWebAgent
sender Thing
return Comment

InitAsync() public method

public InitAsync ( Reddit reddit, JToken json, IWebAgent webAgent, Thing sender ) : Task
reddit Reddit
json JToken
webAgent IWebAgent
sender Thing
return Task

Remove() public method

public Remove ( ) : void
return void

RemoveSpam() public method

public RemoveSpam ( ) : void
return void

Reply() public method

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

SetAsRead() public method

public SetAsRead ( ) : void
return void