@ -1,6 +1,6 @@
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v14.0.7.0 (NJsonSchema v11.0 .0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
// Generated using the NSwag toolchain v14.2.0.0 (NJsonSchema v11.1 .0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
@ -8,6 +8,7 @@
#pragma warning disable 114 // Disable "CS0114 '{derivedDto}.RaisePropertyChanged(String)' hides inherited member 'dtoBase.RaisePropertyChanged(String)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword."
#pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?'
#pragma warning disable 612 // Disable "CS0612 '...' is obsolete"
#pragma warning disable 649 // Disable "CS0649 Field is never assigned to, and will always have its default value null"
#pragma warning disable 1573 // Disable "CS1573 Parameter '...' has no matching param tag in the XML comment for ...
#pragma warning disable 1591 // Disable "CS1591 Missing XML comment for publicly visible type or member ..."
#pragma warning disable 8073 // Disable "CS8073 The result of the expression is always 'false' since a value of type 'T' is never equal to 'null' of type 'T?'"
@ -15,14 +16,14 @@
#pragma warning disable 8603 // Disable "CS8603 Possible null reference return"
#pragma warning disable 8604 // Disable "CS8604 Possible null reference argument for parameter"
#pragma warning disable 8625 // Disable "CS8625 Cannot convert null literal to non-nullable reference type"
#pragma warning disable CS 8765 // Nullability of type of parameter doesn't match overridden member (possibly because of nullability attributes).
#pragma warning disable 8765 // Disable "CS8765 Nullability of type of parameter doesn't match overridden member (possibly because of nullability attributes)."
namespace Win_in.Sfs.Wms.Store.Jobs.IssueJobs.proxy ;
namespace Win_in.Sfs.Wms.Store.Jobs.IssueJobs.proxy
{
using Win_in.Sfs.Wms.Store.Application.Contracts ;
using System = global :: System ;
using Win_in.Sfs.Wms.Store.Application.Contracts ;
using System = global :: System ;
[System.CodeDom.Compiler.GeneratedCode("NSwag", "14.0.7.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class AgvJobClient
{
#pragma warning disable 8618
@ -30,24 +31,37 @@ using System = global::System;
#pragma warning restore 8618
private System . Net . Http . HttpClient _ httpClient ;
private static System . Lazy < Newtonsoft . Json . JsonSerializerSettings > _ settings = new System . Lazy < Newtonsoft . Json . JsonSerializerSettings > ( CreateSerializerSettings , true ) ;
private static System . Lazy < System . Text . Json . JsonSerializerOptions > _ settings = new System . Lazy < System . Text . Json . JsonSerializerOptions > ( CreateSerializerSettings , true ) ;
private System . Text . Json . JsonSerializerOptions _ instanceSettings ;
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public AgvJobClient ( string baseUrl , System . Net . Http . HttpClient httpClient , string path )
public AgvJobClient ( string baseUrl , System . Net . Http . HttpClient httpClient , string path )
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
{
_ path = path ;
BaseUrl = baseUrl ;
BaseUrl = baseUrl ;
_ httpClient = httpClient ;
_ path = path ;
Initialize ( ) ;
}
private static Newtonsoft . Json . JsonSerializerSettings CreateSerializerSettings ( )
private static System . Text . Json . JsonSerializerOptions CreateSerializerSettings ( )
{
var settings = new Newtonsof t. Json . JsonSerializerSetting s ( ) ;
var settings = new System . Tex t. Json . JsonSerializerOption s ( ) ;
UpdateJsonSerializerSettings ( settings ) ;
return settings ;
}
private string _ path ;
public string Path
{
get { return _ path ; }
set
{
_ path = value ;
}
}
public string BaseUrl
{
get { return _ baseUrl ; }
@ -58,19 +72,12 @@ using System = global::System;
_ baseUrl + = '/' ;
}
}
private string _ path ;
public string Path
{
get { return _ path ; }
set
{
_ path = value ;
}
}
protected Newtonsoft . Json . JsonSerializerSettings JsonSerializerSettings { get { return _ settings . Value ; } }
protected System . Text . Json . JsonSerializerOptions JsonSerializerSettings { get { return _ instanceSettings ? ? _ settings . Value ; } }
static partial void UpdateJsonSerializerSettings ( System . Text . Json . JsonSerializerOptions settings ) ;
static partial void UpdateJsonSerializerSettings ( Newtonsoft . Json . JsonSerializerSettings settings ) ;
partial void Initialize ( ) ;
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 ) ;
@ -94,12 +101,12 @@ using System = global::System;
{
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
{
var json_ = Newtonsof t. Json . JsonConvert . SerializeObject ( body , _ settings . Value ) ;
var content_ = new System . Net . Http . String Content( json_ ) ;
var json_ = System . Tex t. Json . JsonSerializer . SerializeToUtf8Bytes ( body , JsonSerializerSettings ) ;
var content_ = new System . Net . Http . ByteArray Content( 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 " ) ) ;
request_ . Headers . Accept . Add ( System . Net . Http . Headers . MediaTypeWithQualityHeaderValue . Parse ( "*/* " ) ) ;
var urlBuilder_ = new System . Text . StringBuilder ( ) ;
if ( ! string . IsNullOrEmpty ( _ baseUrl ) ) urlBuilder_ . Append ( _ baseUrl ) ;
@ -236,12 +243,12 @@ using System = global::System;
{
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
{
var json_ = Newtonsof t. Json . JsonConvert . SerializeObject ( body , _ settings . Value ) ;
var content_ = new System . Net . Http . String Content( json_ ) ;
var json_ = System . Tex t. Json . JsonSerializer . SerializeToUtf8Bytes ( body , JsonSerializerSettings ) ;
var content_ = new System . Net . Http . ByteArray Content( 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 " ) ) ;
request_ . Headers . Accept . Add ( System . Net . Http . Headers . MediaTypeWithQualityHeaderValue . Parse ( "*/* " ) ) ;
var urlBuilder_ = new System . Text . StringBuilder ( ) ;
if ( ! string . IsNullOrEmpty ( _ baseUrl ) ) urlBuilder_ . Append ( _ baseUrl ) ;
@ -378,12 +385,12 @@ using System = global::System;
{
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
{
var json_ = Newtonsof t. Json . JsonConvert . SerializeObject ( body , _ settings . Value ) ;
var content_ = new System . Net . Http . String Content( json_ ) ;
var json_ = System . Tex t. Json . JsonSerializer . SerializeToUtf8Bytes ( body , JsonSerializerSettings ) ;
var content_ = new System . Net . Http . ByteArray Content( 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 " ) ) ;
request_ . Headers . Accept . Add ( System . Net . Http . Headers . MediaTypeWithQualityHeaderValue . Parse ( "*/* " ) ) ;
var urlBuilder_ = new System . Text . StringBuilder ( ) ;
if ( ! string . IsNullOrEmpty ( _ baseUrl ) ) urlBuilder_ . Append ( _ baseUrl ) ;
@ -520,12 +527,15 @@ using System = global::System;
{
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
{
var json_ = Newtonsof t. Json . JsonConvert . SerializeObject ( body , _ settings . Value ) ;
var content_ = new System . Net . Http . String Content( json_ ) ;
var json_ = System . Tex t. Json . JsonSerializer . SerializeToUtf8Bytes ( body , JsonSerializerSettings ) ;
var content_ = new System . Net . Http . ByteArray Content( 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" ) ) ;
request_ . Headers . Accept . Add ( System . Net . Http . Headers . MediaTypeWithQualityHeaderValue . Parse ( "*/*" ) ) ;
var urlBuilder_ = new System . Text . StringBuilder ( ) ;
if ( ! string . IsNullOrEmpty ( _ baseUrl ) ) urlBuilder_ . Append ( _ baseUrl ) ;
@ -662,12 +672,12 @@ using System = global::System;
{
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
{
var json_ = Newtonsof t. Json . JsonConvert . SerializeObject ( body , _ settings . Value ) ;
var content_ = new System . Net . Http . String Content( json_ ) ;
var json_ = System . Tex t. Json . JsonSerializer . SerializeToUtf8Bytes ( body , JsonSerializerSettings ) ;
var content_ = new System . Net . Http . ByteArray Content( 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 " ) ) ;
request_ . Headers . Accept . Add ( System . Net . Http . Headers . MediaTypeWithQualityHeaderValue . Parse ( "*/* " ) ) ;
var urlBuilder_ = new System . Text . StringBuilder ( ) ;
if ( ! string . IsNullOrEmpty ( _ baseUrl ) ) urlBuilder_ . Append ( _ baseUrl ) ;
@ -804,12 +814,12 @@ using System = global::System;
{
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
{
var json_ = Newtonsof t. Json . JsonConvert . SerializeObject ( body , _ settings . Value ) ;
var content_ = new System . Net . Http . String Content( json_ ) ;
var json_ = System . Tex t. Json . JsonSerializer . SerializeToUtf8Bytes ( body , JsonSerializerSettings ) ;
var content_ = new System . Net . Http . ByteArray Content( 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 " ) ) ;
request_ . Headers . Accept . Add ( System . Net . Http . Headers . MediaTypeWithQualityHeaderValue . Parse ( "*/* " ) ) ;
var urlBuilder_ = new System . Text . StringBuilder ( ) ;
if ( ! string . IsNullOrEmpty ( _ baseUrl ) ) urlBuilder_ . Append ( _ baseUrl ) ;
@ -946,12 +956,12 @@ using System = global::System;
{
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
{
var json_ = Newtonsof t. Json . JsonConvert . SerializeObject ( body , _ settings . Value ) ;
var content_ = new System . Net . Http . String Content( json_ ) ;
var json_ = System . Tex t. Json . JsonSerializer . SerializeToUtf8Bytes ( body , JsonSerializerSettings ) ;
var content_ = new System . Net . Http . ByteArray Content( 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 " ) ) ;
request_ . Headers . Accept . Add ( System . Net . Http . Headers . MediaTypeWithQualityHeaderValue . Parse ( "*/* " ) ) ;
var urlBuilder_ = new System . Text . StringBuilder ( ) ;
if ( ! string . IsNullOrEmpty ( _ baseUrl ) ) urlBuilder_ . Append ( _ baseUrl ) ;
@ -1088,12 +1098,12 @@ using System = global::System;
{
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
{
var json_ = Newtonsof t. Json . JsonConvert . SerializeObject ( body , _ settings . Value ) ;
var content_ = new System . Net . Http . String Content( json_ ) ;
var json_ = System . Tex t. Json . JsonSerializer . SerializeToUtf8Bytes ( body , JsonSerializerSettings ) ;
var content_ = new System . Net . Http . ByteArray Content( 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 " ) ) ;
request_ . Headers . Accept . Add ( System . Net . Http . Headers . MediaTypeWithQualityHeaderValue . Parse ( "*/* " ) ) ;
var urlBuilder_ = new System . Text . StringBuilder ( ) ;
if ( ! string . IsNullOrEmpty ( _ baseUrl ) ) urlBuilder_ . Append ( _ baseUrl ) ;
@ -1239,10 +1249,10 @@ using System = global::System;
var responseText = await response . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
try
{
var typedBody = Newtonsof t. Json . JsonConvert . DeserializeObject < T > ( responseText , JsonSerializerSettings ) ;
var typedBody = System . Tex t. Json . JsonSerializer . Deserialize < T > ( responseText , JsonSerializerSettings ) ;
return new ObjectResponseResult < T > ( typedBody , responseText ) ;
}
catch ( Newtonsof t. Json . JsonException exception )
catch ( System . Tex t. 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 ) ;
@ -1253,15 +1263,12 @@ using System = global::System;
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 < T > ( jsonTextReader ) ;
var typedBody = await System . Text . Json . JsonSerializer . DeserializeAsync < T > ( responseStream , JsonSerializerSettings , cancellationToken ) . ConfigureAwait ( false ) ;
return new ObjectResponseResult < T > ( typedBody , string . Empty ) ;
}
}
catch ( Newtonsof t. Json . JsonException exception )
catch ( System . Tex t. 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 ) ;
@ -1324,50 +1331,53 @@ using System = global::System;
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.0.7.0 (NJsonSchema v11.0 .0.0 (Newtonsoft.Json v13.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1 .0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class RemoteServiceErrorInfo
{
[Newtonsoft.Json.JsonProperty("code", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonPropertyName("code")]
public string Code { get ; set ; }
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore )]
[System.Text.Json.Serialization.JsonPropertyName("message" )]
public string Message { get ; set ; }
[Newtonsoft.Json.JsonProperty("details", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore )]
[System.Text.Json.Serialization.JsonPropertyName("details" )]
public string Details { get ; set ; }
[Newtonsoft.Json.JsonProperty("data", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore )]
[System.Text.Json.Serialization.JsonPropertyName("data" )]
public System . Collections . Generic . IDictionary < string , object > Data { get ; set ; }
[Newtonsoft.Json.JsonProperty("validationErrors", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore )]
[System.Text.Json.Serialization.JsonPropertyName("validationErrors" )]
public System . Collections . Generic . ICollection < RemoteServiceValidationErrorInfo > ValidationErrors { get ; set ; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.0.7.0 (NJsonSchema v11.0 .0.0 (Newtonsoft.Json v13.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1 .0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class RemoteServiceErrorResponse
{
[Newtonsoft.Json.JsonProperty("error", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonPropertyName("error")]
public RemoteServiceErrorInfo Error { get ; set ; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.0.7.0 (NJsonSchema v11.0 .0.0 (Newtonsoft.Json v13.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1 .0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class RemoteServiceValidationErrorInfo
{
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.Text.Json.Serialization.JsonPropertyName("message")]
public string Message { get ; set ; }
[Newtonsoft.Json.JsonProperty("members", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore )]
[System.Text.Json.Serialization.JsonPropertyName("members" )]
public System . Collections . Generic . ICollection < string > Members { get ; set ; }
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "14.0.7.0 (NJsonSchema v11.0 .0.0 (Newtonsoft.Json v13.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "14.2.0.0 (NJsonSchema v11.1 .0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class ApiException : System . Exception
{
public int StatusCode { get ; private set ; }
@ -1390,7 +1400,7 @@ using System = global::System;
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "14.0.7.0 (NJsonSchema v11.0 .0.0 (Newtonsoft.Json v13.0.0.0))")]
[System.CodeDom.Compiler.GeneratedCode("NSwag", "14.2.0.0 (NJsonSchema v11.1 .0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class ApiException < TResult > : ApiException
{
public TResult Result { get ; private set ; }
@ -1402,7 +1412,7 @@ using System = global::System;
}
}
}
#pragma warning restore 108
#pragma warning restore 114