C# Класс ImgurNet.ApiEndpoints.CommentEndpoint

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

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

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