Class UserInfo
- Namespace
- DocuWare.Platform.ServerClient
- Assembly
- DocuWare.Platform.ServerClient.dll
Information related to a user
public class UserInfo : IRelationsWithProxy, IRelations, IHttpClientProxy
- Inheritance
-
UserInfo
- Implements
- Inherited Members
Properties
Links
public Link[] Links { get; set; }
Property Value
| Type | Description |
|---|---|
| Link[] |
LoginInfo
Details about user login
public LoginInfo LoginInfo { get; set; }
Property Value
| Type | Description |
|---|---|
| LoginInfo |
User
User details and settings
public User User { get; set; }
Property Value
| Type | Description |
|---|---|
| User |
ValidateRelationLink
Gets the Uri of the link for the relation “validate”.
[Dolphin]
public string ValidateRelationLink { get; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Returns the uri of the link for the relation “validate” if it exists, or
Methods
PostToValidateRelationForString(UserValidation)
Calls the HTTP Post method on the link for the relation “validate”.
[Dolphin]
public string PostToValidateRelationForString(UserValidation dataToSend)
Parameters
| Type | Name | Description |
|---|---|---|
| UserValidation | dataToSend | The data to send. This data is written into the request body. |
Returns
| Type | Description |
|---|---|
| string | The content of the response. |
PostToValidateRelationForStringAsync(UserValidation)
Calls the HTTP Post method on the link for the relation “validate” asynchronously.
[Dolphin]
public Task<DeserializedHttpResponse<string>> PostToValidateRelationForStringAsync(UserValidation dataToSend)
Parameters
| Type | Name | Description |
|---|---|---|
| UserValidation | dataToSend | The data to send. This data is written into the request body. |
Returns
| Type | Description |
|---|---|
| Task<DeserializedHttpResponse<string>> | A task which runs the request. |
Remarks
This method follows the link for the relation “validate”.
PostToValidateRelationForStringAsync(CancellationToken, UserValidation)
Calls the HTTP Post method on the link for the relation “validate” asynchronously.
[Dolphin]
public Task<DeserializedHttpResponse<string>> PostToValidateRelationForStringAsync(CancellationToken cancellationToken, UserValidation dataToSend)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | The cancellation token to cancel the request. |
| UserValidation | dataToSend | The data to send. This data is written into the request body. |
Returns
| Type | Description |
|---|---|
| Task<DeserializedHttpResponse<string>> | A task which runs the request. |
Remarks
This method follows the link for the relation “validate”.
SetProxy(HttpClientProxy)
Sets the HTTP communication proxy which is used in further HTTP communication.
public void SetProxy(HttpClientProxy proxy)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpClientProxy | proxy | The HttpClient instance which is used in further HTTP communication. |
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.