C# 클래스 ImgurNet.ApiEndpoints.CommentEndpoint

상속: BaseEndpoint
파일 보기 프로젝트 열기: 0xdeafcafe/ImgurNet 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

CommentEndpoint() 공개 메소드

public CommentEndpoint ( Imgur imgurClient ) : System
imgurClient Imgur
리턴 System

CreateCommentAsync() 공개 메소드

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)
리턴 Task>

DeleteCommentAsync() 공개 메소드

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

GetCommentAsync() 공개 메소드

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

GetCommentRepliesAsync() 공개 메소드

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
리턴 Task>

ReportCommentAsync() 공개 메소드

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
리턴 Task>

VoteCommentAsync() 공개 메소드

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
리턴 Task>