Table of Contents

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

public Link[] Links { get; set; }

Property Value

TypeDescription
Link[]

LoginInfo

Details about user login

public LoginInfo LoginInfo { get; set; }

Property Value

TypeDescription
LoginInfo

User

User details and settings

public User User { get; set; }

Property Value

TypeDescription
User

Gets the Uri of the link for the relation “validate”.

[Dolphin]
public string ValidateRelationLink { get; }

Property Value

TypeDescription
string

Returns the uri of the link for the relation “validate” if it exists, or null if this link does not exist. The returned link can be absolute or relative. If it is a relative link you must set it in the right context yourself.

Methods

PostToValidateRelationForString(UserValidation)

Calls the HTTP Post method on the link for the relation “validate”.

[Dolphin]
public string PostToValidateRelationForString(UserValidation dataToSend)

Parameters

TypeNameDescription
UserValidationdataToSend

The data to send. This data is written into the request body.

Returns

TypeDescription
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

TypeNameDescription
UserValidationdataToSend

The data to send. This data is written into the request body.

Returns

TypeDescription
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

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

UserValidationdataToSend

The data to send. This data is written into the request body.

Returns

TypeDescription
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

TypeNameDescription
HttpClientProxyproxy

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.