C# Class RedditSharp.Things.Comment

Inheritance: RedditSharp.Things.VotableThing
Afficher le fichier Open project: SirCmpwn/RedditSharp Class Usage Examples

Private Properties

Свойство Type Description
CommonInit JToken
ParseComments void
ParseCommentsAsync System.Threading.Tasks.Task
RemoveImpl void
SimpleAction string

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Del ( ) : void
Résultat void

EditText() public méthode

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
Résultat void

Init() public méthode

public Init ( Reddit reddit, JToken json, IWebAgent webAgent, Thing sender ) : Comment
reddit Reddit
json JToken
webAgent IWebAgent
sender Thing
Résultat Comment

InitAsync() public méthode

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

Remove() public méthode

public Remove ( ) : void
Résultat void

RemoveSpam() public méthode

public RemoveSpam ( ) : void
Résultat void

Reply() public méthode

public Reply ( string message ) : Comment
message string
Résultat Comment

SetAsRead() public méthode

public SetAsRead ( ) : void
Résultat void