C# Class Com.Readmill.Api.CommentsClient

Inheritance: ReadmillClientBase
显示文件 Open project: totobogy/ReadmillDotNet

Public Methods

Method Description
CommentsClient ( string clientId ) : System

Instantiates a client for the Readmill/Users api

DeleteCommentAsync ( string accessToken, string commentId ) : System.Threading.Tasks.Task
GetCommentByIdAsync ( string commentId, string accessToken = null ) : Task

UpdateCommentAsync ( string accessToken, string commentId, Comment updatedComment ) : Task

Protected Methods

Method Description
LoadTemplates ( ) : void

Method Details

CommentsClient() public method

Instantiates a client for the Readmill/Users api
public CommentsClient ( string clientId ) : System
clientId string Client Id of the application, assgined by Readmill when the app is registered
return System

DeleteCommentAsync() public method

public DeleteCommentAsync ( string accessToken, string commentId ) : System.Threading.Tasks.Task
accessToken string
commentId string
return System.Threading.Tasks.Task

GetCommentByIdAsync() public method

public GetCommentByIdAsync ( string commentId, string accessToken = null ) : Task
commentId string
accessToken string (optional) for private comments
return Task

LoadTemplates() protected method

protected LoadTemplates ( ) : void
return void

UpdateCommentAsync() public method

public UpdateCommentAsync ( string accessToken, string commentId, Comment updatedComment ) : Task
accessToken string
commentId string
updatedComment Com.Readmill.Api.DataContracts.Comment
return Task