Method | Description | |
---|---|---|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
GetCommentsByPostIdAsync ( int postId, |
Return the comments for the given post ID.
|
|
GetPostByIdAsync ( int id, |
Return the post with the given resource ID.
|
|
GetPostsAsync ( int skip, int take = 10, |
Returns a list of posts.
|
|
GetUserByIdAsync ( int id, |
Return the user with the given resource ID.
|
|
GetUsersAsync ( int skip, int take = 10, |
Returns a list of users.
|
|
HypermediaSampleClient ( string endpoint, string accessToken ) : System |
Constructor.
|
Method | Description | |
---|---|---|
CreateResolver ( ) : IContractResolver |
Returns the resource contract resolver for the known types.
|
public GetCommentsByPostIdAsync ( int postId, |
||
postId | int | The ID of the post to return the comments for. |
cancellationToken | The cancellation token. | |
return | Task |
public GetPostByIdAsync ( int id, |
||
id | int | The ID of the post to return. |
cancellationToken | The cancellation token. | |
return | Task |
public GetPostsAsync ( int skip, int take = 10, |
||
skip | int | The number of posts to skip from the start. |
take | int | The number of posts to return. |
cancellationToken | The cancellation token. | |
return | Task |
public GetUserByIdAsync ( int id, |
||
id | int | The ID of the user to return. |
cancellationToken | The cancellation token. | |
return | Task |
public GetUsersAsync ( int skip, int take = 10, |
||
skip | int | The number of users to skip from the start. |
take | int | The number of users to return. |
cancellationToken | The cancellation token. | |
return | Task |
public HypermediaSampleClient ( string endpoint, string accessToken ) : System | ||
endpoint | string | The endpoint to connect the client to. |
accessToken | string | The access token. |
return | System |