Class DatanormConversionClient
Inheritance
System.Object
DatanormConversionClient
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dangl.AVACloud.Client
Assembly: Dangl.AVACloud.Client.dll
Syntax
public class DatanormConversionClient
Constructors
| Improve this Doc View SourceDatanormConversionClient(String, HttpClient)
Declaration
public DatanormConversionClient(string baseUrl, HttpClient httpClient)
Parameters
Type | Name | Description |
---|---|---|
System.String | baseUrl | |
System.Net.Http.HttpClient | httpClient |
Properties
| Improve this Doc View SourceBaseUrl
Declaration
public string BaseUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
JsonSerializerSettings
Declaration
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
Type | Description |
---|---|
Newtonsoft.Json.JsonSerializerSettings |
ReadResponseAsString
Declaration
public bool ReadResponseAsString { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceConvertToAvaAsync(FileParameter, Nullable<Boolean>, Nullable<Boolean>)
Converts Datanorm files to Dangl.AVA projects
Declaration
public virtual Task<ProjectDto> ConvertToAvaAsync(FileParameter datanormFile, bool? removePlainTextLongTexts, bool? removeHtmlLongTexts)
Parameters
Type | Name | Description |
---|---|---|
FileParameter | datanormFile | The input file |
System.Nullable<System.Boolean> | removePlainTextLongTexts | If set to true, plain text long texts will be removed from the output to reduce response sizes |
System.Nullable<System.Boolean> | removeHtmlLongTexts | If set to true, html long texts will be removed from the output to reduce response sizes |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Dangl.AVA.IO.Dto.v1.ProjectDto> |
Exceptions
Type | Condition |
---|---|
SwaggerException | A server side error occurred. |
ConvertToAvaAsync(FileParameter, Nullable<Boolean>, Nullable<Boolean>, CancellationToken)
Converts Datanorm files to Dangl.AVA projects
Declaration
public virtual async Task<ProjectDto> ConvertToAvaAsync(FileParameter datanormFile, bool? removePlainTextLongTexts, bool? removeHtmlLongTexts, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
FileParameter | datanormFile | The input file |
System.Nullable<System.Boolean> | removePlainTextLongTexts | If set to true, plain text long texts will be removed from the output to reduce response sizes |
System.Nullable<System.Boolean> | removeHtmlLongTexts | If set to true, html long texts will be removed from the output to reduce response sizes |
System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Dangl.AVA.IO.Dto.v1.ProjectDto> |
Exceptions
Type | Condition |
---|---|
SwaggerException | A server side error occurred. |
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>, CancellationToken)
Declaration
protected virtual async Task<DatanormConversionClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpResponseMessage | response | |
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Collections.Generic.IEnumerable<System.String>> | headers | |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DatanormConversionClient.ObjectResponseResult<T>> |
Type Parameters
Name | Description |
---|---|
T |