C# Class Com.Readmill.Api.HighlightsClient

Inheritance: ReadmillClientBase
Afficher le fichier Open project: totobogy/ReadmillDotNet

Méthodes publiques

Méthode Description
DeleteHighlightAsync ( string accessToken, string highlightId ) : Task
GetHighlightByIdAsync ( string highlightId, string accessToken = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task

GetHighlightCommentsAsync ( string highlightId, RangeQueryOptions options = null, string accessToken = null ) : Task>
GetHighlightsAsync ( RangeQueryOptions options = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task>

Retrieves a list of highlights.

HighlightsClient ( string clientId ) : System

Instantiates a client for the Readmill/Users api

PostHighlightCommentAsync ( string accessToken, string highlightId, Comment comment ) : Task
UpdateHighlightAsync ( string accessToken, string highlightId, Highlight updatedHighlight ) : Task

Méthodes protégées

Méthode Description
LoadTemplates ( ) : void

Method Details

DeleteHighlightAsync() public méthode

public DeleteHighlightAsync ( string accessToken, string highlightId ) : Task
accessToken string
highlightId string
Résultat Task

GetHighlightByIdAsync() public méthode

public GetHighlightByIdAsync ( string highlightId, string accessToken = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task
highlightId string
accessToken string (optional) for private highlights
cancellationToken System.Threading.CancellationToken
Résultat Task

GetHighlightCommentsAsync() public méthode

public GetHighlightCommentsAsync ( string highlightId, RangeQueryOptions options = null, string accessToken = null ) : Task>
highlightId string
options RangeQueryOptions
accessToken string
Résultat Task>

GetHighlightsAsync() public méthode

Retrieves a list of highlights.
public GetHighlightsAsync ( RangeQueryOptions options = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task>
options RangeQueryOptions Query options for retrieving the highlights (optional)
cancellationToken System.Threading.CancellationToken
Résultat Task>

HighlightsClient() public méthode

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

LoadTemplates() protected méthode

protected LoadTemplates ( ) : void
Résultat void

PostHighlightCommentAsync() public méthode

public PostHighlightCommentAsync ( string accessToken, string highlightId, Comment comment ) : Task
accessToken string
highlightId string
comment Com.Readmill.Api.DataContracts.Comment
Résultat Task

UpdateHighlightAsync() public méthode

public UpdateHighlightAsync ( string accessToken, string highlightId, Highlight updatedHighlight ) : Task
accessToken string
highlightId string
updatedHighlight Com.Readmill.Api.DataContracts.Highlight
Résultat Task