C# 클래스 Imgur.API.Endpoints.Impl.CommentEndpoint

Comment related actions.
상속: EndpointBase, ICommentEndpoint
파일 보기 프로젝트 열기: DamienDennehy/Imgur.API 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CommentEndpoint System

공개 메소드들

메소드 설명
CommentEndpoint ( IApiClient apiClient ) : System

Initializes a new instance of the CommentEndpoint class.

CreateCommentAsync ( string comment, string galleryItemId, string parentId = null ) : Task

Creates a new comment, returns the ID of the comment. OAuth authentication required.

CreateReplyAsync ( string comment, string galleryItemId, string parentId ) : Task

Create a reply for the given comment, returns the ID of the comment. OAuth authentication required.

DeleteCommentAsync ( int commentId ) : Task

Delete a comment by the given id. OAuth authentication required.

GetCommentAsync ( int commentId ) : Task

Get information about a specific comment.

GetRepliesAsync ( int commentId ) : Task

Get the comment with all of the replies for the comment.

ReportCommentAsync ( int commentId, ReportReason reason ) : Task

Report a comment for being inappropriate. OAuth authentication required.

VoteCommentAsync ( int commentId, VoteOption vote ) : Task

Vote on a comment. OAuth authentication required.

비공개 메소드들

메소드 설명
CommentEndpoint ( IApiClient apiClient, HttpClient httpClient ) : System

Initializes a new instance of the CommentEndpoint class.

메소드 상세

CommentEndpoint() 공개 메소드

Initializes a new instance of the CommentEndpoint class.
public CommentEndpoint ( IApiClient apiClient ) : System
apiClient IApiClient The type of client that will be used for authentication.
리턴 System

CreateCommentAsync() 공개 메소드

Creates a new comment, returns the ID of the comment. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public CreateCommentAsync ( string comment, string galleryItemId, string parentId = null ) : Task
comment string The comment text, this is what will be displayed.
galleryItemId string The ID of the item in the gallery that you wish to comment on.
parentId string The ID of the parent comment, this is an alternative method to create a reply.
리턴 Task

CreateReplyAsync() 공개 메소드

Create a reply for the given comment, returns the ID of the comment. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public CreateReplyAsync ( string comment, string galleryItemId, string parentId ) : Task
comment string The comment text, this is what will be displayed.
galleryItemId string The ID of the item in the gallery that you wish to comment on.
parentId string The comment id that you are replying to.
리턴 Task

DeleteCommentAsync() 공개 메소드

Delete a comment by the given id. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public DeleteCommentAsync ( int commentId ) : Task
commentId int The comment id.
리턴 Task

GetCommentAsync() 공개 메소드

Get information about a specific comment.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public GetCommentAsync ( int commentId ) : Task
commentId int The comment id.
리턴 Task

GetRepliesAsync() 공개 메소드

Get the comment with all of the replies for the comment.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public GetRepliesAsync ( int commentId ) : Task
commentId int The comment id.
리턴 Task

ReportCommentAsync() 공개 메소드

Report a comment for being inappropriate. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public ReportCommentAsync ( int commentId, ReportReason reason ) : Task
commentId int The comment id.
reason ReportReason The reason why the comment is inappropriate.
리턴 Task

VoteCommentAsync() 공개 메소드

Vote on a comment. OAuth authentication required.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public VoteCommentAsync ( int commentId, VoteOption vote ) : Task
commentId int The comment id.
vote VoteOption The vote.
리턴 Task