From 3cfbb39edec84acd35662f5b6c0e51a80448b633 Mon Sep 17 00:00:00 2001 From: Ali Yousefi Date: Sun, 7 Jan 2024 23:15:42 +0330 Subject: [PATCH] update client --- .../OpenAPI.cs | 3868 ++++++++++++----- .../OpenAPI.nswag.json | 1008 ++++- ...mplateGeneratorMicroservice.Clients.csproj | 2 +- 3 files changed, 3862 insertions(+), 1016 deletions(-) diff --git a/src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.Clients/Connected Services/TemplateGeneratorGeneratedServices/OpenAPI.cs b/src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.Clients/Connected Services/TemplateGeneratorGeneratedServices/OpenAPI.cs index f230073..cf3f16c 100644 --- a/src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.Clients/Connected Services/TemplateGeneratorGeneratedServices/OpenAPI.cs +++ b/src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.Clients/Connected Services/TemplateGeneratorGeneratedServices/OpenAPI.cs @@ -5548,13 +5548,13 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormValuesClient : EasyMicroservices.Cores.Clients.CoreSwaggerClientBase + public partial class FormItemEventClient : EasyMicroservices.Cores.Clients.CoreSwaggerClientBase { private string _baseUrl = ""; private System.Net.Http.HttpClient _httpClient; private System.Lazy _settings; - public FormValuesClient(string baseUrl, System.Net.Http.HttpClient httpClient) + public FormItemEventClient(string baseUrl, System.Net.Http.HttpClient httpClient) { BaseUrl = baseUrl; _httpClient = httpClient; @@ -5584,7 +5584,7 @@ public string BaseUrl /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task AddAsync(FormValuesContract body) + public virtual System.Threading.Tasks.Task AddAsync(FormItemEventContract body) { return AddAsync(body, System.Threading.CancellationToken.None); } @@ -5592,88 +5592,10 @@ public virtual System.Threading.Tasks.Task AddAsync(FormVa /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task AddAsync(FormValuesContract body, System.Threading.CancellationToken cancellationToken) - { - var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/Add"); - - var client_ = _httpClient; - var disposeClient_ = false; - try - { - using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) - { - var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); - var content_ = new System.Net.Http.StringContent(json_); - content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - request_.Content = content_; - request_.Method = new System.Net.Http.HttpMethod("POST"); - request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); - - PrepareRequest(client_, request_, urlBuilder_); - - var url_ = urlBuilder_.ToString(); - request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); - - PrepareRequest(client_, request_, url_); - - var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); - var disposeResponse_ = true; - try - { - var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); - if (response_.Content != null && response_.Content.Headers != null) - { - foreach (var item_ in response_.Content.Headers) - headers_[item_.Key] = item_.Value; - } - - ProcessResponse(client_, response_); - - var status_ = (int)response_.StatusCode; - if (status_ == 200) - { - var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); - if (objectResponse_.Object == null) - { - throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); - } - return objectResponse_.Object; - } - else - { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); - throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); - } - } - finally - { - if (disposeResponse_) - response_.Dispose(); - } - } - } - finally - { - if (disposeClient_) - client_.Dispose(); - } - } - - /// Success - /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetBiggestAutoIncrementNumberAsync(GetByUniqueIdentityRequestContract body) - { - return GetBiggestAutoIncrementNumberAsync(body, System.Threading.CancellationToken.None); - } - - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// Success - /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetBiggestAutoIncrementNumberAsync(GetByUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task AddAsync(FormItemEventContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/GetBiggestAutoIncrementNumber"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/Add"); var client_ = _httpClient; var disposeClient_ = false; @@ -5740,7 +5662,7 @@ public virtual async System.Threading.Tasks.Task GetBigges /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task AddBulkAsync(FormValuesContractCreateBulkRequestContract body) + public virtual System.Threading.Tasks.Task AddBulkAsync(FormItemEventContractCreateBulkRequestContract body) { return AddBulkAsync(body, System.Threading.CancellationToken.None); } @@ -5748,10 +5670,10 @@ public virtual System.Threading.Tasks.Task AddBulkAsync(FormVal /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task AddBulkAsync(FormValuesContractCreateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task AddBulkAsync(FormItemEventContractCreateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/AddBulk"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/AddBulk"); var client_ = _httpClient; var disposeClient_ = false; @@ -5818,7 +5740,7 @@ public virtual async System.Threading.Tasks.Task AddBulkAsync(F /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task UpdateAsync(FormValuesContract body) + public virtual System.Threading.Tasks.Task UpdateAsync(FormItemEventContract body) { return UpdateAsync(body, System.Threading.CancellationToken.None); } @@ -5826,10 +5748,10 @@ public virtual System.Threading.Tasks.Task Up /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task UpdateAsync(FormValuesContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task UpdateAsync(FormItemEventContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/Update"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/Update"); var client_ = _httpClient; var disposeClient_ = false; @@ -5867,7 +5789,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -5896,7 +5818,7 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task UpdateChangedValuesOnlyAsync(FormValuesContract body) + public virtual System.Threading.Tasks.Task UpdateChangedValuesOnlyAsync(FormItemEventContract body) { return UpdateChangedValuesOnlyAsync(body, System.Threading.CancellationToken.None); } @@ -5904,10 +5826,10 @@ public virtual System.Threading.Tasks.Task Up /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task UpdateChangedValuesOnlyAsync(FormValuesContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task UpdateChangedValuesOnlyAsync(FormItemEventContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/UpdateChangedValuesOnly"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/UpdateChangedValuesOnly"); var client_ = _httpClient; var disposeClient_ = false; @@ -5945,7 +5867,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -5974,7 +5896,7 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task UpdateBulkAsync(FormValuesContractUpdateBulkRequestContract body) + public virtual System.Threading.Tasks.Task UpdateBulkAsync(FormItemEventContractUpdateBulkRequestContract body) { return UpdateBulkAsync(body, System.Threading.CancellationToken.None); } @@ -5982,10 +5904,10 @@ public virtual System.Threading.Tasks.Task UpdateBulkAsync(Form /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task UpdateBulkAsync(FormValuesContractUpdateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task UpdateBulkAsync(FormItemEventContractUpdateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/UpdateBulk"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/UpdateBulk"); var client_ = _httpClient; var disposeClient_ = false; @@ -6052,7 +5974,7 @@ public virtual async System.Threading.Tasks.Task UpdateBulkAsyn /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task UpdateBulkChangedValuesOnlyAsync(FormValuesContractUpdateBulkRequestContract body) + public virtual System.Threading.Tasks.Task UpdateBulkChangedValuesOnlyAsync(FormItemEventContractUpdateBulkRequestContract body) { return UpdateBulkChangedValuesOnlyAsync(body, System.Threading.CancellationToken.None); } @@ -6060,10 +5982,10 @@ public virtual System.Threading.Tasks.Task UpdateBulkChangedVal /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task UpdateBulkChangedValuesOnlyAsync(FormValuesContractUpdateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task UpdateBulkChangedValuesOnlyAsync(FormItemEventContractUpdateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/UpdateBulkChangedValuesOnly"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/UpdateBulkChangedValuesOnly"); var client_ = _httpClient; var disposeClient_ = false; @@ -6141,7 +6063,7 @@ public virtual System.Threading.Tasks.Task HardDeleteByIdAsync( public virtual async System.Threading.Tasks.Task HardDeleteByIdAsync(Int64DeleteRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/HardDeleteById"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/HardDeleteById"); var client_ = _httpClient; var disposeClient_ = false; @@ -6219,7 +6141,7 @@ public virtual System.Threading.Tasks.Task HardDeleteBulkByIdsA public virtual async System.Threading.Tasks.Task HardDeleteBulkByIdsAsync(Int64DeleteBulkRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/HardDeleteBulkByIds"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/HardDeleteBulkByIds"); var client_ = _httpClient; var disposeClient_ = false; @@ -6297,7 +6219,7 @@ public virtual System.Threading.Tasks.Task SoftDeleteByIdAsync( public virtual async System.Threading.Tasks.Task SoftDeleteByIdAsync(Int64SoftDeleteRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/SoftDeleteById"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/SoftDeleteById"); var client_ = _httpClient; var disposeClient_ = false; @@ -6375,7 +6297,7 @@ public virtual System.Threading.Tasks.Task SoftDeleteBulkByIdsA public virtual async System.Threading.Tasks.Task SoftDeleteBulkByIdsAsync(Int64SoftDeleteBulkRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/SoftDeleteBulkByIds"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/SoftDeleteBulkByIds"); var client_ = _httpClient; var disposeClient_ = false; @@ -6442,7 +6364,7 @@ public virtual async System.Threading.Tasks.Task SoftDeleteBulk /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetByIdAsync(Int64GetByIdRequestContract body) + public virtual System.Threading.Tasks.Task GetByIdAsync(Int64GetByIdRequestContract body) { return GetByIdAsync(body, System.Threading.CancellationToken.None); } @@ -6450,10 +6372,10 @@ public virtual System.Threading.Tasks.Task Ge /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetByIdAsync(Int64GetByIdRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetByIdAsync(Int64GetByIdRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/GetById"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/GetById"); var client_ = _httpClient; var disposeClient_ = false; @@ -6491,7 +6413,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -6520,7 +6442,7 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body) + public virtual System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body) { return GetByUniqueIdentityAsync(body, System.Threading.CancellationToken.None); } @@ -6528,10 +6450,10 @@ public virtual System.Threading.Tasks.Task Ge /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/GetByUniqueIdentity"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/GetByUniqueIdentity"); var client_ = _httpClient; var disposeClient_ = false; @@ -6569,7 +6491,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -6598,7 +6520,7 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetByAsync(Int64GetByRequestContract body) + public virtual System.Threading.Tasks.Task GetByAsync(Int64GetByRequestContract body) { return GetByAsync(body, System.Threading.CancellationToken.None); } @@ -6606,10 +6528,10 @@ public virtual System.Threading.Tasks.Task Ge /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetByAsync(Int64GetByRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetByAsync(Int64GetByRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/GetBy"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/GetBy"); var client_ = _httpClient; var disposeClient_ = false; @@ -6647,7 +6569,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -6676,7 +6598,7 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task FilterAsync(FilterRequestContract body) + public virtual System.Threading.Tasks.Task FilterAsync(FilterRequestContract body) { return FilterAsync(body, System.Threading.CancellationToken.None); } @@ -6684,10 +6606,10 @@ public virtual System.Threading.Tasks.TaskA cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task FilterAsync(FilterRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task FilterAsync(FilterRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/Filter"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/Filter"); var client_ = _httpClient; var disposeClient_ = false; @@ -6725,7 +6647,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -6754,7 +6676,7 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetAllAsync() + public virtual System.Threading.Tasks.Task GetAllAsync() { return GetAllAsync(System.Threading.CancellationToken.None); } @@ -6762,10 +6684,10 @@ public virtual System.Threading.Tasks.TaskA cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetAllAsync(System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetAllAsync(System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/GetAll"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/GetAll"); var client_ = _httpClient; var disposeClient_ = false; @@ -6799,7 +6721,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -6828,7 +6750,7 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body) + public virtual System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body) { return GetAllByUniqueIdentityAsync(body, System.Threading.CancellationToken.None); } @@ -6836,10 +6758,10 @@ public virtual System.Threading.Tasks.TaskA cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/GetAllByUniqueIdentity"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormItemEvent/GetAllByUniqueIdentity"); var client_ = _httpClient; var disposeClient_ = false; @@ -6877,7 +6799,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -7008,13 +6930,13 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class NoParentFormItemClient : EasyMicroservices.Cores.Clients.CoreSwaggerClientBase + public partial class FormValuesClient : EasyMicroservices.Cores.Clients.CoreSwaggerClientBase { private string _baseUrl = ""; private System.Net.Http.HttpClient _httpClient; private System.Lazy _settings; - public NoParentFormItemClient(string baseUrl, System.Net.Http.HttpClient httpClient) + public FormValuesClient(string baseUrl, System.Net.Http.HttpClient httpClient) { BaseUrl = baseUrl; _httpClient = httpClient; @@ -7044,18 +6966,18 @@ public string BaseUrl /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetByIdAsync(Int64GetByIdRequestContract body) + public virtual System.Threading.Tasks.Task AddAsync(FormValuesContract body) { - return GetByIdAsync(body, System.Threading.CancellationToken.None); + return AddAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetByIdAsync(Int64GetByIdRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task AddAsync(FormValuesContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/GetById"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/Add"); var client_ = _httpClient; var disposeClient_ = false; @@ -7093,7 +7015,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -7122,18 +7044,18 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task FilterAsync(FilterRequestContract body) + public virtual System.Threading.Tasks.Task GetBiggestAutoIncrementNumberAsync(GetByUniqueIdentityRequestContract body) { - return FilterAsync(body, System.Threading.CancellationToken.None); + return GetBiggestAutoIncrementNumberAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task FilterAsync(FilterRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetBiggestAutoIncrementNumberAsync(GetByUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/Filter"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/GetBiggestAutoIncrementNumber"); var client_ = _httpClient; var disposeClient_ = false; @@ -7171,7 +7093,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -7200,18 +7122,18 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task UpdateChangedValuesOnlyAsync(UpdateFormItemRequestContract body) + public virtual System.Threading.Tasks.Task AddBulkAsync(FormValuesContractCreateBulkRequestContract body) { - return UpdateChangedValuesOnlyAsync(body, System.Threading.CancellationToken.None); + return AddBulkAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task UpdateChangedValuesOnlyAsync(UpdateFormItemRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task AddBulkAsync(FormValuesContractCreateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/UpdateChangedValuesOnly"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/AddBulk"); var client_ = _httpClient; var disposeClient_ = false; @@ -7223,7 +7145,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -7278,18 +7200,18 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task AddAsync(CreateFormItemRequestContract body) + public virtual System.Threading.Tasks.Task UpdateAsync(FormValuesContract body) { - return AddAsync(body, System.Threading.CancellationToken.None); + return UpdateAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task AddAsync(CreateFormItemRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task UpdateAsync(FormValuesContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/Add"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/Update"); var client_ = _httpClient; var disposeClient_ = false; @@ -7301,7 +7223,7 @@ public virtual async System.Threading.Tasks.Task AddAsync( var content_ = new System.Net.Http.StringContent(json_); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; - request_.Method = new System.Net.Http.HttpMethod("POST"); + request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); PrepareRequest(client_, request_, urlBuilder_); @@ -7327,7 +7249,7 @@ public virtual async System.Threading.Tasks.Task AddAsync( var status_ = (int)response_.StatusCode; if (status_ == 200) { - var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -7356,18 +7278,18 @@ public virtual async System.Threading.Tasks.Task AddAsync( /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task AddBulkAsync(CreateFormItemRequestContractCreateBulkRequestContract body) + public virtual System.Threading.Tasks.Task UpdateChangedValuesOnlyAsync(FormValuesContract body) { - return AddBulkAsync(body, System.Threading.CancellationToken.None); + return UpdateChangedValuesOnlyAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task AddBulkAsync(CreateFormItemRequestContractCreateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task UpdateChangedValuesOnlyAsync(FormValuesContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/AddBulk"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/UpdateChangedValuesOnly"); var client_ = _httpClient; var disposeClient_ = false; @@ -7379,7 +7301,7 @@ public virtual async System.Threading.Tasks.Task AddBulkAsync(C var content_ = new System.Net.Http.StringContent(json_); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; - request_.Method = new System.Net.Http.HttpMethod("POST"); + request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); PrepareRequest(client_, request_, urlBuilder_); @@ -7405,7 +7327,7 @@ public virtual async System.Threading.Tasks.Task AddBulkAsync(C var status_ = (int)response_.StatusCode; if (status_ == 200) { - var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -7434,18 +7356,18 @@ public virtual async System.Threading.Tasks.Task AddBulkAsync(C /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task UpdateAsync(UpdateFormItemRequestContract body) + public virtual System.Threading.Tasks.Task UpdateBulkAsync(FormValuesContractUpdateBulkRequestContract body) { - return UpdateAsync(body, System.Threading.CancellationToken.None); + return UpdateBulkAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task UpdateAsync(UpdateFormItemRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task UpdateBulkAsync(FormValuesContractUpdateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/Update"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/UpdateBulk"); var client_ = _httpClient; var disposeClient_ = false; @@ -7483,7 +7405,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -7512,18 +7434,18 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task UpdateBulkAsync(UpdateFormItemRequestContractUpdateBulkRequestContract body) + public virtual System.Threading.Tasks.Task UpdateBulkChangedValuesOnlyAsync(FormValuesContractUpdateBulkRequestContract body) { - return UpdateBulkAsync(body, System.Threading.CancellationToken.None); + return UpdateBulkChangedValuesOnlyAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task UpdateBulkAsync(UpdateFormItemRequestContractUpdateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task UpdateBulkChangedValuesOnlyAsync(FormValuesContractUpdateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/UpdateBulk"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/UpdateBulkChangedValuesOnly"); var client_ = _httpClient; var disposeClient_ = false; @@ -7590,18 +7512,18 @@ public virtual async System.Threading.Tasks.Task UpdateBulkAsyn /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task UpdateBulkChangedValuesOnlyAsync(UpdateFormItemRequestContractUpdateBulkRequestContract body) + public virtual System.Threading.Tasks.Task HardDeleteByIdAsync(Int64DeleteRequestContract body) { - return UpdateBulkChangedValuesOnlyAsync(body, System.Threading.CancellationToken.None); + return HardDeleteByIdAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task UpdateBulkChangedValuesOnlyAsync(UpdateFormItemRequestContractUpdateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task HardDeleteByIdAsync(Int64DeleteRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/UpdateBulkChangedValuesOnly"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/HardDeleteById"); var client_ = _httpClient; var disposeClient_ = false; @@ -7613,7 +7535,7 @@ public virtual async System.Threading.Tasks.Task UpdateBulkChan var content_ = new System.Net.Http.StringContent(json_); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; - request_.Method = new System.Net.Http.HttpMethod("PUT"); + request_.Method = new System.Net.Http.HttpMethod("DELETE"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); PrepareRequest(client_, request_, urlBuilder_); @@ -7668,18 +7590,18 @@ public virtual async System.Threading.Tasks.Task UpdateBulkChan /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task HardDeleteByIdAsync(Int64DeleteRequestContract body) + public virtual System.Threading.Tasks.Task HardDeleteBulkByIdsAsync(Int64DeleteBulkRequestContract body) { - return HardDeleteByIdAsync(body, System.Threading.CancellationToken.None); + return HardDeleteBulkByIdsAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task HardDeleteByIdAsync(Int64DeleteRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task HardDeleteBulkByIdsAsync(Int64DeleteBulkRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/HardDeleteById"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/HardDeleteBulkByIds"); var client_ = _httpClient; var disposeClient_ = false; @@ -7746,18 +7668,18 @@ public virtual async System.Threading.Tasks.Task HardDeleteById /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task HardDeleteBulkByIdsAsync(Int64DeleteBulkRequestContract body) + public virtual System.Threading.Tasks.Task SoftDeleteByIdAsync(Int64SoftDeleteRequestContract body) { - return HardDeleteBulkByIdsAsync(body, System.Threading.CancellationToken.None); + return SoftDeleteByIdAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task HardDeleteBulkByIdsAsync(Int64DeleteBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task SoftDeleteByIdAsync(Int64SoftDeleteRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/HardDeleteBulkByIds"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/SoftDeleteById"); var client_ = _httpClient; var disposeClient_ = false; @@ -7824,18 +7746,18 @@ public virtual async System.Threading.Tasks.Task HardDeleteBulk /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task SoftDeleteByIdAsync(Int64SoftDeleteRequestContract body) + public virtual System.Threading.Tasks.Task SoftDeleteBulkByIdsAsync(Int64SoftDeleteBulkRequestContract body) { - return SoftDeleteByIdAsync(body, System.Threading.CancellationToken.None); + return SoftDeleteBulkByIdsAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task SoftDeleteByIdAsync(Int64SoftDeleteRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task SoftDeleteBulkByIdsAsync(Int64SoftDeleteBulkRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/SoftDeleteById"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/SoftDeleteBulkByIds"); var client_ = _httpClient; var disposeClient_ = false; @@ -7902,18 +7824,18 @@ public virtual async System.Threading.Tasks.Task SoftDeleteById /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task SoftDeleteBulkByIdsAsync(Int64SoftDeleteBulkRequestContract body) + public virtual System.Threading.Tasks.Task GetByIdAsync(Int64GetByIdRequestContract body) { - return SoftDeleteBulkByIdsAsync(body, System.Threading.CancellationToken.None); + return GetByIdAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task SoftDeleteBulkByIdsAsync(Int64SoftDeleteBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetByIdAsync(Int64GetByIdRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/SoftDeleteBulkByIds"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/GetById"); var client_ = _httpClient; var disposeClient_ = false; @@ -7925,7 +7847,7 @@ public virtual async System.Threading.Tasks.Task SoftDeleteBulk var content_ = new System.Net.Http.StringContent(json_); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; - request_.Method = new System.Net.Http.HttpMethod("DELETE"); + request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); PrepareRequest(client_, request_, urlBuilder_); @@ -7951,7 +7873,7 @@ public virtual async System.Threading.Tasks.Task SoftDeleteBulk var status_ = (int)response_.StatusCode; if (status_ == 200) { - var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -7980,7 +7902,7 @@ public virtual async System.Threading.Tasks.Task SoftDeleteBulk /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body) + public virtual System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body) { return GetByUniqueIdentityAsync(body, System.Threading.CancellationToken.None); } @@ -7988,10 +7910,10 @@ public virtual System.Threading.Tasks.Task GetB /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/GetByUniqueIdentity"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/GetByUniqueIdentity"); var client_ = _httpClient; var disposeClient_ = false; @@ -8029,7 +7951,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -8058,7 +7980,7 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetByAsync(Int64GetByRequestContract body) + public virtual System.Threading.Tasks.Task GetByAsync(Int64GetByRequestContract body) { return GetByAsync(body, System.Threading.CancellationToken.None); } @@ -8066,10 +7988,10 @@ public virtual System.Threading.Tasks.Task GetB /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetByAsync(Int64GetByRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetByAsync(Int64GetByRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/GetBy"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/GetBy"); var client_ = _httpClient; var disposeClient_ = false; @@ -8107,7 +8029,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -8136,7 +8058,85 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetAllAsync() + public virtual System.Threading.Tasks.Task FilterAsync(FilterRequestContract body) + { + return FilterAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task FilterAsync(FilterRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/Filter"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("POST"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task GetAllAsync() { return GetAllAsync(System.Threading.CancellationToken.None); } @@ -8144,10 +8144,10 @@ public virtual System.Threading.Tasks.Task /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetAllAsync(System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetAllAsync(System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/GetAll"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/GetAll"); var client_ = _httpClient; var disposeClient_ = false; @@ -8181,7 +8181,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -8210,7 +8210,7 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body) + public virtual System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body) { return GetAllByUniqueIdentityAsync(body, System.Threading.CancellationToken.None); } @@ -8218,10 +8218,10 @@ public virtual System.Threading.Tasks.Task /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/GetAllByUniqueIdentity"); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/GetAllByUniqueIdentity"); var client_ = _httpClient; var disposeClient_ = false; @@ -8259,7 +8259,7 @@ public virtual async System.Threading.Tasks.Task(response_, headers_, cancellationToken).ConfigureAwait(false); + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); if (objectResponse_.Object == null) { throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); @@ -8389,136 +8389,1518 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu } } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class ActionContract : System.ComponentModel.INotifyPropertyChanged + [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class NoParentFormItemClient : EasyMicroservices.Cores.Clients.CoreSwaggerClientBase { - private long _id; - private string _jobName; - private int _orderIndex; - private long? _parentId; - private System.Collections.Generic.ICollection _children; - - [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long Id - { - get { return _id; } - - set - { - if (_id != value) - { - _id = value; - RaisePropertyChanged(); - } - } - } + private string _baseUrl = ""; + private System.Net.Http.HttpClient _httpClient; + private System.Lazy _settings; - [Newtonsoft.Json.JsonProperty("jobName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string JobName + public NoParentFormItemClient(string baseUrl, System.Net.Http.HttpClient httpClient) { - get { return _jobName; } - - set - { - if (_jobName != value) - { - _jobName = value; - RaisePropertyChanged(); - } - } + BaseUrl = baseUrl; + _httpClient = httpClient; + _settings = new System.Lazy(CreateSerializerSettings, true); } - [Newtonsoft.Json.JsonProperty("orderIndex", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public int OrderIndex + private Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings() { - get { return _orderIndex; } - - set - { - if (_orderIndex != value) - { - _orderIndex = value; - RaisePropertyChanged(); - } - } + var settings = new EasyMicroservices.Cores.Clients.CoreSerializerSettings(new Newtonsoft.Json.JsonSerializerSettings { }); + UpdateJsonSerializerSettings(settings); + return settings; } - [Newtonsoft.Json.JsonProperty("parentId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long? ParentId + public string BaseUrl { - get { return _parentId; } - - set - { - if (_parentId != value) - { - _parentId = value; - RaisePropertyChanged(); - } - } + get { return _baseUrl; } + set { _baseUrl = value; } } - [Newtonsoft.Json.JsonProperty("children", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Children - { - get { return _children; } + public Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get { return _settings.Value; } } - set - { - if (_children != value) - { - _children = value; - RaisePropertyChanged(); - } - } - } + partial void UpdateJsonSerializerSettings(Newtonsoft.Json.JsonSerializerSettings settings); - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, string url); + partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, System.Text.StringBuilder urlBuilder); + partial void ProcessResponse(System.Net.Http.HttpClient client, System.Net.Http.HttpResponseMessage response); - protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task GetByIdAsync(Int64GetByIdRequestContract body) { - var handler = PropertyChanged; - if (handler != null) - handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + return GetByIdAsync(body, System.Threading.CancellationToken.None); } - } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class ActionContractCreateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged - { - private System.Collections.Generic.ICollection _items; - - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Items + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task GetByIdAsync(Int64GetByIdRequestContract body, System.Threading.CancellationToken cancellationToken) { - get { return _items; } + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/GetById"); - set + var client_ = _httpClient; + var disposeClient_ = false; + try { - if (_items != value) + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) { - _items = value; - RaisePropertyChanged(); - } - } - } + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("POST"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + PrepareRequest(client_, request_, urlBuilder_); - protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) - { - var handler = PropertyChanged; - if (handler != null) - handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class ActionContractListMessageContract : System.ComponentModel.INotifyPropertyChanged - { - private bool _isSuccess; - private ErrorContract _error; - private SuccessContract _success; + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task FilterAsync(FilterRequestContract body) + { + return FilterAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task FilterAsync(FilterRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/Filter"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("POST"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task UpdateChangedValuesOnlyAsync(UpdateFormItemRequestContract body) + { + return UpdateChangedValuesOnlyAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task UpdateChangedValuesOnlyAsync(UpdateFormItemRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/UpdateChangedValuesOnly"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("PUT"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task AddAsync(CreateFormItemRequestContract body) + { + return AddAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task AddAsync(CreateFormItemRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/Add"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("POST"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task AddBulkAsync(CreateFormItemRequestContractCreateBulkRequestContract body) + { + return AddBulkAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task AddBulkAsync(CreateFormItemRequestContractCreateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/AddBulk"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("POST"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task UpdateAsync(UpdateFormItemRequestContract body) + { + return UpdateAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task UpdateAsync(UpdateFormItemRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/Update"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("PUT"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task UpdateBulkAsync(UpdateFormItemRequestContractUpdateBulkRequestContract body) + { + return UpdateBulkAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task UpdateBulkAsync(UpdateFormItemRequestContractUpdateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/UpdateBulk"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("PUT"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task UpdateBulkChangedValuesOnlyAsync(UpdateFormItemRequestContractUpdateBulkRequestContract body) + { + return UpdateBulkChangedValuesOnlyAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task UpdateBulkChangedValuesOnlyAsync(UpdateFormItemRequestContractUpdateBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/UpdateBulkChangedValuesOnly"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("PUT"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task HardDeleteByIdAsync(Int64DeleteRequestContract body) + { + return HardDeleteByIdAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task HardDeleteByIdAsync(Int64DeleteRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/HardDeleteById"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("DELETE"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task HardDeleteBulkByIdsAsync(Int64DeleteBulkRequestContract body) + { + return HardDeleteBulkByIdsAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task HardDeleteBulkByIdsAsync(Int64DeleteBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/HardDeleteBulkByIds"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("DELETE"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task SoftDeleteByIdAsync(Int64SoftDeleteRequestContract body) + { + return SoftDeleteByIdAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task SoftDeleteByIdAsync(Int64SoftDeleteRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/SoftDeleteById"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("DELETE"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task SoftDeleteBulkByIdsAsync(Int64SoftDeleteBulkRequestContract body) + { + return SoftDeleteBulkByIdsAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task SoftDeleteBulkByIdsAsync(Int64SoftDeleteBulkRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/SoftDeleteBulkByIds"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("DELETE"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body) + { + return GetByUniqueIdentityAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/GetByUniqueIdentity"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("POST"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task GetByAsync(Int64GetByRequestContract body) + { + return GetByAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task GetByAsync(Int64GetByRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/GetBy"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("POST"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task GetAllAsync() + { + return GetAllAsync(System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task GetAllAsync(System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/GetAll"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + request_.Method = new System.Net.Http.HttpMethod("GET"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body) + { + return GetAllByUniqueIdentityAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetByUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/NoParentFormItem/GetAllByUniqueIdentity"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false)) + { + var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value); + var content_ = new System.Net.Http.StringContent(json_); + content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + request_.Content = content_; + request_.Method = new System.Net.Http.HttpMethod("POST"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value); + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + protected struct ObjectResponseResult + { + public ObjectResponseResult(T responseObject, string responseText) + { + this.Object = responseObject; + this.Text = responseText; + } + + public T Object { get; } + + public string Text { get; } + } + + public bool ReadResponseAsString { get; set; } + + protected virtual async System.Threading.Tasks.Task> ReadObjectResponseAsync(System.Net.Http.HttpResponseMessage response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Threading.CancellationToken cancellationToken) + { + if (response == null || response.Content == null) + { + return new ObjectResponseResult(default(T), string.Empty); + } + + if (ReadResponseAsString) + { + var responseText = await response.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + var typedBody = Newtonsoft.Json.JsonConvert.DeserializeObject(responseText, JsonSerializerSettings); + return new ObjectResponseResult(typedBody, responseText); + } + catch (Newtonsoft.Json.JsonException exception) + { + var message = "Could not deserialize the response body string as " + typeof(T).FullName + "."; + throw new ApiException(message, (int)response.StatusCode, responseText, headers, exception); + } + } + else + { + try + { + using (var responseStream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false)) + using (var streamReader = new System.IO.StreamReader(responseStream)) + using (var jsonTextReader = new Newtonsoft.Json.JsonTextReader(streamReader)) + { + var serializer = Newtonsoft.Json.JsonSerializer.Create(JsonSerializerSettings); + var typedBody = serializer.Deserialize(jsonTextReader); + return new ObjectResponseResult(typedBody, string.Empty); + } + } + catch (Newtonsoft.Json.JsonException exception) + { + var message = "Could not deserialize the response body stream as " + typeof(T).FullName + "."; + throw new ApiException(message, (int)response.StatusCode, string.Empty, headers, exception); + } + } + } + + private string ConvertToString(object value, System.Globalization.CultureInfo cultureInfo) + { + if (value == null) + { + return ""; + } + + if (value is System.Enum) + { + var name = System.Enum.GetName(value.GetType(), value); + if (name != null) + { + var field = System.Reflection.IntrospectionExtensions.GetTypeInfo(value.GetType()).GetDeclaredField(name); + if (field != null) + { + var attribute = System.Reflection.CustomAttributeExtensions.GetCustomAttribute(field, typeof(System.Runtime.Serialization.EnumMemberAttribute)) + as System.Runtime.Serialization.EnumMemberAttribute; + if (attribute != null) + { + return attribute.Value != null ? attribute.Value : name; + } + } + + var converted = System.Convert.ToString(System.Convert.ChangeType(value, System.Enum.GetUnderlyingType(value.GetType()), cultureInfo)); + return converted == null ? string.Empty : converted; + } + } + else if (value is bool) + { + return System.Convert.ToString((bool)value, cultureInfo).ToLowerInvariant(); + } + else if (value is byte[]) + { + return System.Convert.ToBase64String((byte[]) value); + } + else if (value.GetType().IsArray) + { + var array = System.Linq.Enumerable.OfType((System.Array) value); + return string.Join(",", System.Linq.Enumerable.Select(array, o => ConvertToString(o, cultureInfo))); + } + + var result = System.Convert.ToString(value, cultureInfo); + return result == null ? "" : result; + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class ActionContract : System.ComponentModel.INotifyPropertyChanged + { + private long _id; + private string _jobName; + private int _orderIndex; + private long? _parentId; + private System.Collections.Generic.ICollection _children; + + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long Id + { + get { return _id; } + + set + { + if (_id != value) + { + _id = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("jobName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JobName + { + get { return _jobName; } + + set + { + if (_jobName != value) + { + _jobName = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("orderIndex", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int OrderIndex + { + get { return _orderIndex; } + + set + { + if (_orderIndex != value) + { + _orderIndex = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("parentId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long? ParentId + { + get { return _parentId; } + + set + { + if (_parentId != value) + { + _parentId = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("children", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Children + { + get { return _children; } + + set + { + if (_children != value) + { + _children = value; + RaisePropertyChanged(); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class ActionContractCreateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private System.Collections.Generic.ICollection _items; + + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Items + { + get { return _items; } + + set + { + if (_items != value) + { + _items = value; + RaisePropertyChanged(); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class ActionContractListMessageContract : System.ComponentModel.INotifyPropertyChanged + { + private bool _isSuccess; + private ErrorContract _error; + private SuccessContract _success; private System.Collections.Generic.ICollection _result; private long _totalCount; private bool _hasItems; @@ -8590,124 +9972,336 @@ public long TotalCount set { - if (_totalCount != value) + if (_totalCount != value) + { + _totalCount = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("hasItems", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool HasItems + { + get { return _hasItems; } + + set + { + if (_hasItems != value) + { + _hasItems = value; + RaisePropertyChanged(); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class ActionContractMessageContract : System.ComponentModel.INotifyPropertyChanged + { + private bool _isSuccess; + private ErrorContract _error; + private SuccessContract _success; + private ActionContract _result; + + [Newtonsoft.Json.JsonProperty("isSuccess", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool IsSuccess + { + get { return _isSuccess; } + + set + { + if (_isSuccess != value) + { + _isSuccess = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("error", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ErrorContract Error + { + get { return _error; } + + set + { + if (_error != value) + { + _error = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("success", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public SuccessContract Success + { + get { return _success; } + + set + { + if (_success != value) + { + _success = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActionContract Result + { + get { return _result; } + + set + { + if (_result != value) + { + _result = value; + RaisePropertyChanged(); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class ActionContractUpdateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private System.Collections.Generic.ICollection _items; + + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Items + { + get { return _items; } + + set + { + if (_items != value) + { + _items = value; + RaisePropertyChanged(); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public enum ActionExecutionStatusType + { + + None = 0, + + Default = 1, + + All = 2, + + Other = 3, + + Unknown = 4, + + Nothing = 5, + + Success = 6, + + Failed = 7, + + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class CreateFormItemContract : System.ComponentModel.INotifyPropertyChanged + { + private string _defaultValue; + private string _title; + private int _index; + private string _localVariableName; + private ItemType _type; + private long? _primaryFormItemId; + private long? _formId; + private long? _parentFormItemId; + private string _uniqueIdentity; + private FormItemContract _primaryFormItem; + private System.Collections.Generic.ICollection _items; + + [Newtonsoft.Json.JsonProperty("defaultValue", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string DefaultValue + { + get { return _defaultValue; } + + set + { + if (_defaultValue != value) + { + _defaultValue = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Title + { + get { return _title; } + + set + { + if (_title != value) + { + _title = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("index", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int Index + { + get { return _index; } + + set + { + if (_index != value) + { + _index = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("localVariableName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string LocalVariableName + { + get { return _localVariableName; } + + set + { + if (_localVariableName != value) + { + _localVariableName = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ItemType Type + { + get { return _type; } + + set + { + if (_type != value) { - _totalCount = value; + _type = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("hasItems", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public bool HasItems + [Newtonsoft.Json.JsonProperty("primaryFormItemId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long? PrimaryFormItemId { - get { return _hasItems; } + get { return _primaryFormItemId; } set { - if (_hasItems != value) + if (_primaryFormItemId != value) { - _hasItems = value; + _primaryFormItemId = value; RaisePropertyChanged(); } } } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) - { - var handler = PropertyChanged; - if (handler != null) - handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class ActionContractMessageContract : System.ComponentModel.INotifyPropertyChanged - { - private bool _isSuccess; - private ErrorContract _error; - private SuccessContract _success; - private ActionContract _result; - - [Newtonsoft.Json.JsonProperty("isSuccess", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public bool IsSuccess + [Newtonsoft.Json.JsonProperty("formId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long? FormId { - get { return _isSuccess; } + get { return _formId; } set { - if (_isSuccess != value) + if (_formId != value) { - _isSuccess = value; + _formId = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("error", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public ErrorContract Error + [Newtonsoft.Json.JsonProperty("parentFormItemId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long? ParentFormItemId { - get { return _error; } + get { return _parentFormItemId; } set { - if (_error != value) + if (_parentFormItemId != value) { - _error = value; + _parentFormItemId = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("success", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public SuccessContract Success + [Newtonsoft.Json.JsonProperty("uniqueIdentity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UniqueIdentity { - get { return _success; } + get { return _uniqueIdentity; } set { - if (_success != value) + if (_uniqueIdentity != value) { - _success = value; + _uniqueIdentity = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public ActionContract Result + [Newtonsoft.Json.JsonProperty("primaryFormItem", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public FormItemContract PrimaryFormItem { - get { return _result; } + get { return _primaryFormItem; } set { - if (_result != value) + if (_primaryFormItem != value) { - _result = value; + _primaryFormItem = value; RaisePropertyChanged(); } } } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) - { - var handler = PropertyChanged; - if (handler != null) - handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class ActionContractUpdateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged - { - private System.Collections.Generic.ICollection _items; - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Items + public System.Collections.Generic.ICollection Items { get { return _items; } @@ -8732,7 +10326,7 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class CreateFormItemContract : System.ComponentModel.INotifyPropertyChanged + public partial class CreateFormItemRequestContract : System.ComponentModel.INotifyPropertyChanged { private string _defaultValue; private string _title; @@ -8922,180 +10516,316 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class CreateFormItemRequestContract : System.ComponentModel.INotifyPropertyChanged + public partial class CreateFormItemRequestContractCreateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged { - private string _defaultValue; - private string _title; - private int _index; - private string _localVariableName; - private ItemType _type; - private long? _primaryFormItemId; - private long? _formId; - private long? _parentFormItemId; + private System.Collections.Generic.ICollection _items; + + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Items + { + get { return _items; } + + set + { + if (_items != value) + { + _items = value; + RaisePropertyChanged(); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class CreateFormRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private string _name; + private string _description; private string _uniqueIdentity; - private FormItemContract _primaryFormItem; - private System.Collections.Generic.ICollection _items; + private System.Collections.Generic.ICollection _formItems; - [Newtonsoft.Json.JsonProperty("defaultValue", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string DefaultValue + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Name { - get { return _defaultValue; } + get { return _name; } set { - if (_defaultValue != value) + if (_name != value) { - _defaultValue = value; + _name = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string Title + [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Description { - get { return _title; } + get { return _description; } set { - if (_title != value) + if (_description != value) { - _title = value; + _description = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("index", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public int Index + [Newtonsoft.Json.JsonProperty("uniqueIdentity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UniqueIdentity + { + get { return _uniqueIdentity; } + + set + { + if (_uniqueIdentity != value) + { + _uniqueIdentity = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("formItems", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection FormItems + { + get { return _formItems; } + + set + { + if (_formItems != value) + { + _formItems = value; + RaisePropertyChanged(); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class CreateFormRequestContractCreateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private System.Collections.Generic.ICollection _items; + + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Items + { + get { return _items; } + + set + { + if (_items != value) + { + _items = value; + RaisePropertyChanged(); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class ErrorContract : System.ComponentModel.INotifyPropertyChanged + { + private System.Collections.Generic.ICollection _validations; + private FailedReasonType _failedReasonType; + private string _message; + private string _endUserMessage; + private string _details; + private System.Collections.Generic.ICollection _stackTrace; + private System.Collections.Generic.ICollection _children; + private ServiceDetailsContract _serviceDetails; + + [Newtonsoft.Json.JsonProperty("validations", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Validations + { + get { return _validations; } + + set + { + if (_validations != value) + { + _validations = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("failedReasonType", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public FailedReasonType FailedReasonType { - get { return _index; } + get { return _failedReasonType; } set { - if (_index != value) + if (_failedReasonType != value) { - _index = value; + _failedReasonType = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("localVariableName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string LocalVariableName + [Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Message { - get { return _localVariableName; } + get { return _message; } set { - if (_localVariableName != value) + if (_message != value) { - _localVariableName = value; + _message = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public ItemType Type + [Newtonsoft.Json.JsonProperty("endUserMessage", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EndUserMessage { - get { return _type; } + get { return _endUserMessage; } set { - if (_type != value) + if (_endUserMessage != value) { - _type = value; + _endUserMessage = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("primaryFormItemId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long? PrimaryFormItemId + [Newtonsoft.Json.JsonProperty("details", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Details { - get { return _primaryFormItemId; } + get { return _details; } set { - if (_primaryFormItemId != value) + if (_details != value) { - _primaryFormItemId = value; + _details = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("formId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long? FormId + [Newtonsoft.Json.JsonProperty("stackTrace", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection StackTrace { - get { return _formId; } + get { return _stackTrace; } set { - if (_formId != value) + if (_stackTrace != value) { - _formId = value; + _stackTrace = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("parentFormItemId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long? ParentFormItemId + [Newtonsoft.Json.JsonProperty("children", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Children { - get { return _parentFormItemId; } + get { return _children; } set { - if (_parentFormItemId != value) + if (_children != value) { - _parentFormItemId = value; + _children = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("uniqueIdentity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string UniqueIdentity + [Newtonsoft.Json.JsonProperty("serviceDetails", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ServiceDetailsContract ServiceDetails { - get { return _uniqueIdentity; } + get { return _serviceDetails; } set { - if (_uniqueIdentity != value) + if (_serviceDetails != value) { - _uniqueIdentity = value; + _serviceDetails = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("primaryFormItem", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public FormItemContract PrimaryFormItem + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) { - get { return _primaryFormItem; } + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class EventContract : System.ComponentModel.INotifyPropertyChanged + { + private long _id; + private string _name; + + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long Id + { + get { return _id; } set { - if (_primaryFormItem != value) + if (_id != value) { - _primaryFormItem = value; + _id = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Items + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Name { - get { return _items; } + get { return _name; } set { - if (_items != value) + if (_name != value) { - _items = value; + _name = value; RaisePropertyChanged(); } } @@ -9112,12 +10842,12 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class CreateFormItemRequestContractCreateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged + public partial class EventContractCreateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged { - private System.Collections.Generic.ICollection _items; + private System.Collections.Generic.ICollection _items; [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Items + public System.Collections.Generic.ICollection Items { get { return _items; } @@ -9142,98 +10872,100 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class CreateFormRequestContract : System.ComponentModel.INotifyPropertyChanged + public partial class EventContractListMessageContract : System.ComponentModel.INotifyPropertyChanged { - private string _name; - private string _description; - private string _uniqueIdentity; - private System.Collections.Generic.ICollection _formItems; + private bool _isSuccess; + private ErrorContract _error; + private SuccessContract _success; + private System.Collections.Generic.ICollection _result; + private long _totalCount; + private bool _hasItems; - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string Name + [Newtonsoft.Json.JsonProperty("isSuccess", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool IsSuccess { - get { return _name; } + get { return _isSuccess; } set { - if (_name != value) + if (_isSuccess != value) { - _name = value; + _isSuccess = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string Description + [Newtonsoft.Json.JsonProperty("error", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ErrorContract Error { - get { return _description; } + get { return _error; } set { - if (_description != value) + if (_error != value) { - _description = value; + _error = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("uniqueIdentity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string UniqueIdentity + [Newtonsoft.Json.JsonProperty("success", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public SuccessContract Success { - get { return _uniqueIdentity; } + get { return _success; } set { - if (_uniqueIdentity != value) + if (_success != value) { - _uniqueIdentity = value; + _success = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("formItems", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection FormItems + [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Result { - get { return _formItems; } + get { return _result; } set { - if (_formItems != value) + if (_result != value) { - _formItems = value; + _result = value; RaisePropertyChanged(); } } } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + [Newtonsoft.Json.JsonProperty("totalCount", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long TotalCount { - var handler = PropertyChanged; - if (handler != null) - handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } + get { return _totalCount; } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class CreateFormRequestContractCreateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged - { - private System.Collections.Generic.ICollection _items; + set + { + if (_totalCount != value) + { + _totalCount = value; + RaisePropertyChanged(); + } + } + } - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Items + [Newtonsoft.Json.JsonProperty("hasItems", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool HasItems { - get { return _items; } + get { return _hasItems; } set { - if (_items != value) + if (_hasItems != value) { - _items = value; + _hasItems = value; RaisePropertyChanged(); } } @@ -9250,318 +10982,376 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class ErrorContract : System.ComponentModel.INotifyPropertyChanged + public partial class EventContractMessageContract : System.ComponentModel.INotifyPropertyChanged { - private System.Collections.Generic.ICollection _validations; - private FailedReasonType _failedReasonType; - private string _message; - private string _endUserMessage; - private string _details; - private System.Collections.Generic.ICollection _stackTrace; - private System.Collections.Generic.ICollection _children; - private ServiceDetailsContract _serviceDetails; + private bool _isSuccess; + private ErrorContract _error; + private SuccessContract _success; + private EventContract _result; - [Newtonsoft.Json.JsonProperty("validations", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Validations + [Newtonsoft.Json.JsonProperty("isSuccess", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool IsSuccess { - get { return _validations; } + get { return _isSuccess; } set { - if (_validations != value) + if (_isSuccess != value) { - _validations = value; + _isSuccess = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("failedReasonType", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public FailedReasonType FailedReasonType + [Newtonsoft.Json.JsonProperty("error", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ErrorContract Error { - get { return _failedReasonType; } + get { return _error; } set { - if (_failedReasonType != value) + if (_error != value) + { + _error = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("success", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public SuccessContract Success + { + get { return _success; } + + set + { + if (_success != value) + { + _success = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public EventContract Result + { + get { return _result; } + + set + { + if (_result != value) { - _failedReasonType = value; + _result = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string Message + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) { - get { return _message; } + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class EventContractUpdateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private System.Collections.Generic.ICollection _items; + + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Items + { + get { return _items; } set { - if (_message != value) + if (_items != value) { - _message = value; + _items = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("endUserMessage", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string EndUserMessage + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) { - get { return _endUserMessage; } + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public enum FailedReasonType + { + + None = 0, + + Default = 1, + + All = 2, + + Other = 3, + + Unknown = 4, + + Nothing = 5, + + SessionAccessDenied = 6, + + AccessDenied = 7, + + InternalError = 8, + + Duplicate = 9, + + Empty = 10, + + NotFound = 11, + + ValidationsError = 12, + + StreamError = 13, + + WebServiceNotWorking = 14, + + Incorrect = 15, + + OperationFailed = 16, + + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class FilterRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private bool? _isDeleted; + private System.DateTime? _fromDeletedDateTime; + private System.DateTime? _toDeletedDateTime; + private System.DateTime? _fromCreationDateTime; + private System.DateTime? _toCreationDateTime; + private System.DateTime? _fromModificationDateTime; + private System.DateTime? _toModificationDateTime; + private string _uniqueIdentity; + private GetUniqueIdentityType _uniqueIdentityType; + private long? _index; + private long? _length; + private System.Collections.Generic.ICollection _sortColumnNames; + private string _text; + private string _languageShortName; + + [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsDeleted + { + get { return _isDeleted; } set { - if (_endUserMessage != value) + if (_isDeleted != value) { - _endUserMessage = value; + _isDeleted = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("details", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string Details + [Newtonsoft.Json.JsonProperty("fromDeletedDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTime? FromDeletedDateTime { - get { return _details; } + get { return _fromDeletedDateTime; } set { - if (_details != value) + if (_fromDeletedDateTime != value) { - _details = value; + _fromDeletedDateTime = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("stackTrace", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection StackTrace + [Newtonsoft.Json.JsonProperty("toDeletedDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTime? ToDeletedDateTime { - get { return _stackTrace; } + get { return _toDeletedDateTime; } set { - if (_stackTrace != value) + if (_toDeletedDateTime != value) { - _stackTrace = value; + _toDeletedDateTime = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("children", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Children + [Newtonsoft.Json.JsonProperty("fromCreationDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTime? FromCreationDateTime { - get { return _children; } + get { return _fromCreationDateTime; } set { - if (_children != value) + if (_fromCreationDateTime != value) { - _children = value; + _fromCreationDateTime = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("serviceDetails", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public ServiceDetailsContract ServiceDetails + [Newtonsoft.Json.JsonProperty("toCreationDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTime? ToCreationDateTime { - get { return _serviceDetails; } + get { return _toCreationDateTime; } set { - if (_serviceDetails != value) + if (_toCreationDateTime != value) { - _serviceDetails = value; + _toCreationDateTime = value; RaisePropertyChanged(); } } } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) - { - var handler = PropertyChanged; - if (handler != null) - handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class EventContract : System.ComponentModel.INotifyPropertyChanged - { - private long _id; - private string _name; - - [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long Id + [Newtonsoft.Json.JsonProperty("fromModificationDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTime? FromModificationDateTime { - get { return _id; } + get { return _fromModificationDateTime; } set { - if (_id != value) + if (_fromModificationDateTime != value) { - _id = value; + _fromModificationDateTime = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string Name + [Newtonsoft.Json.JsonProperty("toModificationDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTime? ToModificationDateTime { - get { return _name; } + get { return _toModificationDateTime; } set { - if (_name != value) + if (_toModificationDateTime != value) { - _name = value; + _toModificationDateTime = value; RaisePropertyChanged(); } } } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) - { - var handler = PropertyChanged; - if (handler != null) - handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class EventContractCreateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged - { - private System.Collections.Generic.ICollection _items; - - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Items + [Newtonsoft.Json.JsonProperty("uniqueIdentity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UniqueIdentity { - get { return _items; } + get { return _uniqueIdentity; } set { - if (_items != value) + if (_uniqueIdentity != value) { - _items = value; + _uniqueIdentity = value; RaisePropertyChanged(); } } } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) - { - var handler = PropertyChanged; - if (handler != null) - handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class EventContractListMessageContract : System.ComponentModel.INotifyPropertyChanged - { - private bool _isSuccess; - private ErrorContract _error; - private SuccessContract _success; - private System.Collections.Generic.ICollection _result; - private long _totalCount; - private bool _hasItems; - - [Newtonsoft.Json.JsonProperty("isSuccess", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public bool IsSuccess + [Newtonsoft.Json.JsonProperty("uniqueIdentityType", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public GetUniqueIdentityType UniqueIdentityType { - get { return _isSuccess; } + get { return _uniqueIdentityType; } set { - if (_isSuccess != value) + if (_uniqueIdentityType != value) { - _isSuccess = value; + _uniqueIdentityType = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("error", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public ErrorContract Error + [Newtonsoft.Json.JsonProperty("index", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long? Index { - get { return _error; } + get { return _index; } set { - if (_error != value) + if (_index != value) { - _error = value; + _index = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("success", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public SuccessContract Success + [Newtonsoft.Json.JsonProperty("length", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long? Length { - get { return _success; } + get { return _length; } set { - if (_success != value) + if (_length != value) { - _success = value; + _length = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Result + [Newtonsoft.Json.JsonProperty("sortColumnNames", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection SortColumnNames { - get { return _result; } + get { return _sortColumnNames; } set { - if (_result != value) + if (_sortColumnNames != value) { - _result = value; + _sortColumnNames = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("totalCount", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long TotalCount + [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Text { - get { return _totalCount; } + get { return _text; } set { - if (_totalCount != value) + if (_text != value) { - _totalCount = value; + _text = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("hasItems", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public bool HasItems + [Newtonsoft.Json.JsonProperty("languageShortName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string LanguageShortName { - get { return _hasItems; } + get { return _languageShortName; } set { - if (_hasItems != value) + if (_languageShortName != value) { - _hasItems = value; + _languageShortName = value; RaisePropertyChanged(); } } @@ -9578,90 +11368,76 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class EventContractMessageContract : System.ComponentModel.INotifyPropertyChanged + public partial class FormContract : System.ComponentModel.INotifyPropertyChanged { - private bool _isSuccess; - private ErrorContract _error; - private SuccessContract _success; - private EventContract _result; + private long _id; + private string _name; + private string _description; + private string _uniqueIdentity; + private System.Collections.Generic.ICollection _items; - [Newtonsoft.Json.JsonProperty("isSuccess", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public bool IsSuccess + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long Id { - get { return _isSuccess; } + get { return _id; } set { - if (_isSuccess != value) + if (_id != value) { - _isSuccess = value; + _id = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("error", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public ErrorContract Error + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Name { - get { return _error; } + get { return _name; } set { - if (_error != value) + if (_name != value) { - _error = value; + _name = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("success", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public SuccessContract Success + [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Description { - get { return _success; } + get { return _description; } set { - if (_success != value) + if (_description != value) { - _success = value; + _description = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public EventContract Result + [Newtonsoft.Json.JsonProperty("uniqueIdentity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UniqueIdentity { - get { return _result; } + get { return _uniqueIdentity; } set { - if (_result != value) + if (_uniqueIdentity != value) { - _result = value; + _uniqueIdentity = value; RaisePropertyChanged(); } } } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) - { - var handler = PropertyChanged; - if (handler != null) - handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } - - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class EventContractUpdateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged - { - private System.Collections.Generic.ICollection _items; - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Items + public System.Collections.Generic.ICollection Items { get { return _items; } @@ -9686,268 +11462,208 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public enum FailedReasonType - { - - None = 0, - - Default = 1, - - All = 2, - - Other = 3, - - Unknown = 4, - - Nothing = 5, - - SessionAccessDenied = 6, - - AccessDenied = 7, - - InternalError = 8, - - Duplicate = 9, - - Empty = 10, - - NotFound = 11, - - ValidationsError = 12, - - StreamError = 13, - - WebServiceNotWorking = 14, - - Incorrect = 15, - - OperationFailed = 16, - - } - - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FilterRequestContract : System.ComponentModel.INotifyPropertyChanged + public partial class FormContractListMessageContract : System.ComponentModel.INotifyPropertyChanged { - private bool? _isDeleted; - private System.DateTime? _fromDeletedDateTime; - private System.DateTime? _toDeletedDateTime; - private System.DateTime? _fromCreationDateTime; - private System.DateTime? _toCreationDateTime; - private System.DateTime? _fromModificationDateTime; - private System.DateTime? _toModificationDateTime; - private string _uniqueIdentity; - private GetUniqueIdentityType _uniqueIdentityType; - private long? _index; - private long? _length; - private System.Collections.Generic.ICollection _sortColumnNames; - private string _text; - private string _languageShortName; + private bool _isSuccess; + private ErrorContract _error; + private SuccessContract _success; + private System.Collections.Generic.ICollection _result; + private long _totalCount; + private bool _hasItems; - [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public bool? IsDeleted + [Newtonsoft.Json.JsonProperty("isSuccess", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool IsSuccess { - get { return _isDeleted; } + get { return _isSuccess; } set { - if (_isDeleted != value) + if (_isSuccess != value) { - _isDeleted = value; + _isSuccess = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("fromDeletedDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.DateTime? FromDeletedDateTime + [Newtonsoft.Json.JsonProperty("error", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ErrorContract Error { - get { return _fromDeletedDateTime; } + get { return _error; } set { - if (_fromDeletedDateTime != value) + if (_error != value) { - _fromDeletedDateTime = value; + _error = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("toDeletedDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.DateTime? ToDeletedDateTime + [Newtonsoft.Json.JsonProperty("success", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public SuccessContract Success { - get { return _toDeletedDateTime; } + get { return _success; } set { - if (_toDeletedDateTime != value) + if (_success != value) { - _toDeletedDateTime = value; + _success = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("fromCreationDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.DateTime? FromCreationDateTime + [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Result { - get { return _fromCreationDateTime; } + get { return _result; } set { - if (_fromCreationDateTime != value) + if (_result != value) { - _fromCreationDateTime = value; + _result = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("toCreationDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.DateTime? ToCreationDateTime + [Newtonsoft.Json.JsonProperty("totalCount", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long TotalCount { - get { return _toCreationDateTime; } + get { return _totalCount; } set { - if (_toCreationDateTime != value) + if (_totalCount != value) { - _toCreationDateTime = value; + _totalCount = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("fromModificationDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.DateTime? FromModificationDateTime + [Newtonsoft.Json.JsonProperty("hasItems", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool HasItems { - get { return _fromModificationDateTime; } + get { return _hasItems; } set { - if (_fromModificationDateTime != value) + if (_hasItems != value) { - _fromModificationDateTime = value; + _hasItems = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("toModificationDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.DateTime? ToModificationDateTime - { - get { return _toModificationDateTime; } - - set - { - if (_toModificationDateTime != value) - { - _toModificationDateTime = value; - RaisePropertyChanged(); - } - } - } + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - [Newtonsoft.Json.JsonProperty("uniqueIdentity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string UniqueIdentity + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) { - get { return _uniqueIdentity; } - - set - { - if (_uniqueIdentity != value) - { - _uniqueIdentity = value; - RaisePropertyChanged(); - } - } + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class FormContractMessageContract : System.ComponentModel.INotifyPropertyChanged + { + private bool _isSuccess; + private ErrorContract _error; + private SuccessContract _success; + private FormContract _result; - [Newtonsoft.Json.JsonProperty("uniqueIdentityType", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public GetUniqueIdentityType UniqueIdentityType + [Newtonsoft.Json.JsonProperty("isSuccess", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool IsSuccess { - get { return _uniqueIdentityType; } + get { return _isSuccess; } set { - if (_uniqueIdentityType != value) + if (_isSuccess != value) { - _uniqueIdentityType = value; + _isSuccess = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("index", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long? Index + [Newtonsoft.Json.JsonProperty("error", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ErrorContract Error { - get { return _index; } + get { return _error; } set { - if (_index != value) + if (_error != value) { - _index = value; + _error = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("length", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long? Length + [Newtonsoft.Json.JsonProperty("success", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public SuccessContract Success { - get { return _length; } + get { return _success; } set { - if (_length != value) + if (_success != value) { - _length = value; + _success = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("sortColumnNames", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection SortColumnNames + [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public FormContract Result { - get { return _sortColumnNames; } + get { return _result; } set { - if (_sortColumnNames != value) + if (_result != value) { - _sortColumnNames = value; + _result = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string Text - { - get { return _text; } + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - set - { - if (_text != value) - { - _text = value; - RaisePropertyChanged(); - } - } + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); } + } - [Newtonsoft.Json.JsonProperty("languageShortName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string LanguageShortName + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class FormContractUpdateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private System.Collections.Generic.ICollection _items; + + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Items { - get { return _languageShortName; } + get { return _items; } set { - if (_languageShortName != value) + if (_items != value) { - _languageShortName = value; + _items = value; RaisePropertyChanged(); } } @@ -9964,54 +11680,69 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormContract : System.ComponentModel.INotifyPropertyChanged + public partial class FormDetailContract : System.ComponentModel.INotifyPropertyChanged { - private long _id; - private string _name; - private string _description; + private string _title; + private string _key; + private string _value; + private long _formId; private string _uniqueIdentity; - private System.Collections.Generic.ICollection _items; - [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long Id + [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Title { - get { return _id; } + get { return _title; } set { - if (_id != value) + if (_title != value) { - _id = value; + _title = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string Name + [Newtonsoft.Json.JsonProperty("key", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Key { - get { return _name; } + get { return _key; } set { - if (_name != value) + if (_key != value) { - _name = value; + _key = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string Description + [Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Value { - get { return _description; } + get { return _value; } set { - if (_description != value) + if (_value != value) { - _description = value; + _value = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("formId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long FormId + { + get { return _formId; } + + set + { + if (_formId != value) + { + _formId = value; RaisePropertyChanged(); } } @@ -10032,8 +11763,23 @@ public string UniqueIdentity } } + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class FormDetailContractCreateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private System.Collections.Generic.ICollection _items; + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Items + public System.Collections.Generic.ICollection Items { get { return _items; } @@ -10058,12 +11804,12 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormContractListMessageContract : System.ComponentModel.INotifyPropertyChanged + public partial class FormDetailContractListMessageContract : System.ComponentModel.INotifyPropertyChanged { private bool _isSuccess; private ErrorContract _error; private SuccessContract _success; - private System.Collections.Generic.ICollection _result; + private System.Collections.Generic.ICollection _result; private long _totalCount; private bool _hasItems; @@ -10113,7 +11859,7 @@ public SuccessContract Success } [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Result + public System.Collections.Generic.ICollection Result { get { return _result; } @@ -10168,12 +11914,12 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormContractMessageContract : System.ComponentModel.INotifyPropertyChanged + public partial class FormDetailContractMessageContract : System.ComponentModel.INotifyPropertyChanged { private bool _isSuccess; private ErrorContract _error; private SuccessContract _success; - private FormContract _result; + private FormDetailContract _result; [Newtonsoft.Json.JsonProperty("isSuccess", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool IsSuccess @@ -10221,7 +11967,7 @@ public SuccessContract Success } [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public FormContract Result + public FormDetailContract Result { get { return _result; } @@ -10246,12 +11992,12 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormContractUpdateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged + public partial class FormDetailContractUpdateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged { - private System.Collections.Generic.ICollection _items; + private System.Collections.Generic.ICollection _items; [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Items + public System.Collections.Generic.ICollection Items { get { return _items; } @@ -10276,13 +12022,35 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormDetailContract : System.ComponentModel.INotifyPropertyChanged + public partial class FormItemContract : System.ComponentModel.INotifyPropertyChanged { + private string _defaultValue; private string _title; - private string _key; - private string _value; - private long _formId; + private int _index; + private string _localVariableName; + private ItemType _type; + private long? _primaryFormItemId; + private long? _formId; + private long? _parentFormItemId; private string _uniqueIdentity; + private long _id; + private System.Collections.Generic.ICollection _items; + private FormItemContract _primaryFormItem; + + [Newtonsoft.Json.JsonProperty("defaultValue", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string DefaultValue + { + get { return _defaultValue; } + + set + { + if (_defaultValue != value) + { + _defaultValue = value; + RaisePropertyChanged(); + } + } + } [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Title @@ -10299,46 +12067,91 @@ public string Title } } - [Newtonsoft.Json.JsonProperty("key", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string Key + [Newtonsoft.Json.JsonProperty("index", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int Index { - get { return _key; } + get { return _index; } set { - if (_key != value) + if (_index != value) { - _key = value; + _index = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string Value + [Newtonsoft.Json.JsonProperty("localVariableName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string LocalVariableName + { + get { return _localVariableName; } + + set + { + if (_localVariableName != value) + { + _localVariableName = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ItemType Type + { + get { return _type; } + + set + { + if (_type != value) + { + _type = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("primaryFormItemId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long? PrimaryFormItemId + { + get { return _primaryFormItemId; } + + set + { + if (_primaryFormItemId != value) + { + _primaryFormItemId = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("formId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long? FormId { - get { return _value; } + get { return _formId; } set { - if (_value != value) + if (_formId != value) { - _value = value; + _formId = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("formId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long FormId + [Newtonsoft.Json.JsonProperty("parentFormItemId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long? ParentFormItemId { - get { return _formId; } + get { return _parentFormItemId; } set { - if (_formId != value) + if (_parentFormItemId != value) { - _formId = value; + _parentFormItemId = value; RaisePropertyChanged(); } } @@ -10359,23 +12172,23 @@ public string UniqueIdentity } } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long Id { - var handler = PropertyChanged; - if (handler != null) - handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } + get { return _id; } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormDetailContractCreateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged - { - private System.Collections.Generic.ICollection _items; + set + { + if (_id != value) + { + _id = value; + RaisePropertyChanged(); + } + } + } [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Items + public System.Collections.Generic.ICollection Items { get { return _items; } @@ -10389,6 +12202,21 @@ public System.Collections.Generic.ICollection Items } } + [Newtonsoft.Json.JsonProperty("primaryFormItem", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public FormItemContract PrimaryFormItem + { + get { return _primaryFormItem; } + + set + { + if (_primaryFormItem != value) + { + _primaryFormItem = value; + RaisePropertyChanged(); + } + } + } + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) @@ -10400,12 +12228,12 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormDetailContractListMessageContract : System.ComponentModel.INotifyPropertyChanged + public partial class FormItemContractListMessageContract : System.ComponentModel.INotifyPropertyChanged { private bool _isSuccess; private ErrorContract _error; private SuccessContract _success; - private System.Collections.Generic.ICollection _result; + private System.Collections.Generic.ICollection _result; private long _totalCount; private bool _hasItems; @@ -10455,7 +12283,7 @@ public SuccessContract Success } [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Result + public System.Collections.Generic.ICollection Result { get { return _result; } @@ -10510,12 +12338,12 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormDetailContractMessageContract : System.ComponentModel.INotifyPropertyChanged + public partial class FormItemContractMessageContract : System.ComponentModel.INotifyPropertyChanged { private bool _isSuccess; private ErrorContract _error; private SuccessContract _success; - private FormDetailContract _result; + private FormItemContract _result; [Newtonsoft.Json.JsonProperty("isSuccess", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool IsSuccess @@ -10563,7 +12391,7 @@ public SuccessContract Success } [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public FormDetailContract Result + public FormItemContract Result { get { return _result; } @@ -10588,226 +12416,270 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormDetailContractUpdateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged + public partial class FormItemEventActionContract : System.ComponentModel.INotifyPropertyChanged { - private System.Collections.Generic.ICollection _items; + private long _formItemEventId; + private long _actionId; + private ActionContract _action; + private System.Collections.Generic.ICollection _formItemEventActionCallHistories; - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Items + [Newtonsoft.Json.JsonProperty("formItemEventId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long FormItemEventId { - get { return _items; } + get { return _formItemEventId; } set { - if (_items != value) + if (_formItemEventId != value) { - _items = value; + _formItemEventId = value; RaisePropertyChanged(); } } } - public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; - - protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + [Newtonsoft.Json.JsonProperty("actionId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long ActionId { - var handler = PropertyChanged; - if (handler != null) - handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); - } - } + get { return _actionId; } - [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormItemContract : System.ComponentModel.INotifyPropertyChanged - { - private string _defaultValue; - private string _title; - private int _index; - private string _localVariableName; - private ItemType _type; - private long? _primaryFormItemId; - private long? _formId; - private long? _parentFormItemId; - private string _uniqueIdentity; - private long _id; - private System.Collections.Generic.ICollection _items; - private FormItemContract _primaryFormItem; + set + { + if (_actionId != value) + { + _actionId = value; + RaisePropertyChanged(); + } + } + } - [Newtonsoft.Json.JsonProperty("defaultValue", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string DefaultValue + [Newtonsoft.Json.JsonProperty("action", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActionContract Action { - get { return _defaultValue; } + get { return _action; } set { - if (_defaultValue != value) + if (_action != value) { - _defaultValue = value; + _action = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string Title + [Newtonsoft.Json.JsonProperty("formItemEventActionCallHistories", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection FormItemEventActionCallHistories { - get { return _title; } + get { return _formItemEventActionCallHistories; } set { - if (_title != value) + if (_formItemEventActionCallHistories != value) { - _title = value; + _formItemEventActionCallHistories = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("index", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public int Index + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) { - get { return _index; } + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class FormItemEventActionExecutionContract : System.ComponentModel.INotifyPropertyChanged + { + private string _requestJson; + private string _responseJson; + private ActionExecutionStatusType _status; + + [Newtonsoft.Json.JsonProperty("requestJson", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string RequestJson + { + get { return _requestJson; } set { - if (_index != value) + if (_requestJson != value) { - _index = value; + _requestJson = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("localVariableName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string LocalVariableName + [Newtonsoft.Json.JsonProperty("responseJson", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ResponseJson { - get { return _localVariableName; } + get { return _responseJson; } set { - if (_localVariableName != value) + if (_responseJson != value) { - _localVariableName = value; + _responseJson = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public ItemType Type + [Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActionExecutionStatusType Status { - get { return _type; } + get { return _status; } set { - if (_type != value) + if (_status != value) { - _type = value; + _status = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("primaryFormItemId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long? PrimaryFormItemId + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) { - get { return _primaryFormItemId; } + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class FormItemEventContract : System.ComponentModel.INotifyPropertyChanged + { + private long _id; + private long _formItemId; + private long _eventId; + private FormItemContract _formItem; + private EventContract _event; + private System.Collections.Generic.ICollection _formItemEventActions; + + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long Id + { + get { return _id; } set { - if (_primaryFormItemId != value) + if (_id != value) { - _primaryFormItemId = value; + _id = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("formId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long? FormId + [Newtonsoft.Json.JsonProperty("formItemId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long FormItemId { - get { return _formId; } + get { return _formItemId; } set { - if (_formId != value) + if (_formItemId != value) { - _formId = value; + _formItemId = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("parentFormItemId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long? ParentFormItemId + [Newtonsoft.Json.JsonProperty("eventId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long EventId { - get { return _parentFormItemId; } + get { return _eventId; } set { - if (_parentFormItemId != value) + if (_eventId != value) { - _parentFormItemId = value; + _eventId = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("uniqueIdentity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public string UniqueIdentity + [Newtonsoft.Json.JsonProperty("formItem", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public FormItemContract FormItem { - get { return _uniqueIdentity; } + get { return _formItem; } set { - if (_uniqueIdentity != value) + if (_formItem != value) { - _uniqueIdentity = value; + _formItem = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public long Id + [Newtonsoft.Json.JsonProperty("event", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public EventContract Event { - get { return _id; } + get { return _event; } set { - if (_id != value) + if (_event != value) { - _id = value; + _event = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Items + [Newtonsoft.Json.JsonProperty("formItemEventActions", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection FormItemEventActions { - get { return _items; } + get { return _formItemEventActions; } set { - if (_items != value) + if (_formItemEventActions != value) { - _items = value; + _formItemEventActions = value; RaisePropertyChanged(); } } } - [Newtonsoft.Json.JsonProperty("primaryFormItem", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public FormItemContract PrimaryFormItem + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) { - get { return _primaryFormItem; } + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class FormItemEventContractCreateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private System.Collections.Generic.ICollection _items; + + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Items + { + get { return _items; } set { - if (_primaryFormItem != value) + if (_items != value) { - _primaryFormItem = value; + _items = value; RaisePropertyChanged(); } } @@ -10824,12 +12696,12 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormItemContractListMessageContract : System.ComponentModel.INotifyPropertyChanged + public partial class FormItemEventContractListMessageContract : System.ComponentModel.INotifyPropertyChanged { private bool _isSuccess; private ErrorContract _error; private SuccessContract _success; - private System.Collections.Generic.ICollection _result; + private System.Collections.Generic.ICollection _result; private long _totalCount; private bool _hasItems; @@ -10879,7 +12751,7 @@ public SuccessContract Success } [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public System.Collections.Generic.ICollection Result + public System.Collections.Generic.ICollection Result { get { return _result; } @@ -10934,12 +12806,12 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class FormItemContractMessageContract : System.ComponentModel.INotifyPropertyChanged + public partial class FormItemEventContractMessageContract : System.ComponentModel.INotifyPropertyChanged { private bool _isSuccess; private ErrorContract _error; private SuccessContract _success; - private FormItemContract _result; + private FormItemEventContract _result; [Newtonsoft.Json.JsonProperty("isSuccess", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool IsSuccess @@ -10987,7 +12859,7 @@ public SuccessContract Success } [Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] - public FormItemContract Result + public FormItemEventContract Result { get { return _result; } @@ -11011,6 +12883,36 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } } + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] + public partial class FormItemEventContractUpdateBulkRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private System.Collections.Generic.ICollection _items; + + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Items + { + get { return _items; } + + set + { + if (_items != value) + { + _items = value; + RaisePropertyChanged(); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v11.0.0.0))")] public partial class FormItemValueContract : System.ComponentModel.INotifyPropertyChanged { diff --git a/src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.Clients/Connected Services/TemplateGeneratorGeneratedServices/OpenAPI.nswag.json b/src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.Clients/Connected Services/TemplateGeneratorGeneratedServices/OpenAPI.nswag.json index c39980b..eadbde3 100644 --- a/src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.Clients/Connected Services/TemplateGeneratorGeneratedServices/OpenAPI.nswag.json +++ b/src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.Clients/Connected Services/TemplateGeneratorGeneratedServices/OpenAPI.nswag.json @@ -3065,12 +3065,777 @@ } } }, + "/api/FormItemEvent/Add": { + "post": { + "tags": [ + "FormItemEvent" + ], + "operationId": "Add5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/Int64MessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/Int64MessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Int64MessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/AddBulk": { + "post": { + "tags": [ + "FormItemEvent" + ], + "operationId": "AddBulk5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractCreateBulkRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractCreateBulkRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractCreateBulkRequestContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/Update": { + "put": { + "tags": [ + "FormItemEvent" + ], + "operationId": "Update5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/UpdateChangedValuesOnly": { + "put": { + "tags": [ + "FormItemEvent" + ], + "operationId": "UpdateChangedValuesOnly5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/UpdateBulk": { + "put": { + "tags": [ + "FormItemEvent" + ], + "operationId": "UpdateBulk5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractUpdateBulkRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractUpdateBulkRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractUpdateBulkRequestContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/UpdateBulkChangedValuesOnly": { + "put": { + "tags": [ + "FormItemEvent" + ], + "operationId": "UpdateBulkChangedValuesOnly5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractUpdateBulkRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractUpdateBulkRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractUpdateBulkRequestContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/HardDeleteById": { + "delete": { + "tags": [ + "FormItemEvent" + ], + "operationId": "HardDeleteById5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Int64DeleteRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Int64DeleteRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/Int64DeleteRequestContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/HardDeleteBulkByIds": { + "delete": { + "tags": [ + "FormItemEvent" + ], + "operationId": "HardDeleteBulkByIds5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Int64DeleteBulkRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Int64DeleteBulkRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/Int64DeleteBulkRequestContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/SoftDeleteById": { + "delete": { + "tags": [ + "FormItemEvent" + ], + "operationId": "SoftDeleteById5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Int64SoftDeleteRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Int64SoftDeleteRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/Int64SoftDeleteRequestContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/SoftDeleteBulkByIds": { + "delete": { + "tags": [ + "FormItemEvent" + ], + "operationId": "SoftDeleteBulkByIds5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Int64SoftDeleteBulkRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Int64SoftDeleteBulkRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/Int64SoftDeleteBulkRequestContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/MessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/GetById": { + "post": { + "tags": [ + "FormItemEvent" + ], + "operationId": "GetById5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Int64GetByIdRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Int64GetByIdRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/Int64GetByIdRequestContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/GetByUniqueIdentity": { + "post": { + "tags": [ + "FormItemEvent" + ], + "operationId": "GetByUniqueIdentity5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetByUniqueIdentityRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetByUniqueIdentityRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GetByUniqueIdentityRequestContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/GetBy": { + "post": { + "tags": [ + "FormItemEvent" + ], + "operationId": "GetBy5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Int64GetByRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Int64GetByRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/Int64GetByRequestContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractMessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/Filter": { + "post": { + "tags": [ + "FormItemEvent" + ], + "operationId": "Filter5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FilterRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FilterRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FilterRequestContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractListMessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractListMessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractListMessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/GetAll": { + "get": { + "tags": [ + "FormItemEvent" + ], + "operationId": "GetAll5", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractListMessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractListMessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractListMessageContract" + } + } + } + } + } + } + }, + "/api/FormItemEvent/GetAllByUniqueIdentity": { + "post": { + "tags": [ + "FormItemEvent" + ], + "operationId": "GetAllByUniqueIdentity5", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetByUniqueIdentityRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetByUniqueIdentityRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GetByUniqueIdentityRequestContract" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractListMessageContract" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractListMessageContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FormItemEventContractListMessageContract" + } + } + } + } + } + } + }, "/api/FormValues/Add": { "post": { "tags": [ "FormValues" ], - "operationId": "Add5", + "operationId": "Add6", "requestBody": { "content": { "application/json": { @@ -3168,7 +3933,7 @@ "tags": [ "FormValues" ], - "operationId": "AddBulk5", + "operationId": "AddBulk6", "requestBody": { "content": { "application/json": { @@ -3217,7 +3982,7 @@ "tags": [ "FormValues" ], - "operationId": "Update5", + "operationId": "Update6", "requestBody": { "content": { "application/json": { @@ -3266,7 +4031,7 @@ "tags": [ "FormValues" ], - "operationId": "UpdateChangedValuesOnly5", + "operationId": "UpdateChangedValuesOnly6", "requestBody": { "content": { "application/json": { @@ -3315,7 +4080,7 @@ "tags": [ "FormValues" ], - "operationId": "UpdateBulk5", + "operationId": "UpdateBulk6", "requestBody": { "content": { "application/json": { @@ -3364,7 +4129,7 @@ "tags": [ "FormValues" ], - "operationId": "UpdateBulkChangedValuesOnly5", + "operationId": "UpdateBulkChangedValuesOnly6", "requestBody": { "content": { "application/json": { @@ -3413,7 +4178,7 @@ "tags": [ "FormValues" ], - "operationId": "HardDeleteById5", + "operationId": "HardDeleteById6", "requestBody": { "content": { "application/json": { @@ -3462,7 +4227,7 @@ "tags": [ "FormValues" ], - "operationId": "HardDeleteBulkByIds5", + "operationId": "HardDeleteBulkByIds6", "requestBody": { "content": { "application/json": { @@ -3511,7 +4276,7 @@ "tags": [ "FormValues" ], - "operationId": "SoftDeleteById5", + "operationId": "SoftDeleteById6", "requestBody": { "content": { "application/json": { @@ -3560,7 +4325,7 @@ "tags": [ "FormValues" ], - "operationId": "SoftDeleteBulkByIds5", + "operationId": "SoftDeleteBulkByIds6", "requestBody": { "content": { "application/json": { @@ -3609,7 +4374,7 @@ "tags": [ "FormValues" ], - "operationId": "GetById5", + "operationId": "GetById6", "requestBody": { "content": { "application/json": { @@ -3658,7 +4423,7 @@ "tags": [ "FormValues" ], - "operationId": "GetByUniqueIdentity5", + "operationId": "GetByUniqueIdentity6", "requestBody": { "content": { "application/json": { @@ -3707,7 +4472,7 @@ "tags": [ "FormValues" ], - "operationId": "GetBy5", + "operationId": "GetBy6", "requestBody": { "content": { "application/json": { @@ -3756,7 +4521,7 @@ "tags": [ "FormValues" ], - "operationId": "Filter5", + "operationId": "Filter6", "requestBody": { "content": { "application/json": { @@ -3805,7 +4570,7 @@ "tags": [ "FormValues" ], - "operationId": "GetAll5", + "operationId": "GetAll6", "responses": { "200": { "description": "Success", @@ -3835,7 +4600,7 @@ "tags": [ "FormValues" ], - "operationId": "GetAllByUniqueIdentity5", + "operationId": "GetAllByUniqueIdentity6", "requestBody": { "content": { "application/json": { @@ -3884,7 +4649,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "GetById6", + "operationId": "GetById7", "requestBody": { "content": { "application/json": { @@ -3933,7 +4698,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "Filter6", + "operationId": "Filter7", "requestBody": { "content": { "application/json": { @@ -3982,7 +4747,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "UpdateChangedValuesOnly6", + "operationId": "UpdateChangedValuesOnly7", "requestBody": { "content": { "application/json": { @@ -4031,7 +4796,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "Add6", + "operationId": "Add7", "requestBody": { "content": { "application/json": { @@ -4080,7 +4845,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "AddBulk6", + "operationId": "AddBulk7", "requestBody": { "content": { "application/json": { @@ -4129,7 +4894,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "Update6", + "operationId": "Update7", "requestBody": { "content": { "application/json": { @@ -4178,7 +4943,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "UpdateBulk6", + "operationId": "UpdateBulk7", "requestBody": { "content": { "application/json": { @@ -4227,7 +4992,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "UpdateBulkChangedValuesOnly6", + "operationId": "UpdateBulkChangedValuesOnly7", "requestBody": { "content": { "application/json": { @@ -4276,7 +5041,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "HardDeleteById6", + "operationId": "HardDeleteById7", "requestBody": { "content": { "application/json": { @@ -4325,7 +5090,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "HardDeleteBulkByIds6", + "operationId": "HardDeleteBulkByIds7", "requestBody": { "content": { "application/json": { @@ -4374,7 +5139,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "SoftDeleteById6", + "operationId": "SoftDeleteById7", "requestBody": { "content": { "application/json": { @@ -4423,7 +5188,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "SoftDeleteBulkByIds6", + "operationId": "SoftDeleteBulkByIds7", "requestBody": { "content": { "application/json": { @@ -4472,7 +5237,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "GetByUniqueIdentity6", + "operationId": "GetByUniqueIdentity7", "requestBody": { "content": { "application/json": { @@ -4521,7 +5286,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "GetBy6", + "operationId": "GetBy7", "requestBody": { "content": { "application/json": { @@ -4570,7 +5335,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "GetAll6", + "operationId": "GetAll7", "responses": { "200": { "description": "Success", @@ -4600,7 +5365,7 @@ "tags": [ "NoParentFormItem" ], - "operationId": "GetAllByUniqueIdentity6", + "operationId": "GetAllByUniqueIdentity7", "requestBody": { "content": { "application/json": { @@ -4760,6 +5525,30 @@ } } }, + "ActionExecutionStatusType": { + "type": "integer", + "format": "int32", + "x-enumNames": [ + "None", + "Default", + "All", + "Other", + "Unknown", + "Nothing", + "Success", + "Failed" + ], + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7 + ] + }, "CreateFormItemContract": { "type": "object", "additionalProperties": false, @@ -5515,6 +6304,161 @@ } } }, + "FormItemEventActionContract": { + "type": "object", + "additionalProperties": false, + "properties": { + "formItemEventId": { + "type": "integer", + "format": "int64" + }, + "actionId": { + "type": "integer", + "format": "int64" + }, + "action": { + "$ref": "#/components/schemas/ActionContract" + }, + "formItemEventActionCallHistories": { + "title": "List", + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/FormItemEventActionExecutionContract" + } + } + } + }, + "FormItemEventActionExecutionContract": { + "type": "object", + "additionalProperties": false, + "properties": { + "requestJson": { + "type": "string", + "nullable": true + }, + "responseJson": { + "type": "string", + "nullable": true + }, + "status": { + "$ref": "#/components/schemas/ActionExecutionStatusType" + } + } + }, + "FormItemEventContract": { + "type": "object", + "additionalProperties": false, + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "formItemId": { + "type": "integer", + "format": "int64" + }, + "eventId": { + "type": "integer", + "format": "int64" + }, + "formItem": { + "$ref": "#/components/schemas/FormItemContract" + }, + "event": { + "$ref": "#/components/schemas/EventContract" + }, + "formItemEventActions": { + "title": "List", + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/FormItemEventActionContract" + } + } + } + }, + "FormItemEventContractCreateBulkRequestContract": { + "title": "CreateBulkRequestContract", + "type": "object", + "additionalProperties": false, + "properties": { + "items": { + "title": "List", + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/FormItemEventContract" + } + } + } + }, + "FormItemEventContractListMessageContract": { + "title": "ListMessageContract", + "type": "object", + "additionalProperties": false, + "properties": { + "isSuccess": { + "type": "boolean" + }, + "error": { + "$ref": "#/components/schemas/ErrorContract" + }, + "success": { + "$ref": "#/components/schemas/SuccessContract" + }, + "result": { + "title": "List", + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/FormItemEventContract" + } + }, + "totalCount": { + "type": "integer", + "format": "int64" + }, + "hasItems": { + "type": "boolean", + "readOnly": true + } + } + }, + "FormItemEventContractMessageContract": { + "title": "MessageContract", + "type": "object", + "additionalProperties": false, + "properties": { + "isSuccess": { + "type": "boolean" + }, + "error": { + "$ref": "#/components/schemas/ErrorContract" + }, + "success": { + "$ref": "#/components/schemas/SuccessContract" + }, + "result": { + "$ref": "#/components/schemas/FormItemEventContract" + } + } + }, + "FormItemEventContractUpdateBulkRequestContract": { + "title": "UpdateBulkRequestContract", + "type": "object", + "additionalProperties": false, + "properties": { + "items": { + "title": "List", + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/FormItemEventContract" + } + } + } + }, "FormItemValueContract": { "type": "object", "additionalProperties": false, diff --git a/src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.Clients/EasyMicroservices.TemplateGeneratorMicroservice.Clients.csproj b/src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.Clients/EasyMicroservices.TemplateGeneratorMicroservice.Clients.csproj index 7cfbf64..1db3330 100644 --- a/src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.Clients/EasyMicroservices.TemplateGeneratorMicroservice.Clients.csproj +++ b/src/CSharp/EasyMicroservices.TemplateGeneratorMicroservice.Clients/EasyMicroservices.TemplateGeneratorMicroservice.Clients.csproj @@ -5,7 +5,7 @@ AnyCPU;x64;x86 EasyMicroservices true - 0.0.0.21 + 0.0.0.22 client generated code. EasyMicroservices@gmail.com Label,microservice,whitelabel,tenant,tenants