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

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

Private Properties

Свойство Тип Описание
CommonInit JToken
ParseComments void
ParseCommentsAsync System.Threading.Tasks.Task
RemoveImpl void
SimpleAction string

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

public Reply ( string message ) : Comment
message string
Результат Comment

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

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