diff --git a/misc/BreCalApi.cs b/misc/BreCalApi.cs
index f76c708..f53e437 100644
--- a/misc/BreCalApi.cs
+++ b/misc/BreCalApi.cs
@@ -1,7 +1,7 @@
//----------------------
//
-// Generated REST API Client Code Generator v1.8.4.0 on 21.09.2023 07:07:32
+// Generated REST API Client Code Generator v1.8.4.0 on 29.09.2023 14:42:26
// Using the tool OpenAPI Generator v7.0.0
//
//----------------------
@@ -51,7 +51,6 @@ using System.Threading.Tasks;
*/
namespace BreCalClient.misc.Api
{
-#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
///
/// Represents a collection of functions to interact with the API endpoints
///
@@ -157,8 +156,8 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
/// Index associated with the operation.
- ///
- void ShipcallsPost(Shipcall shipcall, int operationIndex = 0);
+ /// Id
+ Id ShipcallsPost(Shipcall shipcall, int operationIndex = 0);
///
/// Create a new ship call
///
@@ -168,16 +167,16 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
/// Index associated with the operation.
- /// ApiResponse of Object(void)
- ApiResponse ShipcallsPostWithHttpInfo(Shipcall shipcall, int operationIndex = 0);
+ /// ApiResponse of Id
+ ApiResponse ShipcallsPostWithHttpInfo(Shipcall shipcall, int operationIndex = 0);
///
/// Updates a ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
/// Index associated with the operation.
- ///
- void ShipcallsPut(Shipcall shipcall, int operationIndex = 0);
+ /// Id
+ Id ShipcallsPut(Shipcall shipcall, int operationIndex = 0);
///
/// Updates a ship call
///
@@ -187,8 +186,8 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
/// Index associated with the operation.
- /// ApiResponse of Object(void)
- ApiResponse ShipcallsPutWithHttpInfo(Shipcall shipcall, int operationIndex = 0);
+ /// ApiResponse of Id
+ ApiResponse ShipcallsPutWithHttpInfo(Shipcall shipcall, int operationIndex = 0);
///
/// gets a list of registered shipcalls
///
@@ -250,8 +249,8 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
/// Index associated with the operation.
- ///
- void TimesPost(Times times, int operationIndex = 0);
+ /// Id
+ Id TimesPost(Times times, int operationIndex = 0);
///
/// Create a new times entry for a ship call
///
@@ -261,16 +260,16 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
/// Index associated with the operation.
- /// ApiResponse of Object(void)
- ApiResponse TimesPostWithHttpInfo(Times times, int operationIndex = 0);
+ /// ApiResponse of Id
+ ApiResponse TimesPostWithHttpInfo(Times times, int operationIndex = 0);
///
/// Update a times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
/// Index associated with the operation.
- ///
- void TimesPut(Times times, int operationIndex = 0);
+ /// Id
+ Id TimesPut(Times times, int operationIndex = 0);
///
/// Update a times entry for a ship call
///
@@ -280,8 +279,8 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
/// Index associated with the operation.
- /// ApiResponse of Object(void)
- ApiResponse TimesPutWithHttpInfo(Times times, int operationIndex = 0);
+ /// ApiResponse of Id
+ ApiResponse TimesPutWithHttpInfo(Times times, int operationIndex = 0);
///
/// Update user details (first/last name, phone, password)
///
@@ -437,8 +436,8 @@ namespace BreCalClient.misc.Api
/// Creates a new ship call. **Do not** provide id parameter.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of void
- System.Threading.Tasks.Task ShipcallsPostAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ /// Task of Id
+ System.Threading.Tasks.Task ShipcallsPostAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Create a new ship call
///
@@ -449,8 +448,8 @@ namespace BreCalClient.misc.Api
/// Creates a new ship call. **Do not** provide id parameter.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse
- System.Threading.Tasks.Task> ShipcallsPostWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ /// Task of ApiResponse (Id)
+ System.Threading.Tasks.Task> ShipcallsPostWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Updates a ship call
///
@@ -461,8 +460,8 @@ namespace BreCalClient.misc.Api
/// Creates a new ship call. The id parameter is **required**.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of void
- System.Threading.Tasks.Task ShipcallsPutAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ /// Task of Id
+ System.Threading.Tasks.Task ShipcallsPutAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Updates a ship call
///
@@ -473,8 +472,8 @@ namespace BreCalClient.misc.Api
/// Creates a new ship call. The id parameter is **required**.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse
- System.Threading.Tasks.Task> ShipcallsPutWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ /// Task of ApiResponse (Id)
+ System.Threading.Tasks.Task> ShipcallsPutWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// gets a list of registered shipcalls
///
@@ -555,8 +554,8 @@ namespace BreCalClient.misc.Api
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of void
- System.Threading.Tasks.Task TimesPostAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ /// Task of Id
+ System.Threading.Tasks.Task TimesPostAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Create a new times entry for a ship call
///
@@ -567,8 +566,8 @@ namespace BreCalClient.misc.Api
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse
- System.Threading.Tasks.Task> TimesPostWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ /// Task of ApiResponse (Id)
+ System.Threading.Tasks.Task> TimesPostWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Update a times entry for a ship call
///
@@ -579,8 +578,8 @@ namespace BreCalClient.misc.Api
/// Times entry that will be added to the ship call. The id parameter is **required**.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of void
- System.Threading.Tasks.Task TimesPutAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ /// Task of Id
+ System.Threading.Tasks.Task TimesPutAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Update a times entry for a ship call
///
@@ -591,8 +590,8 @@ namespace BreCalClient.misc.Api
/// Times entry that will be added to the ship call. The id parameter is **required**.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse
- System.Threading.Tasks.Task> TimesPutWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ /// Task of ApiResponse (Id)
+ System.Threading.Tasks.Task> TimesPutWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Update user details (first/last name, phone, password)
///
@@ -1330,10 +1329,11 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
/// Index associated with the operation.
- ///
- public void ShipcallsPost(Shipcall shipcall, int operationIndex = 0)
+ /// Id
+ public Id ShipcallsPost(Shipcall shipcall, int operationIndex = 0)
{
- ShipcallsPostWithHttpInfo(shipcall);
+ BreCalClient.misc.Client.ApiResponse localVarResponse = ShipcallsPostWithHttpInfo(shipcall);
+ return localVarResponse.Data;
}
///
/// Create a new ship call
@@ -1341,8 +1341,8 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
/// Index associated with the operation.
- /// ApiResponse of Object(void)
- public BreCalClient.misc.Client.ApiResponse ShipcallsPostWithHttpInfo(Shipcall shipcall, int operationIndex = 0)
+ /// ApiResponse of Id
+ public BreCalClient.misc.Client.ApiResponse ShipcallsPostWithHttpInfo(Shipcall shipcall, int operationIndex = 0)
{
// verify the required parameter 'shipcall' is set
if (shipcall == null)
@@ -1376,7 +1376,7 @@ namespace BreCalClient.misc.Api
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
}
// make the HTTP request
- var localVarResponse = this.Client.Post("/shipcalls", localVarRequestOptions, this.Configuration);
+ var localVarResponse = this.Client.Post("/shipcalls", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("ShipcallsPost", localVarResponse);
@@ -1394,10 +1394,11 @@ namespace BreCalClient.misc.Api
/// Creates a new ship call. **Do not** provide id parameter.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of void
- public async System.Threading.Tasks.Task ShipcallsPostAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ /// Task of Id
+ public async System.Threading.Tasks.Task ShipcallsPostAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- await ShipcallsPostWithHttpInfoAsync(shipcall, operationIndex, cancellationToken).ConfigureAwait(false);
+ BreCalClient.misc.Client.ApiResponse localVarResponse = await ShipcallsPostWithHttpInfoAsync(shipcall, operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
}
///
/// Create a new ship call
@@ -1406,8 +1407,8 @@ namespace BreCalClient.misc.Api
/// Creates a new ship call. **Do not** provide id parameter.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse
- public async System.Threading.Tasks.Task> ShipcallsPostWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ /// Task of ApiResponse (Id)
+ public async System.Threading.Tasks.Task> ShipcallsPostWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'shipcall' is set
if (shipcall == null)
@@ -1441,7 +1442,7 @@ namespace BreCalClient.misc.Api
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
}
// make the HTTP request
- var localVarResponse = await this.AsynchronousClient.PostAsync("/shipcalls", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+ var localVarResponse = await this.AsynchronousClient.PostAsync("/shipcalls", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("ShipcallsPost", localVarResponse);
@@ -1458,10 +1459,11 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
/// Index associated with the operation.
- ///
- public void ShipcallsPut(Shipcall shipcall, int operationIndex = 0)
+ /// Id
+ public Id ShipcallsPut(Shipcall shipcall, int operationIndex = 0)
{
- ShipcallsPutWithHttpInfo(shipcall);
+ BreCalClient.misc.Client.ApiResponse localVarResponse = ShipcallsPutWithHttpInfo(shipcall);
+ return localVarResponse.Data;
}
///
/// Updates a ship call
@@ -1469,8 +1471,8 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
/// Index associated with the operation.
- /// ApiResponse of Object(void)
- public BreCalClient.misc.Client.ApiResponse ShipcallsPutWithHttpInfo(Shipcall shipcall, int operationIndex = 0)
+ /// ApiResponse of Id
+ public BreCalClient.misc.Client.ApiResponse ShipcallsPutWithHttpInfo(Shipcall shipcall, int operationIndex = 0)
{
// verify the required parameter 'shipcall' is set
if (shipcall == null)
@@ -1504,7 +1506,7 @@ namespace BreCalClient.misc.Api
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
}
// make the HTTP request
- var localVarResponse = this.Client.Put("/shipcalls", localVarRequestOptions, this.Configuration);
+ var localVarResponse = this.Client.Put("/shipcalls", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("ShipcallsPut", localVarResponse);
@@ -1522,10 +1524,11 @@ namespace BreCalClient.misc.Api
/// Creates a new ship call. The id parameter is **required**.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of void
- public async System.Threading.Tasks.Task ShipcallsPutAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ /// Task of Id
+ public async System.Threading.Tasks.Task ShipcallsPutAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- await ShipcallsPutWithHttpInfoAsync(shipcall, operationIndex, cancellationToken).ConfigureAwait(false);
+ BreCalClient.misc.Client.ApiResponse localVarResponse = await ShipcallsPutWithHttpInfoAsync(shipcall, operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
}
///
/// Updates a ship call
@@ -1534,8 +1537,8 @@ namespace BreCalClient.misc.Api
/// Creates a new ship call. The id parameter is **required**.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse
- public async System.Threading.Tasks.Task> ShipcallsPutWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ /// Task of ApiResponse (Id)
+ public async System.Threading.Tasks.Task> ShipcallsPutWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'shipcall' is set
if (shipcall == null)
@@ -1569,7 +1572,7 @@ namespace BreCalClient.misc.Api
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
}
// make the HTTP request
- var localVarResponse = await this.AsynchronousClient.PutAsync("/shipcalls", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+ var localVarResponse = await this.AsynchronousClient.PutAsync("/shipcalls", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("ShipcallsPut", localVarResponse);
@@ -1938,10 +1941,11 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
/// Index associated with the operation.
- ///
- public void TimesPost(Times times, int operationIndex = 0)
+ /// Id
+ public Id TimesPost(Times times, int operationIndex = 0)
{
- TimesPostWithHttpInfo(times);
+ BreCalClient.misc.Client.ApiResponse localVarResponse = TimesPostWithHttpInfo(times);
+ return localVarResponse.Data;
}
///
/// Create a new times entry for a ship call
@@ -1949,8 +1953,8 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
/// Index associated with the operation.
- /// ApiResponse of Object(void)
- public BreCalClient.misc.Client.ApiResponse TimesPostWithHttpInfo(Times times, int operationIndex = 0)
+ /// ApiResponse of Id
+ public BreCalClient.misc.Client.ApiResponse TimesPostWithHttpInfo(Times times, int operationIndex = 0)
{
// verify the required parameter 'times' is set
if (times == null)
@@ -1984,7 +1988,7 @@ namespace BreCalClient.misc.Api
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
}
// make the HTTP request
- var localVarResponse = this.Client.Post("/times", localVarRequestOptions, this.Configuration);
+ var localVarResponse = this.Client.Post("/times", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("TimesPost", localVarResponse);
@@ -2002,10 +2006,11 @@ namespace BreCalClient.misc.Api
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of void
- public async System.Threading.Tasks.Task TimesPostAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ /// Task of Id
+ public async System.Threading.Tasks.Task TimesPostAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- await TimesPostWithHttpInfoAsync(times, operationIndex, cancellationToken).ConfigureAwait(false);
+ BreCalClient.misc.Client.ApiResponse localVarResponse = await TimesPostWithHttpInfoAsync(times, operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
}
///
/// Create a new times entry for a ship call
@@ -2014,8 +2019,8 @@ namespace BreCalClient.misc.Api
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse
- public async System.Threading.Tasks.Task> TimesPostWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ /// Task of ApiResponse (Id)
+ public async System.Threading.Tasks.Task> TimesPostWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'times' is set
if (times == null)
@@ -2049,7 +2054,7 @@ namespace BreCalClient.misc.Api
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
}
// make the HTTP request
- var localVarResponse = await this.AsynchronousClient.PostAsync("/times", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+ var localVarResponse = await this.AsynchronousClient.PostAsync("/times", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("TimesPost", localVarResponse);
@@ -2066,10 +2071,11 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
/// Index associated with the operation.
- ///
- public void TimesPut(Times times, int operationIndex = 0)
+ /// Id
+ public Id TimesPut(Times times, int operationIndex = 0)
{
- TimesPutWithHttpInfo(times);
+ BreCalClient.misc.Client.ApiResponse localVarResponse = TimesPutWithHttpInfo(times);
+ return localVarResponse.Data;
}
///
/// Update a times entry for a ship call
@@ -2077,8 +2083,8 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
/// Index associated with the operation.
- /// ApiResponse of Object(void)
- public BreCalClient.misc.Client.ApiResponse TimesPutWithHttpInfo(Times times, int operationIndex = 0)
+ /// ApiResponse of Id
+ public BreCalClient.misc.Client.ApiResponse TimesPutWithHttpInfo(Times times, int operationIndex = 0)
{
// verify the required parameter 'times' is set
if (times == null)
@@ -2112,7 +2118,7 @@ namespace BreCalClient.misc.Api
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
}
// make the HTTP request
- var localVarResponse = this.Client.Put("/times", localVarRequestOptions, this.Configuration);
+ var localVarResponse = this.Client.Put("/times", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("TimesPut", localVarResponse);
@@ -2130,10 +2136,11 @@ namespace BreCalClient.misc.Api
/// Times entry that will be added to the ship call. The id parameter is **required**.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of void
- public async System.Threading.Tasks.Task TimesPutAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ /// Task of Id
+ public async System.Threading.Tasks.Task TimesPutAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- await TimesPutWithHttpInfoAsync(times, operationIndex, cancellationToken).ConfigureAwait(false);
+ BreCalClient.misc.Client.ApiResponse localVarResponse = await TimesPutWithHttpInfoAsync(times, operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
}
///
/// Update a times entry for a ship call
@@ -2142,8 +2149,8 @@ namespace BreCalClient.misc.Api
/// Times entry that will be added to the ship call. The id parameter is **required**.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse
- public async System.Threading.Tasks.Task> TimesPutWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ /// Task of ApiResponse (Id)
+ public async System.Threading.Tasks.Task> TimesPutWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'times' is set
if (times == null)
@@ -2177,7 +2184,7 @@ namespace BreCalClient.misc.Api
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
}
// make the HTTP request
- var localVarResponse = await this.AsynchronousClient.PutAsync("/times", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+ var localVarResponse = await this.AsynchronousClient.PutAsync("/times", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("TimesPut", localVarResponse);
@@ -5338,6 +5345,107 @@ namespace BreCalClient.misc.Model
}
}
+/*
+ * Bremen calling API
+ *
+ * Administer DEBRE ship calls, times and notifications
+ *
+ * The version of the OpenAPI document: 0.6.0
+ * Contact: info@textbausteine.net
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+namespace BreCalClient.misc.Model
+{
+ ///
+ /// A unique identifier for an entity
+ ///
+ [DataContract(Name = "Id")]
+ public partial class Id : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// varId.
+ public Id(int varId = default(int))
+ {
+ this.VarId = varId;
+ }
+ ///
+ /// Gets or Sets VarId
+ ///
+ [DataMember(Name = "id", EmitDefaultValue = true)]
+ public int VarId { get; set; }
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class Id {\n");
+ sb.Append(" VarId: ").Append(VarId).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as Id);
+ }
+ ///
+ /// Returns true if Id instances are equal
+ ///
+ /// Instance of Id to be compared
+ /// Boolean
+ public bool Equals(Id input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.VarId == input.VarId ||
+ this.VarId.Equals(input.VarId)
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.VarId.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+}
+
/*
* Bremen calling API
*
@@ -6397,10 +6505,12 @@ namespace BreCalClient.misc.Model
/// anchored.
/// mooredLock.
/// canceled.
+ /// evaluation.
+ /// evaluationMessage.
/// participants.
/// created.
/// modified.
- public Shipcall(int id = default(int), int shipId = default(int), int type = default(int), DateTime eta = default(DateTime), string voyage = default(string), DateTime? etd = default(DateTime?), int? arrivalBerthId = default(int?), int? departureBerthId = default(int?), bool? tugRequired = default(bool?), bool? pilotRequired = default(bool?), int? flags = default(int?), bool? pierSide = default(bool?), bool? bunkering = default(bool?), bool? replenishingTerminal = default(bool?), bool? replenishingLock = default(bool?), float? draft = default(float?), DateTime? tidalWindowFrom = default(DateTime?), DateTime? tidalWindowTo = default(DateTime?), bool? rainSensitiveCargo = default(bool?), int? recommendedTugs = default(int?), bool? anchored = default(bool?), bool? mooredLock = default(bool?), bool? canceled = default(bool?), List participants = default(List), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
+ public Shipcall(int id = default(int), int shipId = default(int), int type = default(int), DateTime eta = default(DateTime), string voyage = default(string), DateTime? etd = default(DateTime?), int? arrivalBerthId = default(int?), int? departureBerthId = default(int?), bool? tugRequired = default(bool?), bool? pilotRequired = default(bool?), int? flags = default(int?), bool? pierSide = default(bool?), bool? bunkering = default(bool?), bool? replenishingTerminal = default(bool?), bool? replenishingLock = default(bool?), float? draft = default(float?), DateTime? tidalWindowFrom = default(DateTime?), DateTime? tidalWindowTo = default(DateTime?), bool? rainSensitiveCargo = default(bool?), int? recommendedTugs = default(int?), bool? anchored = default(bool?), bool? mooredLock = default(bool?), bool? canceled = default(bool?), int? evaluation = default(int?), string evaluationMessage = default(string), List participants = default(List), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
{
this.Id = id;
this.ShipId = shipId;
@@ -6425,6 +6535,8 @@ namespace BreCalClient.misc.Model
this.Anchored = anchored;
this.MooredLock = mooredLock;
this.Canceled = canceled;
+ this.Evaluation = evaluation;
+ this.EvaluationMessage = evaluationMessage;
this.Participants = participants;
this.Created = created;
this.Modified = modified;
@@ -6546,6 +6658,16 @@ namespace BreCalClient.misc.Model
[DataMember(Name = "canceled", EmitDefaultValue = true)]
public bool? Canceled { get; set; }
///
+ /// Gets or Sets Evaluation
+ ///
+ [DataMember(Name = "evaluation", EmitDefaultValue = true)]
+ public int? Evaluation { get; set; }
+ ///
+ /// Gets or Sets EvaluationMessage
+ ///
+ [DataMember(Name = "evaluation_message", EmitDefaultValue = true)]
+ public string EvaluationMessage { get; set; }
+ ///
/// Gets or Sets Participants
///
/// [1,5,7]
@@ -6592,6 +6714,8 @@ namespace BreCalClient.misc.Model
sb.Append(" Anchored: ").Append(Anchored).Append("\n");
sb.Append(" MooredLock: ").Append(MooredLock).Append("\n");
sb.Append(" Canceled: ").Append(Canceled).Append("\n");
+ sb.Append(" Evaluation: ").Append(Evaluation).Append("\n");
+ sb.Append(" EvaluationMessage: ").Append(EvaluationMessage).Append("\n");
sb.Append(" Participants: ").Append(Participants).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Modified: ").Append(Modified).Append("\n");
@@ -6739,6 +6863,16 @@ namespace BreCalClient.misc.Model
(this.Canceled != null &&
this.Canceled.Equals(input.Canceled))
) &&
+ (
+ this.Evaluation == input.Evaluation ||
+ (this.Evaluation != null &&
+ this.Evaluation.Equals(input.Evaluation))
+ ) &&
+ (
+ this.EvaluationMessage == input.EvaluationMessage ||
+ (this.EvaluationMessage != null &&
+ this.EvaluationMessage.Equals(input.EvaluationMessage))
+ ) &&
(
this.Participants == input.Participants ||
this.Participants != null &&
@@ -6848,6 +6982,14 @@ namespace BreCalClient.misc.Model
{
hashCode = (hashCode * 59) + this.Canceled.GetHashCode();
}
+ if (this.Evaluation != null)
+ {
+ hashCode = (hashCode * 59) + this.Evaluation.GetHashCode();
+ }
+ if (this.EvaluationMessage != null)
+ {
+ hashCode = (hashCode * 59) + this.EvaluationMessage.GetHashCode();
+ }
if (this.Participants != null)
{
hashCode = (hashCode * 59) + this.Participants.GetHashCode();
@@ -7490,6 +7632,5 @@ namespace BreCalClient.misc.Model
yield break;
}
}
-#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
}
diff --git a/misc/BreCalApi.yaml b/misc/BreCalApi.yaml
index 0728e1b..fc29891 100644
--- a/misc/BreCalApi.yaml
+++ b/misc/BreCalApi.yaml
@@ -100,6 +100,8 @@ paths:
schema:
$ref: "#/components/schemas/shipcall"
responses:
+ 201:
+ $ref: "#/components/responses/201"
400:
$ref: "#/components/responses/400"
401:
@@ -119,6 +121,8 @@ paths:
schema:
$ref: "#/components/schemas/shipcall"
responses:
+ 200:
+ $ref: "#/components/responses/200"
400:
$ref: "#/components/responses/400"
401:
@@ -210,6 +214,8 @@ paths:
schema:
$ref: "#/components/schemas/times"
responses:
+ 201:
+ $ref: "#/components/responses/201"
400:
$ref: "#/components/responses/400"
401:
@@ -229,6 +235,8 @@ paths:
schema:
$ref: "#/components/schemas/times"
responses:
+ 200:
+ $ref: "#/components/responses/200"
400:
$ref: "#/components/responses/400"
401:
@@ -702,7 +710,12 @@ components:
user_phone:
type: string
nullable: true
-
+ Id:
+ type: object
+ description: A unique identifier for an entity
+ properties:
+ id:
+ type: integer
Error:
type: object
required:
@@ -718,6 +731,18 @@ components:
in: header
name: Authorization
responses:
+ 200:
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/Id"
+ 201:
+ description: Created
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/Id"
400:
description: Invalid input
content: