diff --git a/misc/BreCalApi.cs b/misc/BreCalApi.cs
index 6fdeb2e..49e523b 100644
--- a/misc/BreCalApi.cs
+++ b/misc/BreCalApi.cs
@@ -1,8 +1,8 @@
//----------------------
//
-// Generated REST API Client Code Generator v1.9.1.0 on 27.12.2023 08:25:38
-// Using the tool OpenAPI Generator v7.1.0
+// Generated REST API Client Code Generator v1.9.3.0 on 14.01.2024 13:10:51
+// Using the tool OpenAPI Generator v7.2.0
//
//----------------------
@@ -46,14 +46,816 @@ using System.Web;
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
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'
+ #pragma warning disable CS8073
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IShipApiSync : IApiAccessor
+ {
+ #region Synchronous Operations
+ ///
+ /// Delete a ship (logically).
+ ///
+ ///
+ /// A ship can only be logically deleted, since it is possible to have been used in previous shipcalls. On logical delete, the ship can no longer be selected in a new ship call.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// Index associated with the operation.
+ /// Id
+ Id ShipDelete(int id, int operationIndex = 0);
+ ///
+ /// Delete a ship (logically).
+ ///
+ ///
+ /// A ship can only be logically deleted, since it is possible to have been used in previous shipcalls. On logical delete, the ship can no longer be selected in a new ship call.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// Index associated with the operation.
+ /// ApiResponse of Id
+ ApiResponse ShipDeleteWithHttpInfo(int id, int operationIndex = 0);
+ ///
+ /// Update a ship entry
+ ///
+ ///
+ /// Updating a ship entry. Please do not modify the IMO number. In that case please add a new entry.
+ ///
+ /// Thrown when fails to make API call
+ /// Updated ship entry. The id parameter is **required**.
+ /// Index associated with the operation.
+ /// Id
+ Id ShipUpdate(Ship ship, int operationIndex = 0);
+ ///
+ /// Update a ship entry
+ ///
+ ///
+ /// Updating a ship entry. Please do not modify the IMO number. In that case please add a new entry.
+ ///
+ /// Thrown when fails to make API call
+ /// Updated ship entry. The id parameter is **required**.
+ /// Index associated with the operation.
+ /// ApiResponse of Id
+ ApiResponse ShipUpdateWithHttpInfo(Ship ship, int operationIndex = 0);
+ ///
+ /// create a new ship entry
+ ///
+ ///
+ /// adds a new non-existing ship to the database. The ships IMO number is the unique identifier.
+ ///
+ /// Thrown when fails to make API call
+ /// Ship details. **Do not** provide id parameter.
+ /// Index associated with the operation.
+ /// Id
+ Id ShipsCreate(Ship ship, int operationIndex = 0);
+ ///
+ /// create a new ship entry
+ ///
+ ///
+ /// adds a new non-existing ship to the database. The ships IMO number is the unique identifier.
+ ///
+ /// Thrown when fails to make API call
+ /// Ship details. **Do not** provide id parameter.
+ /// Index associated with the operation.
+ /// ApiResponse of Id
+ ApiResponse ShipsCreateWithHttpInfo(Ship ship, int operationIndex = 0);
+ ///
+ /// gets a list of ships
+ ///
+ ///
+ /// Gets a list of ships including logically deleted ships to be used with shipcalls
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// List<Ship>
+ List ShipsGet(int operationIndex = 0);
+ ///
+ /// gets a list of ships
+ ///
+ ///
+ /// Gets a list of ships including logically deleted ships to be used with shipcalls
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of List<Ship>
+ ApiResponse> ShipsGetWithHttpInfo(int operationIndex = 0);
+ #endregion Synchronous Operations
+ }
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IShipApiAsync : IApiAccessor
+ {
+ #region Asynchronous Operations
+ ///
+ /// Delete a ship (logically).
+ ///
+ ///
+ /// A ship can only be logically deleted, since it is possible to have been used in previous shipcalls. On logical delete, the ship can no longer be selected in a new ship call.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of Id
+ System.Threading.Tasks.Task ShipDeleteAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Delete a ship (logically).
+ ///
+ ///
+ /// A ship can only be logically deleted, since it is possible to have been used in previous shipcalls. On logical delete, the ship can no longer be selected in a new ship call.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (Id)
+ System.Threading.Tasks.Task> ShipDeleteWithHttpInfoAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Update a ship entry
+ ///
+ ///
+ /// Updating a ship entry. Please do not modify the IMO number. In that case please add a new entry.
+ ///
+ /// Thrown when fails to make API call
+ /// Updated ship entry. The id parameter is **required**.
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of Id
+ System.Threading.Tasks.Task ShipUpdateAsync(Ship ship, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Update a ship entry
+ ///
+ ///
+ /// Updating a ship entry. Please do not modify the IMO number. In that case please add a new entry.
+ ///
+ /// Thrown when fails to make API call
+ /// Updated ship entry. The id parameter is **required**.
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (Id)
+ System.Threading.Tasks.Task> ShipUpdateWithHttpInfoAsync(Ship ship, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// create a new ship entry
+ ///
+ ///
+ /// adds a new non-existing ship to the database. The ships IMO number is the unique identifier.
+ ///
+ /// Thrown when fails to make API call
+ /// Ship details. **Do not** provide id parameter.
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of Id
+ System.Threading.Tasks.Task ShipsCreateAsync(Ship ship, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// create a new ship entry
+ ///
+ ///
+ /// adds a new non-existing ship to the database. The ships IMO number is the unique identifier.
+ ///
+ /// Thrown when fails to make API call
+ /// Ship details. **Do not** provide id parameter.
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (Id)
+ System.Threading.Tasks.Task> ShipsCreateWithHttpInfoAsync(Ship ship, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// gets a list of ships
+ ///
+ ///
+ /// Gets a list of ships including logically deleted ships to be used with shipcalls
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of List<Ship>
+ System.Threading.Tasks.Task> ShipsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// gets a list of ships
+ ///
+ ///
+ /// Gets a list of ships including logically deleted ships to be used with shipcalls
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (List<Ship>)
+ System.Threading.Tasks.Task>> ShipsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ #endregion Asynchronous Operations
+ }
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IShipApi : IShipApiSync, IShipApiAsync
+ {
+ }
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public partial class ShipApi : IShipApi
+ {
+ private BreCalClient.misc.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ public ShipApi() : this((string)null)
+ {
+ }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ public ShipApi(string basePath)
+ {
+ this.Configuration = BreCalClient.misc.Client.Configuration.MergeConfigurations(
+ BreCalClient.misc.Client.GlobalConfiguration.Instance,
+ new BreCalClient.misc.Client.Configuration { BasePath = basePath }
+ );
+ this.Client = new BreCalClient.misc.Client.ApiClient(this.Configuration.BasePath);
+ this.AsynchronousClient = new BreCalClient.misc.Client.ApiClient(this.Configuration.BasePath);
+ this.ExceptionFactory = BreCalClient.misc.Client.Configuration.DefaultExceptionFactory;
+ }
+ ///
+ /// Initializes a new instance of the class
+ /// using Configuration object
+ ///
+ /// An instance of Configuration
+ ///
+ public ShipApi(BreCalClient.misc.Client.Configuration configuration)
+ {
+ if (configuration == null) throw new ArgumentNullException("configuration");
+ this.Configuration = BreCalClient.misc.Client.Configuration.MergeConfigurations(
+ BreCalClient.misc.Client.GlobalConfiguration.Instance,
+ configuration
+ );
+ this.Client = new BreCalClient.misc.Client.ApiClient(this.Configuration.BasePath);
+ this.AsynchronousClient = new BreCalClient.misc.Client.ApiClient(this.Configuration.BasePath);
+ ExceptionFactory = BreCalClient.misc.Client.Configuration.DefaultExceptionFactory;
+ }
+ ///
+ /// Initializes a new instance of the class
+ /// using a Configuration object and client instance.
+ ///
+ /// The client interface for synchronous API access.
+ /// The client interface for asynchronous API access.
+ /// The configuration object.
+ public ShipApi(BreCalClient.misc.Client.ISynchronousClient client, BreCalClient.misc.Client.IAsynchronousClient asyncClient, BreCalClient.misc.Client.IReadableConfiguration configuration)
+ {
+ if (client == null) throw new ArgumentNullException("client");
+ if (asyncClient == null) throw new ArgumentNullException("asyncClient");
+ if (configuration == null) throw new ArgumentNullException("configuration");
+ this.Client = client;
+ this.AsynchronousClient = asyncClient;
+ this.Configuration = configuration;
+ this.ExceptionFactory = BreCalClient.misc.Client.Configuration.DefaultExceptionFactory;
+ }
+ ///
+ /// The client for accessing this underlying API asynchronously.
+ ///
+ public BreCalClient.misc.Client.IAsynchronousClient AsynchronousClient { get; set; }
+ ///
+ /// The client for accessing this underlying API synchronously.
+ ///
+ public BreCalClient.misc.Client.ISynchronousClient Client { get; set; }
+ ///
+ /// Gets the base path of the API client.
+ ///
+ /// The base path
+ public string GetBasePath()
+ {
+ return this.Configuration.BasePath;
+ }
+ ///
+ /// Gets or sets the configuration object
+ ///
+ /// An instance of the Configuration
+ public BreCalClient.misc.Client.IReadableConfiguration Configuration { get; set; }
+ ///
+ /// Provides a factory method hook for the creation of exceptions.
+ ///
+ public BreCalClient.misc.Client.ExceptionFactory ExceptionFactory
+ {
+ get
+ {
+ if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
+ {
+ throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
+ }
+ return _exceptionFactory;
+ }
+ set { _exceptionFactory = value; }
+ }
+ ///
+ /// Delete a ship (logically). A ship can only be logically deleted, since it is possible to have been used in previous shipcalls. On logical delete, the ship can no longer be selected in a new ship call.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// Index associated with the operation.
+ /// Id
+ public Id ShipDelete(int id, int operationIndex = 0)
+ {
+ BreCalClient.misc.Client.ApiResponse localVarResponse = ShipDeleteWithHttpInfo(id);
+ return localVarResponse.Data;
+ }
+ ///
+ /// Delete a ship (logically). A ship can only be logically deleted, since it is possible to have been used in previous shipcalls. On logical delete, the ship can no longer be selected in a new ship call.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// Index associated with the operation.
+ /// ApiResponse of Id
+ public BreCalClient.misc.Client.ApiResponse ShipDeleteWithHttpInfo(int id, int operationIndex = 0)
+ {
+ BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
+ string[] _contentTypes = new string[] {
+ };
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+ var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+ var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+ localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "id", id));
+ localVarRequestOptions.Operation = "ShipApi.ShipDelete";
+ localVarRequestOptions.OperationIndex = operationIndex;
+ // authentication (ApiKey) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
+ }
+ // make the HTTP request
+ var localVarResponse = this.Client.Delete("/ships", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("ShipDelete", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+ return localVarResponse;
+ }
+ ///
+ /// Delete a ship (logically). A ship can only be logically deleted, since it is possible to have been used in previous shipcalls. On logical delete, the ship can no longer be selected in a new ship call.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of Id
+ public async System.Threading.Tasks.Task ShipDeleteAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ BreCalClient.misc.Client.ApiResponse localVarResponse = await ShipDeleteWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+ ///
+ /// Delete a ship (logically). A ship can only be logically deleted, since it is possible to have been used in previous shipcalls. On logical delete, the ship can no longer be selected in a new ship call.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (Id)
+ public async System.Threading.Tasks.Task> ShipDeleteWithHttpInfoAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
+ string[] _contentTypes = new string[] {
+ };
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+ var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+ var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+ localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "id", id));
+ localVarRequestOptions.Operation = "ShipApi.ShipDelete";
+ localVarRequestOptions.OperationIndex = operationIndex;
+ // authentication (ApiKey) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
+ }
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.DeleteAsync("/ships", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("ShipDelete", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+ return localVarResponse;
+ }
+ ///
+ /// Update a ship entry Updating a ship entry. Please do not modify the IMO number. In that case please add a new entry.
+ ///
+ /// Thrown when fails to make API call
+ /// Updated ship entry. The id parameter is **required**.
+ /// Index associated with the operation.
+ /// Id
+ public Id ShipUpdate(Ship ship, int operationIndex = 0)
+ {
+ BreCalClient.misc.Client.ApiResponse localVarResponse = ShipUpdateWithHttpInfo(ship);
+ return localVarResponse.Data;
+ }
+ ///
+ /// Update a ship entry Updating a ship entry. Please do not modify the IMO number. In that case please add a new entry.
+ ///
+ /// Thrown when fails to make API call
+ /// Updated ship entry. The id parameter is **required**.
+ /// Index associated with the operation.
+ /// ApiResponse of Id
+ public BreCalClient.misc.Client.ApiResponse ShipUpdateWithHttpInfo(Ship ship, int operationIndex = 0)
+ {
+ // verify the required parameter 'ship' is set
+ if (ship == null)
+ {
+ throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'ship' when calling ShipApi->ShipUpdate");
+ }
+ BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
+ string[] _contentTypes = new string[] {
+ "application/json"
+ };
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+ var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+ var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+ localVarRequestOptions.Data = ship;
+ localVarRequestOptions.Operation = "ShipApi.ShipUpdate";
+ localVarRequestOptions.OperationIndex = operationIndex;
+ // authentication (ApiKey) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
+ }
+ // make the HTTP request
+ var localVarResponse = this.Client.Put("/ships", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("ShipUpdate", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+ return localVarResponse;
+ }
+ ///
+ /// Update a ship entry Updating a ship entry. Please do not modify the IMO number. In that case please add a new entry.
+ ///
+ /// Thrown when fails to make API call
+ /// Updated ship entry. The id parameter is **required**.
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of Id
+ public async System.Threading.Tasks.Task ShipUpdateAsync(Ship ship, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ BreCalClient.misc.Client.ApiResponse localVarResponse = await ShipUpdateWithHttpInfoAsync(ship, operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+ ///
+ /// Update a ship entry Updating a ship entry. Please do not modify the IMO number. In that case please add a new entry.
+ ///
+ /// Thrown when fails to make API call
+ /// Updated ship entry. The id parameter is **required**.
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (Id)
+ public async System.Threading.Tasks.Task> ShipUpdateWithHttpInfoAsync(Ship ship, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ // verify the required parameter 'ship' is set
+ if (ship == null)
+ {
+ throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'ship' when calling ShipApi->ShipUpdate");
+ }
+ BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
+ string[] _contentTypes = new string[] {
+ "application/json"
+ };
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+ var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+ var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+ localVarRequestOptions.Data = ship;
+ localVarRequestOptions.Operation = "ShipApi.ShipUpdate";
+ localVarRequestOptions.OperationIndex = operationIndex;
+ // authentication (ApiKey) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
+ }
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.PutAsync("/ships", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("ShipUpdate", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+ return localVarResponse;
+ }
+ ///
+ /// create a new ship entry adds a new non-existing ship to the database. The ships IMO number is the unique identifier.
+ ///
+ /// Thrown when fails to make API call
+ /// Ship details. **Do not** provide id parameter.
+ /// Index associated with the operation.
+ /// Id
+ public Id ShipsCreate(Ship ship, int operationIndex = 0)
+ {
+ BreCalClient.misc.Client.ApiResponse localVarResponse = ShipsCreateWithHttpInfo(ship);
+ return localVarResponse.Data;
+ }
+ ///
+ /// create a new ship entry adds a new non-existing ship to the database. The ships IMO number is the unique identifier.
+ ///
+ /// Thrown when fails to make API call
+ /// Ship details. **Do not** provide id parameter.
+ /// Index associated with the operation.
+ /// ApiResponse of Id
+ public BreCalClient.misc.Client.ApiResponse ShipsCreateWithHttpInfo(Ship ship, int operationIndex = 0)
+ {
+ // verify the required parameter 'ship' is set
+ if (ship == null)
+ {
+ throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'ship' when calling ShipApi->ShipsCreate");
+ }
+ BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
+ string[] _contentTypes = new string[] {
+ "application/json"
+ };
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+ var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+ var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+ localVarRequestOptions.Data = ship;
+ localVarRequestOptions.Operation = "ShipApi.ShipsCreate";
+ localVarRequestOptions.OperationIndex = operationIndex;
+ // authentication (ApiKey) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
+ }
+ // make the HTTP request
+ var localVarResponse = this.Client.Post("/ships", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("ShipsCreate", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+ return localVarResponse;
+ }
+ ///
+ /// create a new ship entry adds a new non-existing ship to the database. The ships IMO number is the unique identifier.
+ ///
+ /// Thrown when fails to make API call
+ /// Ship details. **Do not** provide id parameter.
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of Id
+ public async System.Threading.Tasks.Task ShipsCreateAsync(Ship ship, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ BreCalClient.misc.Client.ApiResponse localVarResponse = await ShipsCreateWithHttpInfoAsync(ship, operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+ ///
+ /// create a new ship entry adds a new non-existing ship to the database. The ships IMO number is the unique identifier.
+ ///
+ /// Thrown when fails to make API call
+ /// Ship details. **Do not** provide id parameter.
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (Id)
+ public async System.Threading.Tasks.Task> ShipsCreateWithHttpInfoAsync(Ship ship, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ // verify the required parameter 'ship' is set
+ if (ship == null)
+ {
+ throw new BreCalClient.misc.Client.ApiException(400, "Missing required parameter 'ship' when calling ShipApi->ShipsCreate");
+ }
+ BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
+ string[] _contentTypes = new string[] {
+ "application/json"
+ };
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+ var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+ var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+ localVarRequestOptions.Data = ship;
+ localVarRequestOptions.Operation = "ShipApi.ShipsCreate";
+ localVarRequestOptions.OperationIndex = operationIndex;
+ // authentication (ApiKey) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
+ }
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.PostAsync("/ships", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("ShipsCreate", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+ return localVarResponse;
+ }
+ ///
+ /// gets a list of ships Gets a list of ships including logically deleted ships to be used with shipcalls
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// List<Ship>
+ public List ShipsGet(int operationIndex = 0)
+ {
+ BreCalClient.misc.Client.ApiResponse> localVarResponse = ShipsGetWithHttpInfo();
+ return localVarResponse.Data;
+ }
+ ///
+ /// gets a list of ships Gets a list of ships including logically deleted ships to be used with shipcalls
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of List<Ship>
+ public BreCalClient.misc.Client.ApiResponse> ShipsGetWithHttpInfo(int operationIndex = 0)
+ {
+ BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
+ string[] _contentTypes = new string[] {
+ };
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+ var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+ var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+ localVarRequestOptions.Operation = "ShipApi.ShipsGet";
+ localVarRequestOptions.OperationIndex = operationIndex;
+ // authentication (ApiKey) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
+ }
+ // make the HTTP request
+ var localVarResponse = this.Client.Get>("/ships", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("ShipsGet", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+ return localVarResponse;
+ }
+ ///
+ /// gets a list of ships Gets a list of ships including logically deleted ships to be used with shipcalls
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of List<Ship>
+ public async System.Threading.Tasks.Task> ShipsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ BreCalClient.misc.Client.ApiResponse> localVarResponse = await ShipsGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+ ///
+ /// gets a list of ships Gets a list of ships including logically deleted ships to be used with shipcalls
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (List<Ship>)
+ public async System.Threading.Tasks.Task>> ShipsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
+ string[] _contentTypes = new string[] {
+ };
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+ var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+ }
+ var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+ }
+ localVarRequestOptions.Operation = "ShipApi.ShipsGet";
+ localVarRequestOptions.OperationIndex = operationIndex;
+ // authentication (ApiKey) required
+ if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
+ {
+ localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
+ }
+ // make the HTTP request
+ var localVarResponse = await this.AsynchronousClient.GetAsync>("/ships", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("ShipsGet", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+ return localVarResponse;
+ }
+ }
+}
+/*
+ * Bremen calling API
+ *
+ * Administer DEBRE ship calls, times and notifications
+ *
+ * The version of the OpenAPI document: 1.2.0
+ * Contact: info@textbausteine.net
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+namespace BreCalClient.misc.Api
+{
///
/// Represents a collection of functions to interact with the API endpoints
///
@@ -703,7 +1505,7 @@ namespace BreCalClient.misc.Api
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -799,26 +1601,6 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// ApiResponse of List<Participant>
ApiResponse> ParticipantsGetWithHttpInfo(int? userId = default(int?), int operationIndex = 0);
- ///
- /// gets a list of ships
- ///
- ///
- /// Gets a list of ships including logically deleted ships to be used with shipcalls
- ///
- /// Thrown when fails to make API call
- /// Index associated with the operation.
- /// List<Ship>
- List ShipsGet(int operationIndex = 0);
- ///
- /// gets a list of ships
- ///
- ///
- /// Gets a list of ships including logically deleted ships to be used with shipcalls
- ///
- /// Thrown when fails to make API call
- /// Index associated with the operation.
- /// ApiResponse of List<Ship>
- ApiResponse> ShipsGetWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
///
@@ -919,28 +1701,6 @@ namespace BreCalClient.misc.Api
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<Participant>)
System.Threading.Tasks.Task>> ParticipantsGetWithHttpInfoAsync(int? userId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- ///
- /// gets a list of ships
- ///
- ///
- /// Gets a list of ships including logically deleted ships to be used with shipcalls
- ///
- /// Thrown when fails to make API call
- /// Index associated with the operation.
- /// Cancellation Token to cancel the request.
- /// Task of List<Ship>
- System.Threading.Tasks.Task> ShipsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- ///
- /// gets a list of ships
- ///
- ///
- /// Gets a list of ships including logically deleted ships to be used with shipcalls
- ///
- /// Thrown when fails to make API call
- /// Index associated with the operation.
- /// Cancellation Token to cancel the request.
- /// Task of ApiResponse (List<Ship>)
- System.Threading.Tasks.Task>> ShipsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
///
@@ -1512,118 +2272,6 @@ namespace BreCalClient.misc.Api
}
return localVarResponse;
}
- ///
- /// gets a list of ships Gets a list of ships including logically deleted ships to be used with shipcalls
- ///
- /// Thrown when fails to make API call
- /// Index associated with the operation.
- /// List<Ship>
- public List ShipsGet(int operationIndex = 0)
- {
- BreCalClient.misc.Client.ApiResponse> localVarResponse = ShipsGetWithHttpInfo();
- return localVarResponse.Data;
- }
- ///
- /// gets a list of ships Gets a list of ships including logically deleted ships to be used with shipcalls
- ///
- /// Thrown when fails to make API call
- /// Index associated with the operation.
- /// ApiResponse of List<Ship>
- public BreCalClient.misc.Client.ApiResponse> ShipsGetWithHttpInfo(int operationIndex = 0)
- {
- BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
- string[] _contentTypes = new string[] {
- };
- // to determine the Accept header
- string[] _accepts = new string[] {
- "application/json"
- };
- var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
- if (localVarContentType != null)
- {
- localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
- }
- var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts);
- if (localVarAccept != null)
- {
- localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
- }
- localVarRequestOptions.Operation = "StaticApi.ShipsGet";
- localVarRequestOptions.OperationIndex = operationIndex;
- // authentication (ApiKey) required
- if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
- {
- localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
- }
- // make the HTTP request
- var localVarResponse = this.Client.Get>("/ships", localVarRequestOptions, this.Configuration);
- if (this.ExceptionFactory != null)
- {
- Exception _exception = this.ExceptionFactory("ShipsGet", localVarResponse);
- if (_exception != null)
- {
- throw _exception;
- }
- }
- return localVarResponse;
- }
- ///
- /// gets a list of ships Gets a list of ships including logically deleted ships to be used with shipcalls
- ///
- /// Thrown when fails to make API call
- /// Index associated with the operation.
- /// Cancellation Token to cancel the request.
- /// Task of List<Ship>
- public async System.Threading.Tasks.Task> ShipsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
- {
- BreCalClient.misc.Client.ApiResponse> localVarResponse = await ShipsGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
- return localVarResponse.Data;
- }
- ///
- /// gets a list of ships Gets a list of ships including logically deleted ships to be used with shipcalls
- ///
- /// Thrown when fails to make API call
- /// Index associated with the operation.
- /// Cancellation Token to cancel the request.
- /// Task of ApiResponse (List<Ship>)
- public async System.Threading.Tasks.Task>> ShipsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
- {
- BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
- string[] _contentTypes = new string[] {
- };
- // to determine the Accept header
- string[] _accepts = new string[] {
- "application/json"
- };
- var localVarContentType = BreCalClient.misc.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
- if (localVarContentType != null)
- {
- localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
- }
- var localVarAccept = BreCalClient.misc.Client.ClientUtils.SelectHeaderAccept(_accepts);
- if (localVarAccept != null)
- {
- localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
- }
- localVarRequestOptions.Operation = "StaticApi.ShipsGet";
- localVarRequestOptions.OperationIndex = operationIndex;
- // authentication (ApiKey) required
- if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
- {
- localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
- }
- // make the HTTP request
- var localVarResponse = await this.AsynchronousClient.GetAsync>("/ships", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
- if (this.ExceptionFactory != null)
- {
- Exception _exception = this.ExceptionFactory("ShipsGet", localVarResponse);
- if (_exception != null)
- {
- throw _exception;
- }
- }
- return localVarResponse;
- }
}
}
@@ -1632,7 +2280,7 @@ namespace BreCalClient.misc.Api
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -2451,7 +3099,7 @@ namespace BreCalClient.misc.Api
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -2936,7 +3584,7 @@ namespace BreCalClient.misc.Api
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -3672,7 +4320,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -3732,7 +4380,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -3872,7 +4520,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4090,7 +4738,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4231,7 +4879,7 @@ namespace BreCalClient.misc.Client
///
/// Gets or sets the base path for API access.
///
- public virtual string BasePath
+ public virtual string BasePath
{
get { return _basePath; }
set { _basePath = value; }
@@ -4549,7 +5197,7 @@ namespace BreCalClient.misc.Client
string report = "C# SDK (BreCalClient.misc) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
- report += " Version of the API: 1.1.0\n";
+ report += " Version of the API: 1.2.0\n";
report += " SDK Package Version: 1.0.0\n";
return report;
}
@@ -4618,7 +5266,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4638,7 +5286,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4695,7 +5343,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4728,7 +5376,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4761,7 +5409,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4852,7 +5500,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4969,7 +5617,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5053,7 +5701,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5312,7 +5960,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5340,7 +5988,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5410,7 +6058,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5437,7 +6085,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5504,7 +6152,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5628,41 +6276,41 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
- ) &&
+ ) &&
(
this.OwnerId == input.OwnerId ||
(this.OwnerId != null &&
this.OwnerId.Equals(input.OwnerId))
- ) &&
+ ) &&
(
this.AuthorityId == input.AuthorityId ||
(this.AuthorityId != null &&
this.AuthorityId.Equals(input.AuthorityId))
- ) &&
+ ) &&
(
this.VarLock == input.VarLock ||
(this.VarLock != null &&
this.VarLock.Equals(input.VarLock))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
this.Modified.Equals(input.Modified))
- ) &&
+ ) &&
(
this.Deleted == input.Deleted ||
this.Deleted.Equals(input.Deleted)
@@ -5728,7 +6376,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5816,12 +6464,12 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Username == input.Username ||
(this.Username != null &&
this.Username.Equals(input.Username))
- ) &&
+ ) &&
(
this.Password == input.Password ||
(this.Password != null &&
@@ -5865,7 +6513,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5941,7 +6589,7 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Message == input.Message ||
(this.Message != null &&
@@ -5981,7 +6629,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6021,7 +6669,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6134,33 +6782,33 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.ShipcallId == input.ShipcallId ||
this.ShipcallId.Equals(input.ShipcallId)
- ) &&
+ ) &&
(
this.Timestamp == input.Timestamp ||
(this.Timestamp != null &&
this.Timestamp.Equals(input.Timestamp))
- ) &&
+ ) &&
(
this.Eta == input.Eta ||
(this.Eta != null &&
this.Eta.Equals(input.Eta))
- ) &&
+ ) &&
(
this.Operation == input.Operation ||
this.Operation.Equals(input.Operation)
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -6208,7 +6856,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6273,7 +6921,7 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.VarId == input.VarId ||
this.VarId.Equals(input.VarId)
@@ -6309,7 +6957,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6438,44 +7086,44 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.FirstName == input.FirstName ||
(this.FirstName != null &&
this.FirstName.Equals(input.FirstName))
- ) &&
+ ) &&
(
this.LastName == input.LastName ||
(this.LastName != null &&
this.LastName.Equals(input.LastName))
- ) &&
+ ) &&
(
this.UserName == input.UserName ||
(this.UserName != null &&
this.UserName.Equals(input.UserName))
- ) &&
+ ) &&
(
this.UserPhone == input.UserPhone ||
(this.UserPhone != null &&
this.UserPhone.Equals(input.UserPhone))
- ) &&
+ ) &&
(
this.UserEmail == input.UserEmail ||
(this.UserEmail != null &&
this.UserEmail.Equals(input.UserEmail))
- ) &&
+ ) &&
(
this.Exp == input.Exp ||
this.Exp.Equals(input.Exp)
- ) &&
+ ) &&
(
this.Token == input.Token ||
(this.Token != null &&
@@ -6538,7 +7186,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6645,29 +7293,29 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.ShipcallId == input.ShipcallId ||
this.ShipcallId.Equals(input.ShipcallId)
- ) &&
+ ) &&
(
this.NotificationType == input.NotificationType ||
this.NotificationType.Equals(input.NotificationType)
- ) &&
+ ) &&
(
this.Message == input.Message ||
(this.Message != null &&
this.Message.Equals(input.Message))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
@@ -6718,7 +7366,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6753,7 +7401,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6783,7 +7431,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6818,7 +7466,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6958,50 +7606,50 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
- ) &&
+ ) &&
(
this.Street == input.Street ||
(this.Street != null &&
this.Street.Equals(input.Street))
- ) &&
+ ) &&
(
this.PostalCode == input.PostalCode ||
(this.PostalCode != null &&
this.PostalCode.Equals(input.PostalCode))
- ) &&
+ ) &&
(
this.City == input.City ||
(this.City != null &&
this.City.Equals(input.City))
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
- ) &&
+ ) &&
(
this.Flags == input.Flags ||
(this.Flags != null &&
this.Flags.Equals(input.Flags))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
this.Modified.Equals(input.Modified))
- ) &&
+ ) &&
(
this.Deleted == input.Deleted ||
this.Deleted.Equals(input.Deleted)
@@ -7087,7 +7735,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -7108,7 +7756,7 @@ namespace BreCalClient.misc.Model
/// Initializes a new instance of the class.
///
/// participantId (required).
- /// type (required).
+ /// Currently this is encoded as an integer, since in OpenAPI 3.0 there are no enumerations supported with discrete integer values like a bitwise flag array used here. Each bit corresponds to a role. Since a participant can have multiple roles, these bits are combined by OR. Individual values: 1: BSMD 2: TERMINAL, 4: PILOT, 8: AGENCY, 16: MOORING, 32: PORT_ADMINISTRATION, 64: TUG (required).
public ParticipantAssignment(int participantId = default(int), int type = default(int))
{
this.ParticipantId = participantId;
@@ -7120,8 +7768,9 @@ namespace BreCalClient.misc.Model
[DataMember(Name = "participant_id", IsRequired = true, EmitDefaultValue = true)]
public int ParticipantId { get; set; }
///
- /// Gets or Sets Type
+ /// Currently this is encoded as an integer, since in OpenAPI 3.0 there are no enumerations supported with discrete integer values like a bitwise flag array used here. Each bit corresponds to a role. Since a participant can have multiple roles, these bits are combined by OR. Individual values: 1: BSMD 2: TERMINAL, 4: PILOT, 8: AGENCY, 16: MOORING, 32: PORT_ADMINISTRATION, 64: TUG
///
+ /// Currently this is encoded as an integer, since in OpenAPI 3.0 there are no enumerations supported with discrete integer values like a bitwise flag array used here. Each bit corresponds to a role. Since a participant can have multiple roles, these bits are combined by OR. Individual values: 1: BSMD 2: TERMINAL, 4: PILOT, 8: AGENCY, 16: MOORING, 32: PORT_ADMINISTRATION, 64: TUG
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
public int Type { get; set; }
///
@@ -7165,11 +7814,11 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -7206,7 +7855,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -7369,65 +8018,65 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
- ) &&
+ ) &&
(
this.Imo == input.Imo ||
(this.Imo != null &&
this.Imo.Equals(input.Imo))
- ) &&
+ ) &&
(
this.Callsign == input.Callsign ||
(this.Callsign != null &&
this.Callsign.Equals(input.Callsign))
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
(this.ParticipantId != null &&
this.ParticipantId.Equals(input.ParticipantId))
- ) &&
+ ) &&
(
this.Length == input.Length ||
(this.Length != null &&
this.Length.Equals(input.Length))
- ) &&
+ ) &&
(
this.Width == input.Width ||
(this.Width != null &&
this.Width.Equals(input.Width))
- ) &&
+ ) &&
(
this.IsTug == input.IsTug ||
this.IsTug.Equals(input.IsTug)
- ) &&
+ ) &&
(
this.BollardPull == input.BollardPull ||
(this.BollardPull != null &&
this.BollardPull.Equals(input.BollardPull))
- ) &&
+ ) &&
(
this.Eni == input.Eni ||
(this.Eni != null &&
this.Eni.Equals(input.Eni))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
this.Modified.Equals(input.Modified))
- ) &&
+ ) &&
(
this.Deleted == input.Deleted ||
this.Deleted.Equals(input.Deleted)
@@ -7515,7 +8164,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -7804,139 +8453,139 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.ShipId == input.ShipId ||
this.ShipId.Equals(input.ShipId)
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
- ) &&
+ ) &&
(
this.Eta == input.Eta ||
(this.Eta != null &&
this.Eta.Equals(input.Eta))
- ) &&
+ ) &&
(
this.Voyage == input.Voyage ||
(this.Voyage != null &&
this.Voyage.Equals(input.Voyage))
- ) &&
+ ) &&
(
this.Etd == input.Etd ||
(this.Etd != null &&
this.Etd.Equals(input.Etd))
- ) &&
+ ) &&
(
this.ArrivalBerthId == input.ArrivalBerthId ||
(this.ArrivalBerthId != null &&
this.ArrivalBerthId.Equals(input.ArrivalBerthId))
- ) &&
+ ) &&
(
this.DepartureBerthId == input.DepartureBerthId ||
(this.DepartureBerthId != null &&
this.DepartureBerthId.Equals(input.DepartureBerthId))
- ) &&
+ ) &&
(
this.TugRequired == input.TugRequired ||
(this.TugRequired != null &&
this.TugRequired.Equals(input.TugRequired))
- ) &&
+ ) &&
(
this.PilotRequired == input.PilotRequired ||
(this.PilotRequired != null &&
this.PilotRequired.Equals(input.PilotRequired))
- ) &&
+ ) &&
(
this.Flags == input.Flags ||
(this.Flags != null &&
this.Flags.Equals(input.Flags))
- ) &&
+ ) &&
(
this.PierSide == input.PierSide ||
(this.PierSide != null &&
this.PierSide.Equals(input.PierSide))
- ) &&
+ ) &&
(
this.Bunkering == input.Bunkering ||
(this.Bunkering != null &&
this.Bunkering.Equals(input.Bunkering))
- ) &&
+ ) &&
(
this.ReplenishingTerminal == input.ReplenishingTerminal ||
(this.ReplenishingTerminal != null &&
this.ReplenishingTerminal.Equals(input.ReplenishingTerminal))
- ) &&
+ ) &&
(
this.ReplenishingLock == input.ReplenishingLock ||
(this.ReplenishingLock != null &&
this.ReplenishingLock.Equals(input.ReplenishingLock))
- ) &&
+ ) &&
(
this.Draft == input.Draft ||
(this.Draft != null &&
this.Draft.Equals(input.Draft))
- ) &&
+ ) &&
(
this.TidalWindowFrom == input.TidalWindowFrom ||
(this.TidalWindowFrom != null &&
this.TidalWindowFrom.Equals(input.TidalWindowFrom))
- ) &&
+ ) &&
(
this.TidalWindowTo == input.TidalWindowTo ||
(this.TidalWindowTo != null &&
this.TidalWindowTo.Equals(input.TidalWindowTo))
- ) &&
+ ) &&
(
this.RainSensitiveCargo == input.RainSensitiveCargo ||
(this.RainSensitiveCargo != null &&
this.RainSensitiveCargo.Equals(input.RainSensitiveCargo))
- ) &&
+ ) &&
(
this.RecommendedTugs == input.RecommendedTugs ||
(this.RecommendedTugs != null &&
this.RecommendedTugs.Equals(input.RecommendedTugs))
- ) &&
+ ) &&
(
this.Anchored == input.Anchored ||
(this.Anchored != null &&
this.Anchored.Equals(input.Anchored))
- ) &&
+ ) &&
(
this.MooredLock == input.MooredLock ||
(this.MooredLock != null &&
this.MooredLock.Equals(input.MooredLock))
- ) &&
+ ) &&
(
this.Canceled == input.Canceled ||
(this.Canceled != null &&
this.Canceled.Equals(input.Canceled))
- ) &&
+ ) &&
(
this.Evaluation == input.Evaluation ||
this.Evaluation.Equals(input.Evaluation)
- ) &&
+ ) &&
(
this.EvaluationMessage == input.EvaluationMessage ||
(this.EvaluationMessage != null &&
this.EvaluationMessage.Equals(input.EvaluationMessage))
- ) &&
+ ) &&
(
this.Participants == input.Participants ||
this.Participants != null &&
input.Participants != null &&
this.Participants.SequenceEqual(input.Participants)
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
@@ -8082,7 +8731,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -8122,7 +8771,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -8361,98 +9010,98 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.EtaBerth == input.EtaBerth ||
(this.EtaBerth != null &&
this.EtaBerth.Equals(input.EtaBerth))
- ) &&
+ ) &&
(
this.EtaBerthFixed == input.EtaBerthFixed ||
(this.EtaBerthFixed != null &&
this.EtaBerthFixed.Equals(input.EtaBerthFixed))
- ) &&
+ ) &&
(
this.EtdBerth == input.EtdBerth ||
(this.EtdBerth != null &&
this.EtdBerth.Equals(input.EtdBerth))
- ) &&
+ ) &&
(
this.EtdBerthFixed == input.EtdBerthFixed ||
(this.EtdBerthFixed != null &&
this.EtdBerthFixed.Equals(input.EtdBerthFixed))
- ) &&
+ ) &&
(
this.LockTime == input.LockTime ||
(this.LockTime != null &&
this.LockTime.Equals(input.LockTime))
- ) &&
+ ) &&
(
this.LockTimeFixed == input.LockTimeFixed ||
(this.LockTimeFixed != null &&
this.LockTimeFixed.Equals(input.LockTimeFixed))
- ) &&
+ ) &&
(
this.ZoneEntry == input.ZoneEntry ||
(this.ZoneEntry != null &&
this.ZoneEntry.Equals(input.ZoneEntry))
- ) &&
+ ) &&
(
this.ZoneEntryFixed == input.ZoneEntryFixed ||
(this.ZoneEntryFixed != null &&
this.ZoneEntryFixed.Equals(input.ZoneEntryFixed))
- ) &&
+ ) &&
(
this.OperationsStart == input.OperationsStart ||
(this.OperationsStart != null &&
this.OperationsStart.Equals(input.OperationsStart))
- ) &&
+ ) &&
(
this.OperationsEnd == input.OperationsEnd ||
(this.OperationsEnd != null &&
this.OperationsEnd.Equals(input.OperationsEnd))
- ) &&
+ ) &&
(
this.Remarks == input.Remarks ||
(this.Remarks != null &&
this.Remarks.Equals(input.Remarks))
- ) &&
+ ) &&
(
this.ShipcallId == input.ShipcallId ||
this.ShipcallId.Equals(input.ShipcallId)
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.BerthId == input.BerthId ||
(this.BerthId != null &&
this.BerthId.Equals(input.BerthId))
- ) &&
+ ) &&
(
this.BerthInfo == input.BerthInfo ||
(this.BerthInfo != null &&
this.BerthInfo.Equals(input.BerthInfo))
- ) &&
+ ) &&
(
this.PierSide == input.PierSide ||
(this.PierSide != null &&
this.PierSide.Equals(input.PierSide))
- ) &&
+ ) &&
(
this.ParticipantType == input.ParticipantType ||
this.ParticipantType.Equals(input.ParticipantType)
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
@@ -8566,7 +9215,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.1.0
+ * The version of the OpenAPI document: 1.2.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -8679,36 +9328,36 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.OldPassword == input.OldPassword ||
(this.OldPassword != null &&
this.OldPassword.Equals(input.OldPassword))
- ) &&
+ ) &&
(
this.NewPassword == input.NewPassword ||
(this.NewPassword != null &&
this.NewPassword.Equals(input.NewPassword))
- ) &&
+ ) &&
(
this.FirstName == input.FirstName ||
(this.FirstName != null &&
this.FirstName.Equals(input.FirstName))
- ) &&
+ ) &&
(
this.LastName == input.LastName ||
(this.LastName != null &&
this.LastName.Equals(input.LastName))
- ) &&
+ ) &&
(
this.UserPhone == input.UserPhone ||
(this.UserPhone != null &&
this.UserPhone.Equals(input.UserPhone))
- ) &&
+ ) &&
(
this.UserEmail == input.UserEmail ||
(this.UserEmail != null &&
diff --git a/misc/BreCalApi.yaml b/misc/BreCalApi.yaml
index c9d9da0..91c27db 100644
--- a/misc/BreCalApi.yaml
+++ b/misc/BreCalApi.yaml
@@ -21,6 +21,7 @@ tags:
- name: shipcall
- name: times
- name: static
+ - name: ship
paths:
/login:
post:
@@ -158,7 +159,7 @@ paths:
summary: gets a list of ships
description: Gets a list of ships including logically deleted ships to be used with shipcalls
tags:
- - static
+ - ship
operationId: shipsGet
responses:
'200':
@@ -175,6 +176,77 @@ paths:
$ref: '#/components/responses/500'
'503':
$ref: '#/components/responses/503'
+ post:
+ summary: create a new ship entry
+ description: adds a new non-existing ship to the database. The ships IMO number is the unique identifier.
+ tags:
+ - ship
+ operationId: shipsCreate
+ requestBody:
+ description: Ship details. **Do not** provide id parameter.
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ship'
+ responses:
+ '201':
+ $ref: '#/components/responses/201'
+ '400':
+ $ref: '#/components/responses/400'
+ '401':
+ $ref: '#/components/responses/401'
+ '500':
+ $ref: '#/components/responses/500'
+ '503':
+ $ref: '#/components/responses/503'
+ put:
+ summary: Update a ship entry
+ description: Updating a ship entry. Please do not modify the IMO number. In that case please add a new entry.
+ tags:
+ - ship
+ operationId: shipUpdate
+ requestBody:
+ description: Updated ship entry. The id parameter is **required**.
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ship'
+ responses:
+ '200':
+ $ref: '#/components/responses/200'
+ '400':
+ $ref: '#/components/responses/400'
+ '401':
+ $ref: '#/components/responses/401'
+ '500':
+ $ref: '#/components/responses/500'
+ '503':
+ $ref: '#/components/responses/503'
+ delete:
+ summary: Delete a ship (logically).
+ description: 'A ship can only be logically deleted, since it is possible to have been used in previous shipcalls. On logical delete, the ship can no longer be selected in a new ship call.'
+ tags:
+ - ship
+ operationId: shipDelete
+ parameters:
+ - name: id
+ in: query
+ required: true
+ schema:
+ type: integer
+ responses:
+ '200':
+ $ref: '#/components/responses/200'
+ '400':
+ $ref: '#/components/responses/400'
+ '401':
+ $ref: '#/components/responses/401'
+ '500':
+ $ref: '#/components/responses/500'
+ '503':
+ $ref: '#/components/responses/503'
/participants:
get:
summary: gets one or all participants
diff --git a/src/BreCalClient/EditTimesControl.xaml.cs b/src/BreCalClient/EditTimesControl.xaml.cs
index 4beaade..34c9556 100644
--- a/src/BreCalClient/EditTimesControl.xaml.cs
+++ b/src/BreCalClient/EditTimesControl.xaml.cs
@@ -75,12 +75,12 @@ namespace BreCalClient
switch (CallType)
{
- case Extensions.TypeEnum.Incoming:
+ case ShipcallType.Arrival:
this.labelETA.FontWeight = FontWeights.Bold;
this.datePickerETABerth.ContextMenu.IsEnabled = false;
break;
- case Extensions.TypeEnum.Outgoing:
- case Extensions.TypeEnum.Shifting:
+ case ShipcallType.Departure:
+ case ShipcallType.Shifting:
this.labelETD.FontWeight = FontWeights.Bold;
this.datePickerETDBerth.ContextMenu.IsEnabled = false;
break;
diff --git a/src/BreCalClient/EditTimesTerminalControl.xaml.cs b/src/BreCalClient/EditTimesTerminalControl.xaml.cs
index 0bd6598..888506e 100644
--- a/src/BreCalClient/EditTimesTerminalControl.xaml.cs
+++ b/src/BreCalClient/EditTimesTerminalControl.xaml.cs
@@ -97,12 +97,12 @@ namespace BreCalClient
switch (CallType)
{
- case Extensions.TypeEnum.Incoming:
+ case ShipcallType.Arrival:
this.labelStart.FontWeight = FontWeights.Bold;
this.datePickerOperationStart.ContextMenu.IsEnabled = false;
break;
- case Extensions.TypeEnum.Outgoing:
- case Extensions.TypeEnum.Shifting:
+ case ShipcallType.Departure:
+ case ShipcallType.Shifting:
this.labelEnd.FontWeight = FontWeights.Bold;
this.datePickerOperationEnd.ContextMenu.IsEnabled = false;
break;
diff --git a/src/BreCalClient/MainWindow.xaml.cs b/src/BreCalClient/MainWindow.xaml.cs
index 7bbb0a0..c0a681e 100644
--- a/src/BreCalClient/MainWindow.xaml.cs
+++ b/src/BreCalClient/MainWindow.xaml.cs
@@ -47,6 +47,7 @@ namespace BreCalClient
private readonly UserApi _userApi;
private readonly TimesApi _timesApi;
private readonly StaticApi _staticApi;
+ private readonly ShipApi _shipApi;
private CancellationTokenSource _tokenSource = new();
private LoginResult? _loginResult;
@@ -85,6 +86,8 @@ namespace BreCalClient
_timesApi.Configuration.ApiKeyPrefix["Authorization"] = "Bearer";
_staticApi = new StaticApi(Properties.Settings.Default.API_URL);
_staticApi.Configuration.ApiKeyPrefix["Authorization"] = "Bearer";
+ _shipApi = new ShipApi(Properties.Settings.Default.API_URL);
+ _shipApi.Configuration.ApiKeyPrefix["Authorization"] = "Bearer";
}
#endregion
@@ -136,6 +139,7 @@ namespace BreCalClient
this._shipcallApi.Configuration.ApiKey["Authorization"] = _loginResult.Token;
this._timesApi.Configuration.ApiKey["Authorization"] = _loginResult.Token;
this._staticApi.Configuration.ApiKey["Authorization"] = _loginResult.Token;
+ this._shipApi.Configuration.ApiKey["Authorization"] = _loginResult.Token;
this.LoadStaticLists();
this.labelUsername.Text = $"{_loginResult.FirstName} {_loginResult.LastName}";
_timer = new Timer(RefreshToken, null, 4000000, Timeout.Infinite);
@@ -177,6 +181,7 @@ namespace BreCalClient
this._timesApi.Configuration.ApiKey["Authorization"] = _loginResult.Token;
this._shipcallApi.Configuration.ApiKey["Authorization"] = _loginResult.Token;
this._staticApi.Configuration.ApiKey["Authorization"] = _loginResult.Token;
+ this._shipApi.Configuration.ApiKey["Authorization"] = _loginResult.Token;
}
}
else
@@ -230,11 +235,11 @@ namespace BreCalClient
_tokenSource.Cancel(); // force timer loop end
// if this was an arrival, create the matching departure call and open it
- if (esc.ShipcallModel.Shipcall?.Type == (int)Extensions.TypeEnum.Incoming)
+ if (esc.ShipcallModel.Shipcall?.Type == ShipcallType.Arrival)
{
ShipcallControlModel scmOut = new();
scmOut.Shipcall = new();
- scmOut.Shipcall.Type = (int)Extensions.TypeEnum.Outgoing;
+ scmOut.Shipcall.Type = ShipcallType.Departure;
scmOut.Shipcall.ShipId = esc.ShipcallModel.Shipcall.ShipId;
scmOut.Ship = esc.ShipcallModel.Ship;
DateTime eta = esc.ShipcallModel.Shipcall?.Eta ?? DateTime.Now;
@@ -321,7 +326,7 @@ namespace BreCalClient
private async void LoadStaticLists()
{
BreCalLists.InitializeBerths(await _staticApi.BerthsGetAsync());
- BreCalLists.InitializeShips(await _staticApi.ShipsGetAsync());
+ BreCalLists.InitializeShips(await _shipApi.ShipsGetAsync());
BreCalLists.InitializeParticipants(await _staticApi.ParticipantsGetAsync());
this.searchFilterControl.SetBerths(BreCalLists.Berths);
@@ -535,8 +540,8 @@ namespace BreCalClient
if(sfm.Berths.Count > 0 )
{
- this._visibleControlModels.RemoveAll(x => (!sfm.Berths.Contains((x.Shipcall?.ArrivalBerthId) ?? -1) && (x.Shipcall?.Type == (int) Extensions.TypeEnum.Incoming)) ||
- (!sfm.Berths.Contains((x.Shipcall?.DepartureBerthId) ?? -1) && (x.Shipcall?.Type != (int) Extensions.TypeEnum.Incoming)));
+ this._visibleControlModels.RemoveAll(x => (!sfm.Berths.Contains((x.Shipcall?.ArrivalBerthId) ?? -1) && (x.Shipcall?.Type == ShipcallType.Arrival)) ||
+ (!sfm.Berths.Contains((x.Shipcall?.DepartureBerthId) ?? -1) && (x.Shipcall?.Type != ShipcallType.Arrival)));
}
if(sfm.Agencies.Count > 0 )