C# Class RedditSharp.Things.Post

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

Private Properties

Свойство Type Description
CommonInit void
GetComments RedditSharp.Things.Comment[]
RemoveImpl void
SimpleAction string
SimpleActionToggle string

Méthodes publiques

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

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

public Approve ( ) : void
Résultat void

Comment() public méthode

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

ContestMode() public méthode

public ContestMode ( bool state ) : void
state bool
Résultat void

Del() public méthode

public Del ( ) : void
Résultat void

EditText() public méthode

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

Hide() public méthode

public Hide ( ) : void
Résultat void

Init() public méthode

public Init ( Reddit reddit, JToken post, IWebAgent webAgent ) : Post
reddit Reddit
post JToken
webAgent IWebAgent
Résultat Post

InitAsync() public méthode

public InitAsync ( Reddit reddit, JToken post, IWebAgent webAgent ) : Task
reddit Reddit
post JToken
webAgent IWebAgent
Résultat Task

ListComments() public méthode

public ListComments ( int limit = null ) : List
limit int
Résultat List

MarkNSFW() public méthode

public MarkNSFW ( ) : void
Résultat void

Remove() public méthode

public Remove ( ) : void
Résultat void

RemoveSpam() public méthode

public RemoveSpam ( ) : void
Résultat void

SetFlair() public méthode

public SetFlair ( string flairText, string flairClass ) : void
flairText string
flairClass string
Résultat void

StickyMode() public méthode

public StickyMode ( bool state ) : void
state bool
Résultat void

Unhide() public méthode

public Unhide ( ) : void
Résultat void

UnmarkNSFW() public méthode

public UnmarkNSFW ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void