|
@ -1,5 +1,3 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//----------------------
|
|
|
//----------------------
|
|
|
// <auto-generated>
|
|
|
// <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.0.7.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
@ -72,7 +70,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <returns>Success</returns>
|
|
|
/// <returns>Success</returns>
|
|
|
/// <exception cref="ApiException">A server side error occurred.</exception>
|
|
|
/// <exception cref="ApiException">A server side error occurred.</exception>
|
|
|
public virtual System.Threading.Tasks.Task<int> GetMacStaticAsync() |
|
|
public virtual System.Threading.Tasks.Task<ResultJson> GetMacStaticAsync() |
|
|
{ |
|
|
{ |
|
|
return GetMacStaticAsync(System.Threading.CancellationToken.None); |
|
|
return GetMacStaticAsync(System.Threading.CancellationToken.None); |
|
|
} |
|
|
} |
|
@ -83,7 +81,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <returns>Success</returns>
|
|
|
/// <returns>Success</returns>
|
|
|
/// <exception cref="ApiException">A server side error occurred.</exception>
|
|
|
/// <exception cref="ApiException">A server side error occurred.</exception>
|
|
|
public virtual async System.Threading.Tasks.Task<int> GetMacStaticAsync(System.Threading.CancellationToken cancellationToken) |
|
|
public virtual async System.Threading.Tasks.Task<ResultJson> GetMacStaticAsync(System.Threading.CancellationToken cancellationToken) |
|
|
{ |
|
|
{ |
|
|
var client_ = _httpClient; |
|
|
var client_ = _httpClient; |
|
|
var disposeClient_ = false; |
|
|
var disposeClient_ = false; |
|
@ -98,8 +96,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
var urlBuilder_ = new System.Text.StringBuilder(); |
|
|
var urlBuilder_ = new System.Text.StringBuilder(); |
|
|
if (!string.IsNullOrEmpty(_baseUrl)) urlBuilder_.Append(_baseUrl); |
|
|
if (!string.IsNullOrEmpty(_baseUrl)) urlBuilder_.Append(_baseUrl); |
|
|
// Operation Path: "CargoState/GetMacStatic"
|
|
|
// Operation Path: "CargoState/GetMacStatic"
|
|
|
urlBuilder_.Append("CargoState/GetMacStatic"); |
|
|
urlBuilder_.Append("api/CargoState/GetMacStatic"); |
|
|
|
|
|
//urlBuilder_.Append("CargoState/GetMacStatic");
|
|
|
PrepareRequest(client_, request_, urlBuilder_); |
|
|
PrepareRequest(client_, request_, urlBuilder_); |
|
|
|
|
|
|
|
|
var url_ = urlBuilder_.ToString(); |
|
|
var url_ = urlBuilder_.ToString(); |
|
@ -125,7 +123,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
var status_ = (int)response_.StatusCode; |
|
|
var status_ = (int)response_.StatusCode; |
|
|
if (status_ == 200) |
|
|
if (status_ == 200) |
|
|
{ |
|
|
{ |
|
|
var objectResponse_ = await ReadObjectResponseAsync<int>(response_, headers_, cancellationToken).ConfigureAwait(false); |
|
|
var objectResponse_ = await ReadObjectResponseAsync<ResultJson>(response_, headers_, cancellationToken).ConfigureAwait(false); |
|
|
if (objectResponse_.Object == null) |
|
|
if (objectResponse_.Object == null) |
|
|
{ |
|
|
{ |
|
|
throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); |
|
|
throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); |
|
@ -214,7 +212,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
|
|
|
|
|
|
/// <returns>Success</returns>
|
|
|
/// <returns>Success</returns>
|
|
|
/// <exception cref="ApiException">A server side error occurred.</exception>
|
|
|
/// <exception cref="ApiException">A server side error occurred.</exception>
|
|
|
public virtual System.Threading.Tasks.Task<System.Collections.Generic.ICollection<ResponCargoItem>> GetCargoStaticAsync(string areaID) |
|
|
public virtual System.Threading.Tasks.Task<ResponCargos> GetCargoStaticAsync(string areaID) |
|
|
{ |
|
|
{ |
|
|
return GetCargoStaticAsync(areaID, System.Threading.CancellationToken.None); |
|
|
return GetCargoStaticAsync(areaID, System.Threading.CancellationToken.None); |
|
|
} |
|
|
} |
|
@ -222,7 +220,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
|
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
|
|
|
/// <returns>Success</returns>
|
|
|
/// <returns>Success</returns>
|
|
|
/// <exception cref="ApiException">A server side error occurred.</exception>
|
|
|
/// <exception cref="ApiException">A server side error occurred.</exception>
|
|
|
public virtual async System.Threading.Tasks.Task<System.Collections.Generic.ICollection<ResponCargoItem>> GetCargoStaticAsync(string areaID, System.Threading.CancellationToken cancellationToken) |
|
|
public virtual async System.Threading.Tasks.Task<ResponCargos> GetCargoStaticAsync(string areaID, System.Threading.CancellationToken cancellationToken) |
|
|
{ |
|
|
{ |
|
|
var client_ = _httpClient; |
|
|
var client_ = _httpClient; |
|
|
var disposeClient_ = false; |
|
|
var disposeClient_ = false; |
|
@ -269,7 +267,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
var status_ = (int)response_.StatusCode; |
|
|
var status_ = (int)response_.StatusCode; |
|
|
if (status_ == 200) |
|
|
if (status_ == 200) |
|
|
{ |
|
|
{ |
|
|
var objectResponse_ = await ReadObjectResponseAsync<System.Collections.Generic.ICollection<ResponCargoItem>>(response_, headers_, cancellationToken).ConfigureAwait(false); |
|
|
var objectResponse_ = await ReadObjectResponseAsync<ResponCargos>(response_, headers_, cancellationToken).ConfigureAwait(false); |
|
|
if (objectResponse_.Object == null) |
|
|
if (objectResponse_.Object == null) |
|
|
{ |
|
|
{ |
|
|
throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); |
|
|
throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); |
|
@ -536,6 +534,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public partial class ResponCargoItem1 |
|
|
public partial class ResponCargoItem1 |
|
|
{ |
|
|
{ |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
@ -572,6 +571,45 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.InjectionMoldingTaskAgent.Incoming |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.0.7.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0))")] |
|
|
|
|
|
public partial class ResponCargos |
|
|
|
|
|
{ |
|
|
|
|
|
[Newtonsoft.Json.JsonProperty("code", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] |
|
|
|
|
|
public int Code { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] |
|
|
|
|
|
public int Value { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[Newtonsoft.Json.JsonProperty("msg", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] |
|
|
|
|
|
public string Msg { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[Newtonsoft.Json.JsonProperty("datalist", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] |
|
|
|
|
|
public System.Collections.Generic.ICollection<ResponCargoItem> Datalist { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.0.7.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0))")] |
|
|
|
|
|
public partial class ResultJson |
|
|
|
|
|
{ |
|
|
|
|
|
[Newtonsoft.Json.JsonProperty("code", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] |
|
|
|
|
|
public int Code { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] |
|
|
|
|
|
public int Value { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[Newtonsoft.Json.JsonProperty("result", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] |
|
|
|
|
|
public string Result { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[Newtonsoft.Json.JsonProperty("msg", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] |
|
|
|
|
|
public string Msg { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[Newtonsoft.Json.JsonProperty("valuestr", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] |
|
|
|
|
|
public string Valuestr { 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.0.7.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0))")] |
|
|
public partial class ApiException : System.Exception |
|
|
public partial class ApiException : System.Exception |
|
|
{ |
|
|
{ |
|
|