Class RequestTasks
A list of request tasks for a common user.
Inheritance
Namespace: DocuWare.Platform.ServerClient
Assembly: DocuWare.Platform.ServerClient.dll
Syntax
public class RequestTasks : IRelationsWithProxy
Properties
Count
Total number of items.
Declaration
public int Count { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
FirstRelationLink
Gets the Uri of the link for the relation “first”.
Declaration
public string FirstRelationLink { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Returns the uri of the link for the relation “first” if it exists, or
Links
Declaration
public Link[] Links { get; set; }
Property Value
Type | Description |
---|---|
Link[] |
NextRelationLink
Gets the Uri of the link for the relation “next”.
Declaration
public string NextRelationLink { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Returns the uri of the link for the relation “next” if it exists, or
PrevRelationLink
Gets the Uri of the link for the relation “prev”.
Declaration
public string PrevRelationLink { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Returns the uri of the link for the relation “prev” if it exists, or
SelfRelationLink
Gets the Uri of the link for the relation “self”.
Declaration
public string SelfRelationLink { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Returns the uri of the link for the relation “self” if it exists, or
Task
List of request tasks.
Declaration
public List<RequestTask> Task { get; set; }
Property Value
Type | Description |
---|---|
List<RequestTask> |
TimeStamp
TimeStamp of the result.
Declaration
public System.DateTime TimeStamp { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Methods
GetRequestTasksFromFirstRelation()
Calls the HTTP Get method on the link for the relation “first”.
Declaration
public RequestTasks GetRequestTasksFromFirstRelation()
Returns
Type | Description |
---|---|
RequestTasks | The content of the response. |
GetRequestTasksFromFirstRelationAsync()
Calls the HTTP Get method on the link for the relation “first” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> GetRequestTasksFromFirstRelationAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> | A task which runs the request. |
Remarks
This method follows the link for the relation “first”.
GetRequestTasksFromFirstRelationAsync(System.Threading.CancellationToken)
Calls the HTTP Get method on the link for the relation “first” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> GetRequestTasksFromFirstRelationAsync(System.Threading.CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | The cancellation token to cancel the request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> | A task which runs the request. |
Remarks
This method follows the link for the relation “first”.
GetRequestTasksFromNextRelation()
Calls the HTTP Get method on the link for the relation “next”.
Declaration
public RequestTasks GetRequestTasksFromNextRelation()
Returns
Type | Description |
---|---|
RequestTasks | The content of the response. |
GetRequestTasksFromNextRelationAsync()
Calls the HTTP Get method on the link for the relation “next” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> GetRequestTasksFromNextRelationAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> | A task which runs the request. |
Remarks
This method follows the link for the relation “next”.
GetRequestTasksFromNextRelationAsync(System.Threading.CancellationToken)
Calls the HTTP Get method on the link for the relation “next” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> GetRequestTasksFromNextRelationAsync(System.Threading.CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | The cancellation token to cancel the request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> | A task which runs the request. |
Remarks
This method follows the link for the relation “next”.
GetRequestTasksFromPrevRelation()
Calls the HTTP Get method on the link for the relation “prev”.
Declaration
public RequestTasks GetRequestTasksFromPrevRelation()
Returns
Type | Description |
---|---|
RequestTasks | The content of the response. |
GetRequestTasksFromPrevRelationAsync()
Calls the HTTP Get method on the link for the relation “prev” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> GetRequestTasksFromPrevRelationAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> | A task which runs the request. |
Remarks
This method follows the link for the relation “prev”.
GetRequestTasksFromPrevRelationAsync(System.Threading.CancellationToken)
Calls the HTTP Get method on the link for the relation “prev” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> GetRequestTasksFromPrevRelationAsync(System.Threading.CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | The cancellation token to cancel the request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> | A task which runs the request. |
Remarks
This method follows the link for the relation “prev”.
GetRequestTasksFromSelfRelation()
Calls the HTTP Get method on the link for the relation “self”.
Declaration
public RequestTasks GetRequestTasksFromSelfRelation()
Returns
Type | Description |
---|---|
RequestTasks | The content of the response. |
GetRequestTasksFromSelfRelationAsync()
Calls the HTTP Get method on the link for the relation “self” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> GetRequestTasksFromSelfRelationAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> | A task which runs the request. |
Remarks
This method follows the link for the relation “self”.
GetRequestTasksFromSelfRelationAsync(System.Threading.CancellationToken)
Calls the HTTP Get method on the link for the relation “self” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> GetRequestTasksFromSelfRelationAsync(System.Threading.CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | The cancellation token to cancel the request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTasks>> | A task which runs the request. |
Remarks
This method follows the link for the relation “self”.
SetProxy(HttpClientProxy)
Sets the HTTP communication proxy which is used in further HTTP communication.
Declaration
public void SetProxy(HttpClientProxy proxy)
Parameters
Type | Name | Description |
---|---|---|
HttpClientProxy | proxy | The |
Remarks
The HTTP proxy is used to handle the HTTP requests which are created by this instance. The proxy is used in case a request is sent to a URL which is resolved from a link.