C# Class ImgurNet.ApiEndpoints.CommentEndpoint

Inheritance: BaseEndpoint
Show file Open project: 0xdeafcafe/ImgurNet Class Usage Examples

Public Methods

Method Description
CommentEndpoint ( Imgur imgurClient ) : System
CreateCommentAsync ( string caption, string imageId, int parentId = null ) : Task>

Creates a new comment

DeleteCommentAsync ( System.Int64 commentId ) : Task>

Delete a comment by the given id

GetCommentAsync ( System.Int64 commentId ) : Task>

Get information about a specific comment

GetCommentRepliesAsync ( System.Int64 commentId ) : Task>

Get a comment with all of the replies for that comment

ReportCommentAsync ( System.Int64 commentId ) : Task>

Report a comment (made by a loser/douchebag) for being inappropriate

VoteCommentAsync ( System.Int64 commentId, VoteDirection vote ) : Task>

Vote on a comment

Method Details

CommentEndpoint() public method

public CommentEndpoint ( Imgur imgurClient ) : System
imgurClient Imgur
return System

CreateCommentAsync() public method

Creates a new comment
public CreateCommentAsync ( string caption, string imageId, int parentId = null ) : Task>
caption string The body of the comment
imageId string The image to post the comment on
parentId int [optional] The id of the comment this is a reply to, (if this is a reply)
return Task>

DeleteCommentAsync() public method

Delete a comment by the given id
public DeleteCommentAsync ( System.Int64 commentId ) : Task>
commentId System.Int64 The Id of the comment
return Task>

GetCommentAsync() public method

Get information about a specific comment
public GetCommentAsync ( System.Int64 commentId ) : Task>
commentId System.Int64 The Id of the comment
return Task>

GetCommentRepliesAsync() public method

Get a comment with all of the replies for that comment
public GetCommentRepliesAsync ( System.Int64 commentId ) : Task>
commentId System.Int64 The Id of the comment
return Task>

ReportCommentAsync() public method

Report a comment (made by a loser/douchebag) for being inappropriate
public ReportCommentAsync ( System.Int64 commentId ) : Task>
commentId System.Int64 The Id of the comment
return Task>

VoteCommentAsync() public method

Vote on a comment
public VoteCommentAsync ( System.Int64 commentId, VoteDirection vote ) : Task>
commentId System.Int64 The Id of the comment
vote VoteDirection The vote to give the comment
return Task>