diff --git a/misc/BreCalApi.cs b/misc/BreCalApi.cs
index a2dd5be..b7f4ce0 100644
--- a/misc/BreCalApi.cs
+++ b/misc/BreCalApi.cs
@@ -1,15 +1,14 @@
//----------------------
//
-// Generated REST API Client Code Generator v1.11.0.0 on 10.09.2024 11:10:02
-// Using the tool OpenAPI Generator v7.8.0
+// Generated REST API Client Code Generator v1.9.8.0 on 12.09.2024 16:39:15
+// Using the tool OpenAPI Generator v7.4.0
//
//----------------------
using BreCalClient.misc.Client;
using BreCalClient.misc.Model;
-using FileIO = System.IO.File;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
@@ -40,13 +39,14 @@ using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
+using System.Web;
/*
* Bremen calling API
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -66,7 +66,7 @@ namespace BreCalClient.misc.Api
/// 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
- ///
+ /// **Id of ship**. *Example: 42*. Id of ship to be deleted.
/// Index associated with the operation.
/// Id
Id ShipDelete(int id, int operationIndex = 0);
@@ -77,7 +77,7 @@ namespace BreCalClient.misc.Api
/// 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
- ///
+ /// **Id of ship**. *Example: 42*. Id of ship to be deleted.
/// Index associated with the operation.
/// ApiResponse of Id
ApiResponse ShipDeleteWithHttpInfo(int id, int operationIndex = 0);
@@ -160,11 +160,11 @@ namespace BreCalClient.misc.Api
/// 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
- ///
+ /// **Id of ship**. *Example: 42*. Id of ship to be deleted.
/// 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(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task ShipDeleteAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Delete a ship (logically).
///
@@ -172,11 +172,11 @@ namespace BreCalClient.misc.Api
/// 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
- ///
+ /// **Id of ship**. *Example: 42*. Id of ship to be deleted.
/// 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(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> ShipDeleteWithHttpInfoAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Update a ship entry
///
@@ -188,7 +188,7 @@ namespace BreCalClient.misc.Api
/// 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(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task ShipUpdateAsync(Ship ship, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Update a ship entry
///
@@ -200,7 +200,7 @@ namespace BreCalClient.misc.Api
/// 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(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> ShipUpdateWithHttpInfoAsync(Ship ship, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// create a new ship entry
///
@@ -212,7 +212,7 @@ namespace BreCalClient.misc.Api
/// 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(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task ShipsCreateAsync(Ship ship, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// create a new ship entry
///
@@ -224,7 +224,7 @@ namespace BreCalClient.misc.Api
/// 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(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> ShipsCreateWithHttpInfoAsync(Ship ship, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// gets a list of ships
///
@@ -235,7 +235,7 @@ namespace BreCalClient.misc.Api
/// 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(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> ShipsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// gets a list of ships
///
@@ -246,7 +246,7 @@ namespace BreCalClient.misc.Api
/// 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(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task>> ShipsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
///
@@ -356,7 +356,7 @@ namespace BreCalClient.misc.Api
/// 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
- ///
+ /// **Id of ship**. *Example: 42*. Id of ship to be deleted.
/// Index associated with the operation.
/// Id
public Id ShipDelete(int id, int operationIndex = 0)
@@ -368,7 +368,7 @@ namespace BreCalClient.misc.Api
/// 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
- ///
+ /// **Id of ship**. *Example: 42*. Id of ship to be deleted.
/// Index associated with the operation.
/// ApiResponse of Id
public BreCalClient.misc.Client.ApiResponse ShipDeleteWithHttpInfo(int id, int operationIndex = 0)
@@ -414,11 +414,11 @@ namespace BreCalClient.misc.Api
/// 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
- ///
+ /// **Id of ship**. *Example: 42*. Id of ship to be deleted.
/// 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(global::System.Threading.CancellationToken))
+ 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;
@@ -427,11 +427,11 @@ namespace BreCalClient.misc.Api
/// 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
- ///
+ /// **Id of ship**. *Example: 42*. Id of ship to be deleted.
/// 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(global::System.Threading.CancellationToken))
+ 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[] {
@@ -542,7 +542,7 @@ namespace BreCalClient.misc.Api
/// 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(global::System.Threading.CancellationToken))
+ 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;
@@ -555,7 +555,7 @@ namespace BreCalClient.misc.Api
/// 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(global::System.Threading.CancellationToken))
+ 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)
@@ -672,7 +672,7 @@ namespace BreCalClient.misc.Api
/// 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(global::System.Threading.CancellationToken))
+ 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;
@@ -685,7 +685,7 @@ namespace BreCalClient.misc.Api
/// 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(global::System.Threading.CancellationToken))
+ 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)
@@ -792,7 +792,7 @@ namespace BreCalClient.misc.Api
/// 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(global::System.Threading.CancellationToken))
+ 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;
@@ -804,7 +804,7 @@ namespace BreCalClient.misc.Api
/// 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(global::System.Threading.CancellationToken))
+ 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[] {
@@ -850,7 +850,7 @@ namespace BreCalClient.misc.Api
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -947,7 +947,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Id
- System.Threading.Tasks.Task ShipcallCreateAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task ShipcallCreateAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Create a new ship call
///
@@ -959,7 +959,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Id)
- System.Threading.Tasks.Task> ShipcallCreateWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> ShipcallCreateWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Updates a ship call
///
@@ -971,7 +971,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Id
- System.Threading.Tasks.Task ShipcallUpdateAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task ShipcallUpdateAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Updates a ship call
///
@@ -983,7 +983,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Id)
- System.Threading.Tasks.Task> ShipcallUpdateWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> ShipcallUpdateWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Gets a list of ship calls
///
@@ -995,7 +995,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<Shipcall>
- System.Threading.Tasks.Task> ShipcallsGetAsync(int? pastDays = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> ShipcallsGetAsync(int? pastDays = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Gets a list of ship calls
///
@@ -1007,7 +1007,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<Shipcall>)
- System.Threading.Tasks.Task>> ShipcallsGetWithHttpInfoAsync(int? pastDays = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task>> ShipcallsGetWithHttpInfoAsync(int? pastDays = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
///
@@ -1185,7 +1185,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Id
- public async System.Threading.Tasks.Task ShipcallCreateAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task ShipcallCreateAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.ApiResponse localVarResponse = await ShipcallCreateWithHttpInfoAsync(shipcall, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
@@ -1198,7 +1198,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Id)
- public async System.Threading.Tasks.Task> ShipcallCreateWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> ShipcallCreateWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'shipcall' is set
if (shipcall == null)
@@ -1315,7 +1315,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Id
- public async System.Threading.Tasks.Task ShipcallUpdateAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task ShipcallUpdateAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.ApiResponse localVarResponse = await ShipcallUpdateWithHttpInfoAsync(shipcall, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
@@ -1328,7 +1328,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Id)
- public async System.Threading.Tasks.Task> ShipcallUpdateWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> ShipcallUpdateWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'shipcall' is set
if (shipcall == null)
@@ -1442,7 +1442,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<Shipcall>
- public async System.Threading.Tasks.Task> ShipcallsGetAsync(int? pastDays = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> ShipcallsGetAsync(int? pastDays = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.ApiResponse> localVarResponse = await ShipcallsGetWithHttpInfoAsync(pastDays, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
@@ -1455,7 +1455,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<Shipcall>)
- public async System.Threading.Tasks.Task>> ShipcallsGetWithHttpInfoAsync(int? pastDays = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task>> ShipcallsGetWithHttpInfoAsync(int? pastDays = default(int?), 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[] {
@@ -1505,7 +1505,7 @@ namespace BreCalClient.misc.Api
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -1538,13 +1538,33 @@ namespace BreCalClient.misc.Api
/// ApiResponse of List<Berth>
ApiResponse> BerthsGetWithHttpInfo(int operationIndex = 0);
///
+ /// Your GET endpoint
+ ///
+ ///
+ /// Returns a list of ports
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// List<Port>
+ List GetPorts(int operationIndex = 0);
+ ///
+ /// Your GET endpoint
+ ///
+ ///
+ /// Returns a list of ports
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of List<Port>
+ ApiResponse> GetPortsWithHttpInfo(int operationIndex = 0);
+ ///
/// History data
///
///
/// This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
- /// **Id of ship call**. *Example: 52*. Id given in ship call list
+ /// **Id of ship call**. *Example: 3*. Id given in ship call list
/// Index associated with the operation.
/// List<History>
List HistoryGet(int shipcallId, int operationIndex = 0);
@@ -1555,7 +1575,7 @@ namespace BreCalClient.misc.Api
/// This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
- /// **Id of ship call**. *Example: 52*. Id given in ship call list
+ /// **Id of ship call**. *Example: 3*. Id given in ship call list
/// Index associated with the operation.
/// ApiResponse of List<History>
ApiResponse> HistoryGetWithHttpInfo(int shipcallId, int operationIndex = 0);
@@ -1568,8 +1588,8 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
- /// Notification
- Notification NotificationsGet(int shipcallId, int operationIndex = 0);
+ /// List<Notification>
+ List NotificationsGet(int shipcallId, int operationIndex = 0);
///
/// Gets a list of notifications pursuant to a specified participant and ship call
///
@@ -1579,8 +1599,8 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
- /// ApiResponse of Notification
- ApiResponse NotificationsGetWithHttpInfo(int shipcallId, int operationIndex = 0);
+ /// ApiResponse of List<Notification>
+ ApiResponse> NotificationsGetWithHttpInfo(int shipcallId, int operationIndex = 0);
///
/// gets one or all participants
///
@@ -1621,7 +1641,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<Berth>
- System.Threading.Tasks.Task> BerthsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> BerthsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Gets a list of all berths registered
///
@@ -1632,7 +1652,29 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<Berth>)
- System.Threading.Tasks.Task>> BerthsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task>> BerthsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Your GET endpoint
+ ///
+ ///
+ /// Returns a list of ports
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of List<Port>
+ System.Threading.Tasks.Task> GetPortsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ ///
+ /// Your GET endpoint
+ ///
+ ///
+ /// Returns a list of ports
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (List<Port>)
+ System.Threading.Tasks.Task>> GetPortsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// History data
///
@@ -1640,11 +1682,11 @@ namespace BreCalClient.misc.Api
/// This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
- /// **Id of ship call**. *Example: 52*. Id given in ship call list
+ /// **Id of ship call**. *Example: 3*. Id given in ship call list
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<History>
- System.Threading.Tasks.Task> HistoryGetAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> HistoryGetAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// History data
///
@@ -1652,11 +1694,11 @@ namespace BreCalClient.misc.Api
/// This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
- /// **Id of ship call**. *Example: 52*. Id given in ship call list
+ /// **Id of ship call**. *Example: 3*. Id given in ship call list
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<History>)
- System.Threading.Tasks.Task>> HistoryGetWithHttpInfoAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task>> HistoryGetWithHttpInfoAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Gets a list of notifications pursuant to a specified participant and ship call
///
@@ -1667,8 +1709,8 @@ namespace BreCalClient.misc.Api
/// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of Notification
- System.Threading.Tasks.Task NotificationsGetAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ /// Task of List<Notification>
+ System.Threading.Tasks.Task> NotificationsGetAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Gets a list of notifications pursuant to a specified participant and ship call
///
@@ -1679,8 +1721,8 @@ namespace BreCalClient.misc.Api
/// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (Notification)
- System.Threading.Tasks.Task> NotificationsGetWithHttpInfoAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ /// Task of ApiResponse (List<Notification>)
+ System.Threading.Tasks.Task>> NotificationsGetWithHttpInfoAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// gets one or all participants
///
@@ -1692,7 +1734,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<Participant>
- System.Threading.Tasks.Task> ParticipantsGetAsync(int? userId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> ParticipantsGetAsync(int? userId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// gets one or all participants
///
@@ -1704,7 +1746,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// 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(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task>> ParticipantsGetWithHttpInfoAsync(int? userId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
///
@@ -1872,7 +1914,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<Berth>
- public async System.Threading.Tasks.Task> BerthsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> BerthsGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.ApiResponse> localVarResponse = await BerthsGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
@@ -1884,7 +1926,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<Berth>)
- public async System.Threading.Tasks.Task>> BerthsGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task>> BerthsGetWithHttpInfoAsync(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[] {
@@ -1923,10 +1965,122 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
+ /// Your GET endpoint Returns a list of ports
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// List<Port>
+ public List GetPorts(int operationIndex = 0)
+ {
+ BreCalClient.misc.Client.ApiResponse> localVarResponse = GetPortsWithHttpInfo();
+ return localVarResponse.Data;
+ }
+ ///
+ /// Your GET endpoint Returns a list of ports
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// ApiResponse of List<Port>
+ public BreCalClient.misc.Client.ApiResponse> GetPortsWithHttpInfo(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.GetPorts";
+ 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>("/ports", localVarRequestOptions, this.Configuration);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("GetPorts", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+ return localVarResponse;
+ }
+ ///
+ /// Your GET endpoint Returns a list of ports
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of List<Port>
+ public async System.Threading.Tasks.Task> GetPortsAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ {
+ BreCalClient.misc.Client.ApiResponse> localVarResponse = await GetPortsWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
+ return localVarResponse.Data;
+ }
+ ///
+ /// Your GET endpoint Returns a list of ports
+ ///
+ /// Thrown when fails to make API call
+ /// Index associated with the operation.
+ /// Cancellation Token to cancel the request.
+ /// Task of ApiResponse (List<Port>)
+ public async System.Threading.Tasks.Task>> GetPortsWithHttpInfoAsync(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.GetPorts";
+ 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>("/ports", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("GetPorts", localVarResponse);
+ if (_exception != null)
+ {
+ throw _exception;
+ }
+ }
+ return localVarResponse;
+ }
+ ///
/// History data This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
- /// **Id of ship call**. *Example: 52*. Id given in ship call list
+ /// **Id of ship call**. *Example: 3*. Id given in ship call list
/// Index associated with the operation.
/// List<History>
public List HistoryGet(int shipcallId, int operationIndex = 0)
@@ -1938,7 +2092,7 @@ namespace BreCalClient.misc.Api
/// History data This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
- /// **Id of ship call**. *Example: 52*. Id given in ship call list
+ /// **Id of ship call**. *Example: 3*. Id given in ship call list
/// Index associated with the operation.
/// ApiResponse of List<History>
public BreCalClient.misc.Client.ApiResponse> HistoryGetWithHttpInfo(int shipcallId, int operationIndex = 0)
@@ -1984,11 +2138,11 @@ namespace BreCalClient.misc.Api
/// History data This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
- /// **Id of ship call**. *Example: 52*. Id given in ship call list
+ /// **Id of ship call**. *Example: 3*. Id given in ship call list
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<History>
- public async System.Threading.Tasks.Task> HistoryGetAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> HistoryGetAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.ApiResponse> localVarResponse = await HistoryGetWithHttpInfoAsync(shipcallId, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
@@ -1997,11 +2151,11 @@ namespace BreCalClient.misc.Api
/// History data This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
- /// **Id of ship call**. *Example: 52*. Id given in ship call list
+ /// **Id of ship call**. *Example: 3*. Id given in ship call list
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<History>)
- public async System.Threading.Tasks.Task>> HistoryGetWithHttpInfoAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task>> HistoryGetWithHttpInfoAsync(int shipcallId, 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[] {
@@ -2046,10 +2200,10 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
- /// Notification
- public Notification NotificationsGet(int shipcallId, int operationIndex = 0)
+ /// List<Notification>
+ public List NotificationsGet(int shipcallId, int operationIndex = 0)
{
- BreCalClient.misc.Client.ApiResponse localVarResponse = NotificationsGetWithHttpInfo(shipcallId);
+ BreCalClient.misc.Client.ApiResponse> localVarResponse = NotificationsGetWithHttpInfo(shipcallId);
return localVarResponse.Data;
}
///
@@ -2058,8 +2212,8 @@ namespace BreCalClient.misc.Api
/// Thrown when fails to make API call
/// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
- /// ApiResponse of Notification
- public BreCalClient.misc.Client.ApiResponse NotificationsGetWithHttpInfo(int shipcallId, int operationIndex = 0)
+ /// ApiResponse of List<Notification>
+ public BreCalClient.misc.Client.ApiResponse> NotificationsGetWithHttpInfo(int shipcallId, int operationIndex = 0)
{
BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
string[] _contentTypes = new string[] {
@@ -2087,7 +2241,7 @@ namespace BreCalClient.misc.Api
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
}
// make the HTTP request
- var localVarResponse = this.Client.Get("/notifications", localVarRequestOptions, this.Configuration);
+ var localVarResponse = this.Client.Get>("/notifications", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("NotificationsGet", localVarResponse);
@@ -2105,10 +2259,10 @@ namespace BreCalClient.misc.Api
/// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of Notification
- public async System.Threading.Tasks.Task NotificationsGetAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ /// Task of List<Notification>
+ public async System.Threading.Tasks.Task> NotificationsGetAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BreCalClient.misc.Client.ApiResponse localVarResponse = await NotificationsGetWithHttpInfoAsync(shipcallId, operationIndex, cancellationToken).ConfigureAwait(false);
+ BreCalClient.misc.Client.ApiResponse> localVarResponse = await NotificationsGetWithHttpInfoAsync(shipcallId, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
///
@@ -2118,8 +2272,8 @@ namespace BreCalClient.misc.Api
/// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
- /// Task of ApiResponse (Notification)
- public async System.Threading.Tasks.Task> NotificationsGetWithHttpInfoAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ /// Task of ApiResponse (List<Notification>)
+ public async System.Threading.Tasks.Task>> NotificationsGetWithHttpInfoAsync(int shipcallId, 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[] {
@@ -2147,7 +2301,7 @@ namespace BreCalClient.misc.Api
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
}
// make the HTTP request
- var localVarResponse = await this.AsynchronousClient.GetAsync("/notifications", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
+ var localVarResponse = await this.AsynchronousClient.GetAsync>("/notifications", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("NotificationsGet", localVarResponse);
@@ -2227,7 +2381,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<Participant>
- public async System.Threading.Tasks.Task> ParticipantsGetAsync(int? userId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> ParticipantsGetAsync(int? userId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.ApiResponse> localVarResponse = await ParticipantsGetWithHttpInfoAsync(userId, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
@@ -2240,7 +2394,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<Participant>)
- public async System.Threading.Tasks.Task>> ParticipantsGetWithHttpInfoAsync(int? userId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task>> ParticipantsGetWithHttpInfoAsync(int? userId = default(int?), 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[] {
@@ -2290,7 +2444,7 @@ namespace BreCalClient.misc.Api
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -2331,7 +2485,7 @@ namespace BreCalClient.misc.Api
/// A times entry is typically deleted if the agent for example changes or removes the participant assignment for a particular role.
///
/// Thrown when fails to make API call
- ///
+ /// **Id of times**. *Example: 42*. Id of times entry to be deleted.
/// Index associated with the operation.
/// Id
Id TimesDelete(int id, int operationIndex = 0);
@@ -2342,7 +2496,7 @@ namespace BreCalClient.misc.Api
/// A times entry is typically deleted if the agent for example changes or removes the participant assignment for a particular role.
///
/// Thrown when fails to make API call
- ///
+ /// **Id of times**. *Example: 42*. Id of times entry to be deleted.
/// Index associated with the operation.
/// ApiResponse of Id
ApiResponse TimesDeleteWithHttpInfo(int id, int operationIndex = 0);
@@ -2409,7 +2563,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Id
- System.Threading.Tasks.Task TimesCreateAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task TimesCreateAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Create a new times entry for a ship call
///
@@ -2421,7 +2575,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Id)
- System.Threading.Tasks.Task> TimesCreateWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> TimesCreateWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Delete a times entry for a ship call.
///
@@ -2429,11 +2583,11 @@ namespace BreCalClient.misc.Api
/// A times entry is typically deleted if the agent for example changes or removes the participant assignment for a particular role.
///
/// Thrown when fails to make API call
- ///
+ /// **Id of times**. *Example: 42*. Id of times entry to be deleted.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Id
- System.Threading.Tasks.Task TimesDeleteAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task TimesDeleteAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Delete a times entry for a ship call.
///
@@ -2441,11 +2595,11 @@ namespace BreCalClient.misc.Api
/// A times entry is typically deleted if the agent for example changes or removes the participant assignment for a particular role.
///
/// Thrown when fails to make API call
- ///
+ /// **Id of times**. *Example: 42*. Id of times entry to be deleted.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Id)
- System.Threading.Tasks.Task> TimesDeleteWithHttpInfoAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> TimesDeleteWithHttpInfoAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Gets list of times
///
@@ -2457,7 +2611,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<Times>
- System.Threading.Tasks.Task> TimesGetAsync(int? shipcallId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> TimesGetAsync(int? shipcallId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Gets list of times
///
@@ -2469,7 +2623,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<Times>)
- System.Threading.Tasks.Task>> TimesGetWithHttpInfoAsync(int? shipcallId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task>> TimesGetWithHttpInfoAsync(int? shipcallId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Update a times entry for a ship call
///
@@ -2481,7 +2635,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Id
- System.Threading.Tasks.Task TimesUpdateAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task TimesUpdateAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Update a times entry for a ship call
///
@@ -2493,7 +2647,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Id)
- System.Threading.Tasks.Task> TimesUpdateWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> TimesUpdateWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
///
@@ -2671,7 +2825,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Id
- public async System.Threading.Tasks.Task TimesCreateAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task TimesCreateAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.ApiResponse localVarResponse = await TimesCreateWithHttpInfoAsync(times, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
@@ -2684,7 +2838,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Id)
- public async System.Threading.Tasks.Task> TimesCreateWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> TimesCreateWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'times' is set
if (times == null)
@@ -2733,7 +2887,7 @@ namespace BreCalClient.misc.Api
/// Delete a times entry for a ship call. A times entry is typically deleted if the agent for example changes or removes the participant assignment for a particular role.
///
/// Thrown when fails to make API call
- ///
+ /// **Id of times**. *Example: 42*. Id of times entry to be deleted.
/// Index associated with the operation.
/// Id
public Id TimesDelete(int id, int operationIndex = 0)
@@ -2745,7 +2899,7 @@ namespace BreCalClient.misc.Api
/// Delete a times entry for a ship call. A times entry is typically deleted if the agent for example changes or removes the participant assignment for a particular role.
///
/// Thrown when fails to make API call
- ///
+ /// **Id of times**. *Example: 42*. Id of times entry to be deleted.
/// Index associated with the operation.
/// ApiResponse of Id
public BreCalClient.misc.Client.ApiResponse TimesDeleteWithHttpInfo(int id, int operationIndex = 0)
@@ -2791,11 +2945,11 @@ namespace BreCalClient.misc.Api
/// Delete a times entry for a ship call. A times entry is typically deleted if the agent for example changes or removes the participant assignment for a particular role.
///
/// Thrown when fails to make API call
- ///
+ /// **Id of times**. *Example: 42*. Id of times entry to be deleted.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Id
- public async System.Threading.Tasks.Task TimesDeleteAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task TimesDeleteAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.ApiResponse localVarResponse = await TimesDeleteWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
@@ -2804,11 +2958,11 @@ namespace BreCalClient.misc.Api
/// Delete a times entry for a ship call. A times entry is typically deleted if the agent for example changes or removes the participant assignment for a particular role.
///
/// Thrown when fails to make API call
- ///
+ /// **Id of times**. *Example: 42*. Id of times entry to be deleted.
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Id)
- public async System.Threading.Tasks.Task> TimesDeleteWithHttpInfoAsync(int id, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> TimesDeleteWithHttpInfoAsync(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[] {
@@ -2916,7 +3070,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<Times>
- public async System.Threading.Tasks.Task> TimesGetAsync(int? shipcallId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> TimesGetAsync(int? shipcallId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.ApiResponse> localVarResponse = await TimesGetWithHttpInfoAsync(shipcallId, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
@@ -2929,7 +3083,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<Times>)
- public async System.Threading.Tasks.Task>> TimesGetWithHttpInfoAsync(int? shipcallId = default(int?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task>> TimesGetWithHttpInfoAsync(int? shipcallId = default(int?), 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[] {
@@ -3043,7 +3197,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Id
- public async System.Threading.Tasks.Task TimesUpdateAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task TimesUpdateAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.ApiResponse localVarResponse = await TimesUpdateWithHttpInfoAsync(times, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
@@ -3056,7 +3210,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Id)
- public async System.Threading.Tasks.Task> TimesUpdateWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> TimesUpdateWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'times' is set
if (times == null)
@@ -3109,7 +3263,7 @@ namespace BreCalClient.misc.Api
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -3184,7 +3338,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of LoginResult
- System.Threading.Tasks.Task LoginAsync(Credentials credentials, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task LoginAsync(Credentials credentials, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Returns a JWT session token and user data if successful
///
@@ -3196,7 +3350,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (LoginResult)
- System.Threading.Tasks.Task> LoginWithHttpInfoAsync(Credentials credentials, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> LoginWithHttpInfoAsync(Credentials credentials, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Update user details (first/last name, phone, password)
///
@@ -3208,7 +3362,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Id
- System.Threading.Tasks.Task UserUpdateAsync(UserDetails userDetails, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task UserUpdateAsync(UserDetails userDetails, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Update user details (first/last name, phone, password)
///
@@ -3220,7 +3374,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Id)
- System.Threading.Tasks.Task> UserUpdateWithHttpInfoAsync(UserDetails userDetails, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> UserUpdateWithHttpInfoAsync(UserDetails userDetails, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
///
@@ -3398,7 +3552,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of LoginResult
- public async System.Threading.Tasks.Task LoginAsync(Credentials credentials, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task LoginAsync(Credentials credentials, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.ApiResponse localVarResponse = await LoginWithHttpInfoAsync(credentials, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
@@ -3411,7 +3565,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (LoginResult)
- public async System.Threading.Tasks.Task> LoginWithHttpInfoAsync(Credentials credentials, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> LoginWithHttpInfoAsync(Credentials credentials, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'credentials' is set
if (credentials == null)
@@ -3528,7 +3682,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of Id
- public async System.Threading.Tasks.Task UserUpdateAsync(UserDetails userDetails, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task UserUpdateAsync(UserDetails userDetails, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.ApiResponse localVarResponse = await UserUpdateWithHttpInfoAsync(userDetails, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
@@ -3541,7 +3695,7 @@ namespace BreCalClient.misc.Api
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (Id)
- public async System.Threading.Tasks.Task> UserUpdateWithHttpInfoAsync(UserDetails userDetails, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> UserUpdateWithHttpInfoAsync(UserDetails userDetails, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
// verify the required parameter 'userDetails' is set
if (userDetails == null)
@@ -3594,7 +3748,7 @@ namespace BreCalClient.misc.Api
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -3634,10 +3788,10 @@ namespace BreCalClient.misc.Client
/// A JSON string.
public string Serialize(object obj)
{
- if (obj != null && obj is AbstractOpenAPISchema)
+ if (obj != null && obj is BreCalClient.misc.Model.AbstractOpenAPISchema)
{
// the object to be serialized is an oneOf/anyOf schema
- return ((AbstractOpenAPISchema)obj).ToJson();
+ return ((BreCalClient.misc.Model.AbstractOpenAPISchema)obj).ToJson();
}
else
{
@@ -3678,7 +3832,7 @@ namespace BreCalClient.misc.Client
if (match.Success)
{
string fileName = filePath + ClientUtils.SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", ""));
- FileIO.WriteAllBytes(fileName, bytes);
+ File.WriteAllBytes(fileName, bytes);
return new FileStream(fileName, FileMode.Open);
}
}
@@ -3688,7 +3842,7 @@ namespace BreCalClient.misc.Client
}
if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object
{
- return DateTime.Parse(response.Content, null, DateTimeStyles.RoundtripKind);
+ return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind);
}
if (type == typeof(string) || type.Name.StartsWith("System.Nullable")) // return primitive type
{
@@ -3706,11 +3860,11 @@ namespace BreCalClient.misc.Client
}
public ISerializer Serializer => this;
public IDeserializer Deserializer => this;
- public string[] AcceptedContentTypes => ContentType.JsonAccept;
+ public string[] AcceptedContentTypes => RestSharp.ContentType.JsonAccept;
public SupportsContentType SupportsContentType => contentType =>
contentType.Value.EndsWith("json", StringComparison.InvariantCultureIgnoreCase) ||
contentType.Value.EndsWith("javascript", StringComparison.InvariantCultureIgnoreCase);
- public ContentType ContentType { get; set; } = ContentType.Json;
+ public ContentType ContentType { get; set; } = RestSharp.ContentType.Json;
public DataFormat DataFormat => DataFormat.Json;
}
///
@@ -3752,7 +3906,7 @@ namespace BreCalClient.misc.Client
///
public ApiClient()
{
- _baseUrl = GlobalConfiguration.Instance.BasePath;
+ _baseUrl = BreCalClient.misc.Client.GlobalConfiguration.Instance.BasePath;
}
///
/// Initializes a new instance of the
@@ -3804,14 +3958,14 @@ namespace BreCalClient.misc.Client
}
///
/// Provides all logic for constructing a new RestSharp .
- /// At this point, all information for querying the service is known.
- /// Here, it is simply mapped into the RestSharp request.
+ /// At this point, all information for querying the service is known. Here, it is simply
+ /// mapped into the RestSharp request.
///
/// The http verb.
/// The target path (or resource).
/// The additional request options.
- /// A per-request configuration object.
- /// It is assumed that any merge with GlobalConfiguration has been done before calling this method.
+ /// A per-request configuration object. It is assumed that any merge with
+ /// GlobalConfiguration has been done before calling this method.
/// [private] A new RestRequest instance.
///
private RestRequest NewRequest(
@@ -3909,7 +4063,7 @@ namespace BreCalClient.misc.Client
var bytes = ClientUtils.ReadAsBytes(file);
var fileStream = file as FileStream;
if (fileStream != null)
- request.AddFile(fileParam.Key, bytes, Path.GetFileName(fileStream.Name));
+ request.AddFile(fileParam.Key, bytes, System.IO.Path.GetFileName(fileStream.Name));
else
request.AddFile(fileParam.Key, bytes, "no_file_name_provided");
}
@@ -3917,13 +4071,6 @@ namespace BreCalClient.misc.Client
}
return request;
}
- ///
- /// Transforms a RestResponse instance into a new ApiResponse instance.
- /// At this point, we have a concrete http response from the service.
- /// Here, it is simply mapped into the [public] ApiResponse object.
- ///
- /// The RestSharp response object
- /// A new ApiResponse instance.
private ApiResponse ToApiResponse(RestResponse response)
{
T result = response.Data;
@@ -3962,41 +4109,51 @@ namespace BreCalClient.misc.Client
}
return transformed;
}
- ///
- /// Executes the HTTP request for the current service.
- /// Based on functions received it can be async or sync.
- ///
- /// Local function that executes http request and returns http response.
- /// Local function to specify options for the service.
- /// The RestSharp request object
- /// The RestSharp options object
- /// A per-request configuration object.
- /// It is assumed that any merge with GlobalConfiguration has been done before calling this method.
- /// A new ApiResponse instance.
- private async Task> ExecClientAsync(Func>> getResponse, Action setOptions, RestRequest request, RequestOptions options, IReadableConfiguration configuration)
+ private ApiResponse Exec(RestRequest request, RequestOptions options, IReadableConfiguration configuration)
{
var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl;
+ var cookies = new CookieContainer();
+ if (options.Cookies != null && options.Cookies.Count > 0)
+ {
+ foreach (var cookie in options.Cookies)
+ {
+ cookies.Add(new Cookie(cookie.Name, cookie.Value));
+ }
+ }
var clientOptions = new RestClientOptions(baseUrl)
{
ClientCertificates = configuration.ClientCertificates,
+ CookieContainer = cookies,
MaxTimeout = configuration.Timeout,
Proxy = configuration.Proxy,
UserAgent = configuration.UserAgent,
UseDefaultCredentials = configuration.UseDefaultCredentials,
RemoteCertificateValidationCallback = configuration.RemoteCertificateValidationCallback
};
- setOptions(clientOptions);
using (RestClient client = new RestClient(clientOptions,
configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration))))
{
InterceptRequest(request);
- RestResponse response = await getResponse(client);
+ RestResponse response;
+ if (RetryConfiguration.RetryPolicy != null)
+ {
+ var policy = RetryConfiguration.RetryPolicy;
+ var policyResult = policy.ExecuteAndCapture(() => client.Execute(request));
+ response = (policyResult.Outcome == OutcomeType.Successful) ? client.Deserialize(policyResult.Result) : new RestResponse(request)
+ {
+ ErrorException = policyResult.FinalException
+ };
+ }
+ else
+ {
+ response = client.Execute(request);
+ }
// if the response type is oneOf/anyOf, call FromJSON to deserialize the data
- if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
+ if (typeof(BreCalClient.misc.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
{
try
{
- response.Data = (T)typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content });
+ response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content });
}
catch (Exception ex)
{
@@ -4049,69 +4206,82 @@ namespace BreCalClient.misc.Client
return result;
}
}
- private RestResponse DeserializeRestResponseFromPolicy(RestClient client, RestRequest request, PolicyResult policyResult)
+ private async Task> ExecAsync(RestRequest request, RequestOptions options, IReadableConfiguration configuration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- if (policyResult.Outcome == OutcomeType.Successful)
+ var baseUrl = configuration.GetOperationServerUrl(options.Operation, options.OperationIndex) ?? _baseUrl;
+ var clientOptions = new RestClientOptions(baseUrl)
{
- return client.Deserialize(policyResult.Result);
- }
- else
- {
- return new RestResponse(request)
- {
- ErrorException = policyResult.FinalException
- };
- }
- }
- private ApiResponse Exec(RestRequest request, RequestOptions options, IReadableConfiguration configuration)
- {
- Action setOptions = (clientOptions) =>
- {
- var cookies = new CookieContainer();
- if (options.Cookies != null && options.Cookies.Count > 0)
- {
- foreach (var cookie in options.Cookies)
- {
- cookies.Add(new Cookie(cookie.Name, cookie.Value));
- }
- }
- clientOptions.CookieContainer = cookies;
+ ClientCertificates = configuration.ClientCertificates,
+ MaxTimeout = configuration.Timeout,
+ Proxy = configuration.Proxy,
+ UserAgent = configuration.UserAgent,
+ UseDefaultCredentials = configuration.UseDefaultCredentials,
+ RemoteCertificateValidationCallback = configuration.RemoteCertificateValidationCallback
};
- Func>> getResponse = (client) =>
- {
- if (RetryConfiguration.RetryPolicy != null)
- {
- var policy = RetryConfiguration.RetryPolicy;
- var policyResult = policy.ExecuteAndCapture(() => client.Execute(request));
- return Task.FromResult(DeserializeRestResponseFromPolicy(client, request, policyResult));
- }
- else
- {
- return Task.FromResult(client.Execute(request));
- }
- };
- return ExecClientAsync(getResponse, setOptions, request, options, configuration).GetAwaiter().GetResult();
- }
- private Task> ExecAsync(RestRequest request, RequestOptions options, IReadableConfiguration configuration, CancellationToken cancellationToken = default(CancellationToken))
- {
- Action setOptions = (clientOptions) =>
- {
- //no extra options
- };
- Func>> getResponse = async (client) =>
+ using (RestClient client = new RestClient(clientOptions,
+ configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration))))
{
+ InterceptRequest(request);
+ RestResponse response;
if (RetryConfiguration.AsyncRetryPolicy != null)
{
var policy = RetryConfiguration.AsyncRetryPolicy;
var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false);
- return DeserializeRestResponseFromPolicy(client, request, policyResult);
+ response = (policyResult.Outcome == OutcomeType.Successful) ? client.Deserialize(policyResult.Result) : new RestResponse(request)
+ {
+ ErrorException = policyResult.FinalException
+ };
}
else
{
- return await client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false);
+ response = await client.ExecuteAsync(request, cancellationToken).ConfigureAwait(false);
}
- };
- return ExecClientAsync(getResponse, setOptions, request, options, configuration);
+ // if the response type is oneOf/anyOf, call FromJSON to deserialize the data
+ if (typeof(BreCalClient.misc.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
+ {
+ response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content });
+ }
+ else if (typeof(T).Name == "Stream") // for binary response
+ {
+ response.Data = (T)(object)new MemoryStream(response.RawBytes);
+ }
+ else if (typeof(T).Name == "Byte[]") // for byte response
+ {
+ response.Data = (T)(object)response.RawBytes;
+ }
+ InterceptResponse(request, response);
+ var result = ToApiResponse(response);
+ if (response.ErrorMessage != null)
+ {
+ result.ErrorText = response.ErrorMessage;
+ }
+ if (response.Cookies != null && response.Cookies.Count > 0)
+ {
+ if (result.Cookies == null) result.Cookies = new List();
+ foreach (var restResponseCookie in response.Cookies.Cast())
+ {
+ var cookie = new Cookie(
+ restResponseCookie.Name,
+ restResponseCookie.Value,
+ restResponseCookie.Path,
+ restResponseCookie.Domain
+ )
+ {
+ Comment = restResponseCookie.Comment,
+ CommentUri = restResponseCookie.CommentUri,
+ Discard = restResponseCookie.Discard,
+ Expired = restResponseCookie.Expired,
+ Expires = restResponseCookie.Expires,
+ HttpOnly = restResponseCookie.HttpOnly,
+ Port = restResponseCookie.Port,
+ Secure = restResponseCookie.Secure,
+ Version = restResponseCookie.Version
+ };
+ result.Cookies.Add(cookie);
+ }
+ }
+ return result;
+ }
}
#region IAsynchronousClient
///
@@ -4123,7 +4293,7 @@ namespace BreCalClient.misc.Client
/// GlobalConfiguration has been done before calling this method.
/// Token that enables callers to cancel the request.
/// A Task containing ApiResponse
- public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default)
+ public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var config = configuration ?? GlobalConfiguration.Instance;
return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), options, config, cancellationToken);
@@ -4137,7 +4307,7 @@ namespace BreCalClient.misc.Client
/// GlobalConfiguration has been done before calling this method.
/// Token that enables callers to cancel the request.
/// A Task containing ApiResponse
- public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default)
+ public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var config = configuration ?? GlobalConfiguration.Instance;
return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), options, config, cancellationToken);
@@ -4151,7 +4321,7 @@ namespace BreCalClient.misc.Client
/// GlobalConfiguration has been done before calling this method.
/// Token that enables callers to cancel the request.
/// A Task containing ApiResponse
- public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default)
+ public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var config = configuration ?? GlobalConfiguration.Instance;
return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), options, config, cancellationToken);
@@ -4165,7 +4335,7 @@ namespace BreCalClient.misc.Client
/// GlobalConfiguration has been done before calling this method.
/// Token that enables callers to cancel the request.
/// A Task containing ApiResponse
- public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default)
+ public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var config = configuration ?? GlobalConfiguration.Instance;
return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), options, config, cancellationToken);
@@ -4179,7 +4349,7 @@ namespace BreCalClient.misc.Client
/// GlobalConfiguration has been done before calling this method.
/// Token that enables callers to cancel the request.
/// A Task containing ApiResponse
- public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default)
+ public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var config = configuration ?? GlobalConfiguration.Instance;
return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), options, config, cancellationToken);
@@ -4193,7 +4363,7 @@ namespace BreCalClient.misc.Client
/// GlobalConfiguration has been done before calling this method.
/// Token that enables callers to cancel the request.
/// A Task containing ApiResponse
- public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default)
+ public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var config = configuration ?? GlobalConfiguration.Instance;
return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), options, config, cancellationToken);
@@ -4207,7 +4377,7 @@ namespace BreCalClient.misc.Client
/// GlobalConfiguration has been done before calling this method.
/// Token that enables callers to cancel the request.
/// A Task containing ApiResponse
- public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, CancellationToken cancellationToken = default)
+ public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var config = configuration ?? GlobalConfiguration.Instance;
return ExecAsync(NewRequest(HttpMethod.Patch, path, options, config), options, config, cancellationToken);
@@ -4314,7 +4484,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4374,7 +4544,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4514,7 +4684,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4624,7 +4794,7 @@ namespace BreCalClient.misc.Client
/// Encoded string.
public static string Base64Encode(string text)
{
- return Convert.ToBase64String(global::System.Text.Encoding.UTF8.GetBytes(text));
+ return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text));
}
///
/// Convert stream to byte array
@@ -4732,7 +4902,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4812,7 +4982,7 @@ namespace BreCalClient.misc.Client
///
/// Initializes a new instance of the class
///
- [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
public Configuration()
{
Proxy = null;
@@ -4839,7 +5009,7 @@ namespace BreCalClient.misc.Client
///
/// Initializes a new instance of the class
///
- [global::System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
public Configuration(
IDictionary defaultHeaders,
IDictionary apiKey,
@@ -4873,7 +5043,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; }
@@ -5191,7 +5361,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.4.0\n";
+ report += " Version of the API: 1.6.0\n";
report += " SDK Package Version: 1.0.0\n";
return report;
}
@@ -5260,7 +5430,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5280,7 +5450,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5337,7 +5507,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5370,7 +5540,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5403,7 +5573,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5425,7 +5595,7 @@ namespace BreCalClient.misc.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Executes a non-blocking call to some using the POST http verb.
///
@@ -5435,7 +5605,7 @@ namespace BreCalClient.misc.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Executes a non-blocking call to some using the PUT http verb.
///
@@ -5445,7 +5615,7 @@ namespace BreCalClient.misc.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Executes a non-blocking call to some using the DELETE http verb.
///
@@ -5455,7 +5625,7 @@ namespace BreCalClient.misc.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Executes a non-blocking call to some using the HEAD http verb.
///
@@ -5465,7 +5635,7 @@ namespace BreCalClient.misc.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Executes a non-blocking call to some using the OPTIONS http verb.
///
@@ -5475,7 +5645,7 @@ namespace BreCalClient.misc.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Executes a non-blocking call to some using the PATCH http verb.
///
@@ -5485,7 +5655,7 @@ namespace BreCalClient.misc.Client
/// Cancellation Token to cancel the request.
/// The return type.
/// A task eventually representing the response data, decorated with
- Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
+ Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
}
}
@@ -5494,7 +5664,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5611,7 +5781,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5695,7 +5865,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5954,7 +6124,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5982,7 +6152,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6052,7 +6222,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6079,7 +6249,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6146,7 +6316,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6156,7 +6326,7 @@ namespace BreCalClient.misc.Model
/// Ship berth used for a ship call
///
[DataContract(Name = "berth")]
- public partial class Berth : IValidatableObject
+ public partial class Berth : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -6166,16 +6336,18 @@ namespace BreCalClient.misc.Model
/// Optional reference to a participant (terminal).
/// Optional reference to a participant (port authority).
/// If true lock must be passed.
- /// created.
- /// modified.
- /// deleted (default to false).
- public Berth(int id = default(int), string name = default(string), int? ownerId = default(int?), int? authorityId = default(int?), bool? varLock = default(bool?), DateTime created = default(DateTime), DateTime? modified = default(DateTime?), bool deleted = false)
+ /// Required reference to a port.
+ /// Readonly field set by the database when berth was created.
+ /// Readonly field set by the database when berth was last modified.
+ /// marks the berth as logically deleted (default to false).
+ public Berth(int id = default(int), string name = default(string), int? ownerId = default(int?), int? authorityId = default(int?), bool? varLock = default(bool?), int portId = default(int), DateTime created = default(DateTime), DateTime? modified = default(DateTime?), bool deleted = false)
{
this.Id = id;
this.Name = name;
this.OwnerId = ownerId;
this.AuthorityId = authorityId;
- this.Lock = varLock;
+ this.VarLock = varLock;
+ this.PortId = portId;
this.Created = created;
this.Modified = modified;
this.Deleted = deleted;
@@ -6183,44 +6355,62 @@ namespace BreCalClient.misc.Model
///
/// Gets or Sets Id
///
+ /// 3
[DataMember(Name = "id", EmitDefaultValue = true)]
public int Id { get; set; }
///
/// Gets or Sets Name
///
+ /// Pier 1
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
///
/// Optional reference to a participant (terminal)
///
/// Optional reference to a participant (terminal)
+ /// 5
[DataMember(Name = "owner_id", EmitDefaultValue = true)]
public int? OwnerId { get; set; }
///
/// Optional reference to a participant (port authority)
///
/// Optional reference to a participant (port authority)
+ /// 6
[DataMember(Name = "authority_id", EmitDefaultValue = true)]
public int? AuthorityId { get; set; }
///
/// If true lock must be passed
///
/// If true lock must be passed
+ /// true
[DataMember(Name = "lock", EmitDefaultValue = true)]
- public bool? Lock { get; set; }
+ public bool? VarLock { get; set; }
///
- /// Gets or Sets Created
+ /// Required reference to a port
///
+ /// Required reference to a port
+ /// 1
+ [DataMember(Name = "port_id", EmitDefaultValue = true)]
+ public int PortId { get; set; }
+ ///
+ /// Readonly field set by the database when berth was created
+ ///
+ /// Readonly field set by the database when berth was created
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "created", EmitDefaultValue = true)]
public DateTime Created { get; set; }
///
- /// Gets or Sets Modified
+ /// Readonly field set by the database when berth was last modified
///
+ /// Readonly field set by the database when berth was last modified
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "modified", EmitDefaultValue = true)]
public DateTime? Modified { get; set; }
///
- /// Gets or Sets Deleted
+ /// marks the berth as logically deleted
///
+ /// marks the berth as logically deleted
+ /// false
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }
///
@@ -6235,7 +6425,8 @@ namespace BreCalClient.misc.Model
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" OwnerId: ").Append(OwnerId).Append("\n");
sb.Append(" AuthorityId: ").Append(AuthorityId).Append("\n");
- sb.Append(" Lock: ").Append(Lock).Append("\n");
+ sb.Append(" VarLock: ").Append(VarLock).Append("\n");
+ sb.Append(" PortId: ").Append(PortId).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Modified: ").Append(Modified).Append("\n");
sb.Append(" Deleted: ").Append(Deleted).Append("\n");
@@ -6251,16 +6442,119 @@ namespace BreCalClient.misc.Model
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 Berth);
+ }
+ ///
+ /// Returns true if Berth instances are equal
+ ///
+ /// Instance of Berth to be compared
+ /// Boolean
+ public bool Equals(Berth input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ 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.PortId == input.PortId ||
+ this.PortId.Equals(input.PortId)
+ ) &&
+ (
+ 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)
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ if (this.Name != null)
+ {
+ hashCode = (hashCode * 59) + this.Name.GetHashCode();
+ }
+ if (this.OwnerId != null)
+ {
+ hashCode = (hashCode * 59) + this.OwnerId.GetHashCode();
+ }
+ if (this.AuthorityId != null)
+ {
+ hashCode = (hashCode * 59) + this.AuthorityId.GetHashCode();
+ }
+ if (this.VarLock != null)
+ {
+ hashCode = (hashCode * 59) + this.VarLock.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.PortId.GetHashCode();
+ if (this.Created != null)
+ {
+ hashCode = (hashCode * 59) + this.Created.GetHashCode();
+ }
+ if (this.Modified != null)
+ {
+ hashCode = (hashCode * 59) + this.Modified.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.Deleted.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
// Name (string) maxLength
if (this.Name != null && this.Name.Length > 128)
{
- yield return new ValidationResult("Invalid value for Name, length must be less than 128.", new [] { "Name" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than 128.", new [] { "Name" });
}
yield break;
}
@@ -6272,17 +6566,17 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
namespace BreCalClient.misc.Model
{
///
- /// Credentials
+ /// Login credentials for the user
///
[DataContract(Name = "credentials")]
- public partial class Credentials : IValidatableObject
+ public partial class Credentials : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -6312,11 +6606,13 @@ namespace BreCalClient.misc.Model
///
/// Gets or Sets Username
///
+ /// alfred
[DataMember(Name = "username", IsRequired = true, EmitDefaultValue = true)]
public string Username { get; set; }
///
/// Gets or Sets Password
///
+ /// 123456
[DataMember(Name = "password", IsRequired = true, EmitDefaultValue = true)]
public string Password { get; set; }
///
@@ -6341,11 +6637,63 @@ namespace BreCalClient.misc.Model
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 Credentials);
+ }
+ ///
+ /// Returns true if Credentials instances are equal
+ ///
+ /// Instance of Credentials to be compared
+ /// Boolean
+ public bool Equals(Credentials input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Username == input.Username ||
+ (this.Username != null &&
+ this.Username.Equals(input.Username))
+ ) &&
+ (
+ this.Password == input.Password ||
+ (this.Password != null &&
+ this.Password.Equals(input.Password))
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Username != null)
+ {
+ hashCode = (hashCode * 59) + this.Username.GetHashCode();
+ }
+ if (this.Password != null)
+ {
+ hashCode = (hashCode * 59) + this.Password.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
@@ -6357,7 +6705,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6367,7 +6715,7 @@ namespace BreCalClient.misc.Model
/// Structure returned when invalid data (bad request) is created.
///
[DataContract(Name = "Error")]
- public partial class Error : IValidatableObject
+ public partial class Error : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -6377,38 +6725,32 @@ namespace BreCalClient.misc.Model
///
/// Initializes a new instance of the class.
///
- /// A human readable error message (required).
- /// A list of errors.
- /// A dictionary of valid data.
- public Error(string message = default(string), List errors = default(List), Object validData = default(Object))
+ /// Input field that caused the error or general error message (required).
+ /// Detailed description if error_field was an input field.
+ public Error(string errorField = default(string), string errorDescription = default(string))
{
- // to ensure "message" is required (not null)
- if (message == null)
+ // to ensure "errorField" is required (not null)
+ if (errorField == null)
{
- throw new ArgumentNullException("message is a required property for Error and cannot be null");
+ throw new ArgumentNullException("errorField is a required property for Error and cannot be null");
}
- this.Message = message;
- this.Errors = errors;
- this.ValidData = validData;
+ this.ErrorField = errorField;
+ this.ErrorDescription = errorDescription;
}
///
- /// A human readable error message
+ /// Input field that caused the error or general error message
///
- /// A human readable error message
- [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)]
- public string Message { get; set; }
+ /// Input field that caused the error or general error message
+ /// eta
+ [DataMember(Name = "error_field", IsRequired = true, EmitDefaultValue = true)]
+ public string ErrorField { get; set; }
///
- /// A list of errors
+ /// Detailed description if error_field was an input field
///
- /// A list of errors
- [DataMember(Name = "errors", EmitDefaultValue = true)]
- public List Errors { get; set; }
- ///
- /// A dictionary of valid data
- ///
- /// A dictionary of valid data
- [DataMember(Name = "valid_data", EmitDefaultValue = true)]
- public Object ValidData { get; set; }
+ /// Detailed description if error_field was an input field
+ /// eta must be in the future
+ [DataMember(Name = "error_description", EmitDefaultValue = true)]
+ public string ErrorDescription { get; set; }
///
/// Returns the string presentation of the object
///
@@ -6417,9 +6759,8 @@ namespace BreCalClient.misc.Model
{
StringBuilder sb = new StringBuilder();
sb.Append("class Error {\n");
- sb.Append(" Message: ").Append(Message).Append("\n");
- sb.Append(" Errors: ").Append(Errors).Append("\n");
- sb.Append(" ValidData: ").Append(ValidData).Append("\n");
+ sb.Append(" ErrorField: ").Append(ErrorField).Append("\n");
+ sb.Append(" ErrorDescription: ").Append(ErrorDescription).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -6432,11 +6773,63 @@ namespace BreCalClient.misc.Model
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 Error);
+ }
+ ///
+ /// Returns true if Error instances are equal
+ ///
+ /// Instance of Error to be compared
+ /// Boolean
+ public bool Equals(Error input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.ErrorField == input.ErrorField ||
+ (this.ErrorField != null &&
+ this.ErrorField.Equals(input.ErrorField))
+ ) &&
+ (
+ this.ErrorDescription == input.ErrorDescription ||
+ (this.ErrorDescription != null &&
+ this.ErrorDescription.Equals(input.ErrorDescription))
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.ErrorField != null)
+ {
+ hashCode = (hashCode * 59) + this.ErrorField.GetHashCode();
+ }
+ if (this.ErrorDescription != null)
+ {
+ hashCode = (hashCode * 59) + this.ErrorDescription.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
@@ -6448,15 +6841,16 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
namespace BreCalClient.misc.Model
{
///
- /// Defines EvaluationType
+ /// Evaluation of the ship call
///
+ /// Evaluation of the ship call
[JsonConverter(typeof(StringEnumConverter))]
public enum EvaluationType
{
@@ -6488,7 +6882,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6498,7 +6892,7 @@ namespace BreCalClient.misc.Model
/// Single history entry with references
///
[DataContract(Name = "history")]
- public partial class History : IValidatableObject
+ public partial class History : IEquatable, IValidatableObject
{
///
/// Gets or Sets Operation
@@ -6533,26 +6927,31 @@ namespace BreCalClient.misc.Model
///
/// Gets or Sets Id
///
+ /// 3
[DataMember(Name = "id", EmitDefaultValue = true)]
public int Id { get; set; }
///
/// Gets or Sets ParticipantId
///
+ /// 5
[DataMember(Name = "participant_id", EmitDefaultValue = true)]
public int ParticipantId { get; set; }
///
/// Gets or Sets ShipcallId
///
+ /// 42
[DataMember(Name = "shipcall_id", EmitDefaultValue = true)]
public int ShipcallId { get; set; }
///
/// Gets or Sets Timestamp
///
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "timestamp", EmitDefaultValue = true)]
public DateTime Timestamp { get; set; }
///
/// Gets or Sets Eta
///
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "eta", EmitDefaultValue = true)]
public DateTime Eta { get; set; }
///
@@ -6582,11 +6981,88 @@ namespace BreCalClient.misc.Model
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 History);
+ }
+ ///
+ /// Returns true if History instances are equal
+ ///
+ /// Instance of History to be compared
+ /// Boolean
+ public bool Equals(History input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ 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)
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ hashCode = (hashCode * 59) + this.ParticipantId.GetHashCode();
+ hashCode = (hashCode * 59) + this.ShipcallId.GetHashCode();
+ if (this.Timestamp != null)
+ {
+ hashCode = (hashCode * 59) + this.Timestamp.GetHashCode();
+ }
+ if (this.Eta != null)
+ {
+ hashCode = (hashCode * 59) + this.Eta.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.Operation.GetHashCode();
+ hashCode = (hashCode * 59) + this.Type.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
@@ -6598,7 +7074,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6608,7 +7084,7 @@ namespace BreCalClient.misc.Model
/// A unique identifier for an entity
///
[DataContract(Name = "Id")]
- public partial class Id : IValidatableObject
+ public partial class Id : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -6621,6 +7097,7 @@ namespace BreCalClient.misc.Model
///
/// Gets or Sets VarId
///
+ /// 42
[DataMember(Name = "id", EmitDefaultValue = true)]
public int VarId { get; set; }
///
@@ -6644,11 +7121,50 @@ namespace BreCalClient.misc.Model
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)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
@@ -6660,7 +7176,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6670,7 +7186,7 @@ namespace BreCalClient.misc.Model
/// result structure of a successful login attempt
///
[DataContract(Name = "login_result")]
- public partial class LoginResult : IValidatableObject
+ public partial class LoginResult : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -6699,46 +7215,55 @@ namespace BreCalClient.misc.Model
///
/// Gets or Sets Id
///
+ /// 42
[DataMember(Name = "id", EmitDefaultValue = true)]
public int Id { get; set; }
///
/// Gets or Sets ParticipantId
///
+ /// 5
[DataMember(Name = "participant_id", EmitDefaultValue = true)]
public int ParticipantId { get; set; }
///
/// Gets or Sets FirstName
///
+ /// John
[DataMember(Name = "first_name", EmitDefaultValue = true)]
public string FirstName { get; set; }
///
/// Gets or Sets LastName
///
+ /// Doe
[DataMember(Name = "last_name", EmitDefaultValue = true)]
public string LastName { get; set; }
///
/// Gets or Sets UserName
///
+ /// johndoe
[DataMember(Name = "user_name", EmitDefaultValue = true)]
public string UserName { get; set; }
///
/// Gets or Sets UserPhone
///
+ /// 1234567890
[DataMember(Name = "user_phone", EmitDefaultValue = true)]
public string UserPhone { get; set; }
///
/// Gets or Sets UserEmail
///
+ /// no@where.com
[DataMember(Name = "user_email", EmitDefaultValue = true)]
public string UserEmail { get; set; }
///
/// Gets or Sets Exp
///
+ /// 1630000000
[DataMember(Name = "exp", EmitDefaultValue = true)]
public float Exp { get; set; }
///
/// Gets or Sets Token
///
+ /// eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
[DataMember(Name = "token", EmitDefaultValue = true)]
public string Token { get; set; }
///
@@ -6770,11 +7295,114 @@ namespace BreCalClient.misc.Model
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 LoginResult);
+ }
+ ///
+ /// Returns true if LoginResult instances are equal
+ ///
+ /// Instance of LoginResult to be compared
+ /// Boolean
+ public bool Equals(LoginResult input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ 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 &&
+ this.Token.Equals(input.Token))
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ hashCode = (hashCode * 59) + this.ParticipantId.GetHashCode();
+ if (this.FirstName != null)
+ {
+ hashCode = (hashCode * 59) + this.FirstName.GetHashCode();
+ }
+ if (this.LastName != null)
+ {
+ hashCode = (hashCode * 59) + this.LastName.GetHashCode();
+ }
+ if (this.UserName != null)
+ {
+ hashCode = (hashCode * 59) + this.UserName.GetHashCode();
+ }
+ if (this.UserPhone != null)
+ {
+ hashCode = (hashCode * 59) + this.UserPhone.GetHashCode();
+ }
+ if (this.UserEmail != null)
+ {
+ hashCode = (hashCode * 59) + this.UserEmail.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.Exp.GetHashCode();
+ if (this.Token != null)
+ {
+ hashCode = (hashCode * 59) + this.Token.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
@@ -6786,7 +7414,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6796,7 +7424,7 @@ namespace BreCalClient.misc.Model
/// a notification created by the engine if a times entry violates a rule
///
[DataContract(Name = "notification")]
- public partial class Notification : IValidatableObject
+ public partial class Notification : IEquatable, IValidatableObject
{
///
/// Gets or Sets NotificationType
@@ -6810,8 +7438,8 @@ namespace BreCalClient.misc.Model
/// shipcallId.
/// notificationType.
/// message.
- /// Readonly field set by the database.
- /// Readonly field set by the database.
+ /// Readonly field set by the database when notification was created.
+ /// Readonly field set by the database when notification was last modified.
public Notification(int id = default(int), int shipcallId = default(int), NotificationType? notificationType = default(NotificationType?), string message = default(string), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
{
this.Id = id;
@@ -6824,28 +7452,33 @@ namespace BreCalClient.misc.Model
///
/// Gets or Sets Id
///
+ /// 42
[DataMember(Name = "id", EmitDefaultValue = true)]
public int Id { get; set; }
///
/// Gets or Sets ShipcallId
///
+ /// 5
[DataMember(Name = "shipcall_id", EmitDefaultValue = true)]
public int ShipcallId { get; set; }
///
/// Gets or Sets Message
///
+ /// Entry XY violates rule Z
[DataMember(Name = "message", EmitDefaultValue = true)]
public string Message { get; set; }
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when notification was created
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when notification was created
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "created", EmitDefaultValue = true)]
public DateTime Created { get; set; }
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when notification was last modified
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when notification was last modified
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "modified", EmitDefaultValue = true)]
public DateTime? Modified { get; set; }
///
@@ -6874,11 +7507,87 @@ namespace BreCalClient.misc.Model
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 Notification);
+ }
+ ///
+ /// Returns true if Notification instances are equal
+ ///
+ /// Instance of Notification to be compared
+ /// Boolean
+ public bool Equals(Notification input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ 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 &&
+ this.Modified.Equals(input.Modified))
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ hashCode = (hashCode * 59) + this.ShipcallId.GetHashCode();
+ hashCode = (hashCode * 59) + this.NotificationType.GetHashCode();
+ if (this.Message != null)
+ {
+ hashCode = (hashCode * 59) + this.Message.GetHashCode();
+ }
+ if (this.Created != null)
+ {
+ hashCode = (hashCode * 59) + this.Created.GetHashCode();
+ }
+ if (this.Modified != null)
+ {
+ hashCode = (hashCode * 59) + this.Modified.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
@@ -6890,15 +7599,16 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
namespace BreCalClient.misc.Model
{
///
- /// Defines NotificationType
+ /// Type of notification
///
+ /// Type of notification
[JsonConverter(typeof(StringEnumConverter))]
public enum NotificationType
{
@@ -6925,15 +7635,16 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
namespace BreCalClient.misc.Model
{
///
- /// Defines ObjectType
+ /// Type of object that was changed
///
+ /// Type of object that was changed
[JsonConverter(typeof(StringEnumConverter))]
public enum ObjectType
{
@@ -6955,15 +7666,16 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
namespace BreCalClient.misc.Model
{
///
- /// Defines OperationType
+ /// Type of operation that was performed
///
+ /// Type of operation that was performed
[JsonConverter(typeof(StringEnumConverter))]
public enum OperationType
{
@@ -6995,7 +7707,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -7005,7 +7717,7 @@ namespace BreCalClient.misc.Model
/// A organisational entity that participates in Bremen Calling
///
[DataContract(Name = "participant")]
- public partial class Participant : IValidatableObject
+ public partial class Participant : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -7015,11 +7727,11 @@ namespace BreCalClient.misc.Model
/// street.
/// postalCode.
/// city.
- /// a logical combination (bitflag) of possible values. This cannot be encoded in a Enumeration type with discrete values in OpenAPI version < 3.1. The values are 1=.
- /// flags.
- /// Readonly field set by the database.
- /// Readonly field set by the database.
- /// deleted (default to false).
+ /// a logical combination (bitflag) of possible values. This cannot be encoded in a Enumeration type with discrete values in OpenAPI version < 3.1..
+ /// Bit-encoded flag array for internal use.
+ /// Readonly field set by the database when participant was created.
+ /// Readonly field set by the database when participant was last modified.
+ /// marks the participant as logically deleted (default to false).
public Participant(int id = default(int), string name = default(string), string street = default(string), string postalCode = default(string), string city = default(string), int type = default(int), int? flags = default(int?), DateTime created = default(DateTime), DateTime? modified = default(DateTime?), bool deleted = false)
{
this.Id = id;
@@ -7036,54 +7748,66 @@ namespace BreCalClient.misc.Model
///
/// Gets or Sets Id
///
+ /// 42
[DataMember(Name = "id", EmitDefaultValue = true)]
public int Id { get; set; }
///
/// Gets or Sets Name
///
+ /// BSMD
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
///
/// Gets or Sets Street
///
+ /// Hermann-Hollerith-Str. 7
[DataMember(Name = "street", EmitDefaultValue = true)]
public string Street { get; set; }
///
/// Gets or Sets PostalCode
///
+ /// 28359
[DataMember(Name = "postal code", EmitDefaultValue = true)]
public string PostalCode { get; set; }
///
/// Gets or Sets City
///
+ /// Bremen
[DataMember(Name = "city", EmitDefaultValue = true)]
public string City { get; set; }
///
- /// a logical combination (bitflag) of possible values. This cannot be encoded in a Enumeration type with discrete values in OpenAPI version < 3.1. The values are 1=
+ /// a logical combination (bitflag) of possible values. This cannot be encoded in a Enumeration type with discrete values in OpenAPI version < 3.1.
///
- /// a logical combination (bitflag) of possible values. This cannot be encoded in a Enumeration type with discrete values in OpenAPI version < 3.1. The values are 1=
+ /// a logical combination (bitflag) of possible values. This cannot be encoded in a Enumeration type with discrete values in OpenAPI version < 3.1.
+ /// 10
[DataMember(Name = "type", EmitDefaultValue = true)]
public int Type { get; set; }
///
- /// Gets or Sets Flags
+ /// Bit-encoded flag array for internal use
///
+ /// Bit-encoded flag array for internal use
+ /// 0
[DataMember(Name = "flags", EmitDefaultValue = true)]
public int? Flags { get; set; }
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when participant was created
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when participant was created
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "created", EmitDefaultValue = true)]
public DateTime Created { get; set; }
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when participant was last modified
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when participant was last modified
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "modified", EmitDefaultValue = true)]
public DateTime? Modified { get; set; }
///
- /// Gets or Sets Deleted
+ /// marks the participant as logically deleted
///
+ /// marks the participant as logically deleted
+ /// false
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }
///
@@ -7116,31 +7840,143 @@ namespace BreCalClient.misc.Model
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 Participant);
+ }
+ ///
+ /// Returns true if Participant instances are equal
+ ///
+ /// Instance of Participant to be compared
+ /// Boolean
+ public bool Equals(Participant input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ 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)
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ if (this.Name != null)
+ {
+ hashCode = (hashCode * 59) + this.Name.GetHashCode();
+ }
+ if (this.Street != null)
+ {
+ hashCode = (hashCode * 59) + this.Street.GetHashCode();
+ }
+ if (this.PostalCode != null)
+ {
+ hashCode = (hashCode * 59) + this.PostalCode.GetHashCode();
+ }
+ if (this.City != null)
+ {
+ hashCode = (hashCode * 59) + this.City.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.Type.GetHashCode();
+ if (this.Flags != null)
+ {
+ hashCode = (hashCode * 59) + this.Flags.GetHashCode();
+ }
+ if (this.Created != null)
+ {
+ hashCode = (hashCode * 59) + this.Created.GetHashCode();
+ }
+ if (this.Modified != null)
+ {
+ hashCode = (hashCode * 59) + this.Modified.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.Deleted.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
// Name (string) maxLength
if (this.Name != null && this.Name.Length > 128)
{
- yield return new ValidationResult("Invalid value for Name, length must be less than 128.", new [] { "Name" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than 128.", new [] { "Name" });
}
// Street (string) maxLength
if (this.Street != null && this.Street.Length > 128)
{
- yield return new ValidationResult("Invalid value for Street, length must be less than 128.", new [] { "Street" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Street, length must be less than 128.", new [] { "Street" });
}
// PostalCode (string) maxLength
if (this.PostalCode != null && this.PostalCode.Length > 5)
{
- yield return new ValidationResult("Invalid value for PostalCode, length must be less than 5.", new [] { "PostalCode" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PostalCode, length must be less than 5.", new [] { "PostalCode" });
}
// City (string) maxLength
if (this.City != null && this.City.Length > 64)
{
- yield return new ValidationResult("Invalid value for City, length must be less than 64.", new [] { "City" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for City, length must be less than 64.", new [] { "City" });
}
yield break;
}
@@ -7152,7 +7988,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -7162,7 +7998,7 @@ namespace BreCalClient.misc.Model
/// Participant assigned to a shipcall with a given role (type)
///
[DataContract(Name = "participant_assignment")]
- public partial class ParticipantAssignment : IValidatableObject
+ public partial class ParticipantAssignment : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -7173,7 +8009,7 @@ namespace BreCalClient.misc.Model
/// Initializes a new instance of the class.
///
/// participantId (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).
+ /// Possible role values: 1: BSMD 2: TERMINAL, 4: PILOT, 8: AGENCY, 16: MOORING, 32: PORT_ADMINISTRATION, 64: TUG. A participant may appear multiple times with different roles. (required).
public ParticipantAssignment(int participantId = default(int), int type = default(int))
{
this.ParticipantId = participantId;
@@ -7182,12 +8018,14 @@ namespace BreCalClient.misc.Model
///
/// Gets or Sets ParticipantId
///
+ /// 5
[DataMember(Name = "participant_id", IsRequired = true, EmitDefaultValue = true)]
public int ParticipantId { get; set; }
///
- /// 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
+ /// Possible role values: 1: BSMD 2: TERMINAL, 4: PILOT, 8: AGENCY, 16: MOORING, 32: PORT_ADMINISTRATION, 64: TUG. A participant may appear multiple times with different roles.
///
- /// 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
+ /// Possible role values: 1: BSMD 2: TERMINAL, 4: PILOT, 8: AGENCY, 16: MOORING, 32: PORT_ADMINISTRATION, 64: TUG. A participant may appear multiple times with different roles.
+ /// 4
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
public int Type { get; set; }
///
@@ -7212,11 +8050,55 @@ namespace BreCalClient.misc.Model
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 ParticipantAssignment);
+ }
+ ///
+ /// Returns true if ParticipantAssignment instances are equal
+ ///
+ /// Instance of ParticipantAssignment to be compared
+ /// Boolean
+ public bool Equals(ParticipantAssignment input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.ParticipantId == input.ParticipantId ||
+ this.ParticipantId.Equals(input.ParticipantId)
+ ) &&
+ (
+ this.Type == input.Type ||
+ this.Type.Equals(input.Type)
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.ParticipantId.GetHashCode();
+ hashCode = (hashCode * 59) + this.Type.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
@@ -7228,7 +8110,160 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
+ * Contact: info@textbausteine.net
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+namespace BreCalClient.misc.Model
+{
+ ///
+ /// Record of port data
+ ///
+ [DataContract(Name = "port")]
+ public partial class Port : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// id.
+ /// name.
+ /// locode.
+ public Port(int id = default(int), string name = default(string), string locode = default(string))
+ {
+ this.Id = id;
+ this.Name = name;
+ this.Locode = locode;
+ }
+ ///
+ /// Gets or Sets Id
+ ///
+ /// 2
+ [DataMember(Name = "id", EmitDefaultValue = true)]
+ public int Id { get; set; }
+ ///
+ /// Gets or Sets Name
+ ///
+ /// Hamburg
+ [DataMember(Name = "name", EmitDefaultValue = true)]
+ public string Name { get; set; }
+ ///
+ /// Gets or Sets Locode
+ ///
+ /// DEHAM
+ [DataMember(Name = "locode", EmitDefaultValue = true)]
+ public string Locode { 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 Port {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Name: ").Append(Name).Append("\n");
+ sb.Append(" Locode: ").Append(Locode).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 Port);
+ }
+ ///
+ /// Returns true if Port instances are equal
+ ///
+ /// Instance of Port to be compared
+ /// Boolean
+ public bool Equals(Port input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Id == input.Id ||
+ this.Id.Equals(input.Id)
+ ) &&
+ (
+ this.Name == input.Name ||
+ (this.Name != null &&
+ this.Name.Equals(input.Name))
+ ) &&
+ (
+ this.Locode == input.Locode ||
+ (this.Locode != null &&
+ this.Locode.Equals(input.Locode))
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ if (this.Name != null)
+ {
+ hashCode = (hashCode * 59) + this.Name.GetHashCode();
+ }
+ if (this.Locode != null)
+ {
+ hashCode = (hashCode * 59) + this.Locode.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ // Id (int) minimum
+ if (this.Id < (int)1)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, must be a value greater than or equal to 1.", new [] { "Id" });
+ }
+ // Locode (string) maxLength
+ if (this.Locode != null && this.Locode.Length > 5)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locode, length must be less than 5.", new [] { "Locode" });
+ }
+ // Locode (string) minLength
+ if (this.Locode != null && this.Locode.Length < 5)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Locode, length must be greater than 5.", new [] { "Locode" });
+ }
+ yield break;
+ }
+ }
+}
+
+/*
+ * Bremen calling API
+ *
+ * Administer DEBRE ship calls, times and notifications
+ *
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -7238,7 +8273,7 @@ namespace BreCalClient.misc.Model
/// a ship
///
[DataContract(Name = "ship")]
- public partial class Ship : IValidatableObject
+ public partial class Ship : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -7253,9 +8288,9 @@ namespace BreCalClient.misc.Model
/// isTug (default to false).
/// bollardPull.
/// BSMD internal use.
- /// created.
- /// modified.
- /// deleted (default to false).
+ /// Readonly field set by the database when ship was created.
+ /// Readonly field set by the database when ship was last modified.
+ /// marks the ship as logically deleted (default to false).
public Ship(int id = default(int), string name = default(string), int? imo = default(int?), string callsign = default(string), int? participantId = default(int?), double? length = default(double?), double? width = default(double?), bool isTug = false, int? bollardPull = default(int?), int? eni = default(int?), DateTime created = default(DateTime), DateTime? modified = default(DateTime?), bool deleted = false)
{
this.Id = id;
@@ -7275,68 +8310,84 @@ namespace BreCalClient.misc.Model
///
/// Gets or Sets Id
///
+ /// 8
[DataMember(Name = "id", EmitDefaultValue = true)]
public int Id { get; set; }
///
/// Gets or Sets Name
///
+ /// MS Bremen
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
///
/// Gets or Sets Imo
///
+ /// 1234567
[DataMember(Name = "imo", EmitDefaultValue = true)]
public int? Imo { get; set; }
///
/// Gets or Sets Callsign
///
+ /// DBRE
[DataMember(Name = "callsign", EmitDefaultValue = true)]
public string Callsign { get; set; }
///
/// Optional reference to participant (tug role)
///
/// Optional reference to participant (tug role)
+ /// 9
[DataMember(Name = "participant_id", EmitDefaultValue = true)]
public int? ParticipantId { get; set; }
///
/// Gets or Sets Length
///
+ /// 200
[DataMember(Name = "length", EmitDefaultValue = true)]
public double? Length { get; set; }
///
/// Gets or Sets Width
///
+ /// 30
[DataMember(Name = "width", EmitDefaultValue = true)]
public double? Width { get; set; }
///
/// Gets or Sets IsTug
///
+ /// false
[DataMember(Name = "is_tug", EmitDefaultValue = true)]
public bool IsTug { get; set; }
///
/// Gets or Sets BollardPull
///
+ /// 100
[DataMember(Name = "bollard_pull", EmitDefaultValue = true)]
public int? BollardPull { get; set; }
///
/// BSMD internal use
///
/// BSMD internal use
+ /// 1234567
[DataMember(Name = "eni", EmitDefaultValue = true)]
public int? Eni { get; set; }
///
- /// Gets or Sets Created
+ /// Readonly field set by the database when ship was created
///
+ /// Readonly field set by the database when ship was created
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "created", EmitDefaultValue = true)]
public DateTime Created { get; set; }
///
- /// Gets or Sets Modified
+ /// Readonly field set by the database when ship was last modified
///
+ /// Readonly field set by the database when ship was last modified
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "modified", EmitDefaultValue = true)]
public DateTime? Modified { get; set; }
///
- /// Gets or Sets Deleted
+ /// marks the ship as logically deleted
///
+ /// marks the ship as logically deleted
+ /// false
[DataMember(Name = "deleted", EmitDefaultValue = true)]
public bool Deleted { get; set; }
///
@@ -7372,21 +8423,160 @@ namespace BreCalClient.misc.Model
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 Ship);
+ }
+ ///
+ /// Returns true if Ship instances are equal
+ ///
+ /// Instance of Ship to be compared
+ /// Boolean
+ public bool Equals(Ship input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ 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)
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ if (this.Name != null)
+ {
+ hashCode = (hashCode * 59) + this.Name.GetHashCode();
+ }
+ if (this.Imo != null)
+ {
+ hashCode = (hashCode * 59) + this.Imo.GetHashCode();
+ }
+ if (this.Callsign != null)
+ {
+ hashCode = (hashCode * 59) + this.Callsign.GetHashCode();
+ }
+ if (this.ParticipantId != null)
+ {
+ hashCode = (hashCode * 59) + this.ParticipantId.GetHashCode();
+ }
+ if (this.Length != null)
+ {
+ hashCode = (hashCode * 59) + this.Length.GetHashCode();
+ }
+ if (this.Width != null)
+ {
+ hashCode = (hashCode * 59) + this.Width.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.IsTug.GetHashCode();
+ if (this.BollardPull != null)
+ {
+ hashCode = (hashCode * 59) + this.BollardPull.GetHashCode();
+ }
+ if (this.Eni != null)
+ {
+ hashCode = (hashCode * 59) + this.Eni.GetHashCode();
+ }
+ if (this.Created != null)
+ {
+ hashCode = (hashCode * 59) + this.Created.GetHashCode();
+ }
+ if (this.Modified != null)
+ {
+ hashCode = (hashCode * 59) + this.Modified.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.Deleted.GetHashCode();
+ return hashCode;
+ }
+ }
+ ///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
// Name (string) maxLength
if (this.Name != null && this.Name.Length > 64)
{
- yield return new ValidationResult("Invalid value for Name, length must be less than 64.", new [] { "Name" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than 64.", new [] { "Name" });
}
// Callsign (string) maxLength
if (this.Callsign != null && this.Callsign.Length > 8)
{
- yield return new ValidationResult("Invalid value for Callsign, length must be less than 8.", new [] { "Callsign" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Callsign, length must be less than 8.", new [] { "Callsign" });
}
yield break;
}
@@ -7398,17 +8588,17 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
namespace BreCalClient.misc.Model
{
///
- /// Shipcall
+ /// Ship call data
///
[DataContract(Name = "shipcall")]
- public partial class Shipcall : IValidatableObject
+ public partial class Shipcall : IEquatable, IValidatableObject
{
///
/// Gets or Sets Type
@@ -7428,8 +8618,9 @@ namespace BreCalClient.misc.Model
///
/// Initializes a new instance of the class.
///
- /// The unique identifier of a ship call (required).
+ /// id.
/// shipId (required).
+ /// portId.
/// type (required).
/// eta.
/// voyage.
@@ -7454,13 +8645,14 @@ namespace BreCalClient.misc.Model
/// evaluation.
/// Physical reference point for all times given in shipcall and depending times entries.
/// participants.
- /// Readonly field set by the database.
- /// Readonly field set by the database.
- public Shipcall(int id = default(int), int shipId = default(int), ShipcallType type = default(ShipcallType), 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?), double? draft = default(double?), 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?), EvaluationType? evaluation = default(EvaluationType?), int? timeRefPoint = default(int?), List participants = default(List), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
+ /// Readonly field set by the database when shipcall was created.
+ /// Readonly field set by the database when shipcall was last modified.
+ public Shipcall(int id = default(int), int shipId = default(int), int portId = default(int), ShipcallType type = default(ShipcallType), 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?), double? draft = default(double?), 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?), EvaluationType? evaluation = default(EvaluationType?), int? timeRefPoint = default(int?), List participants = default(List), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
{
- this.Id = id;
this.ShipId = shipId;
this.Type = type;
+ this.Id = id;
+ this.PortId = portId;
this.Eta = eta;
this.Voyage = voyage;
this.Etd = etd;
@@ -7488,119 +8680,147 @@ namespace BreCalClient.misc.Model
this.Modified = modified;
}
///
- /// The unique identifier of a ship call
+ /// Gets or Sets Id
///
- /// The unique identifier of a ship call
- [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
+ /// 6
+ [DataMember(Name = "id", EmitDefaultValue = true)]
public int Id { get; set; }
///
/// Gets or Sets ShipId
///
+ /// 8
[DataMember(Name = "ship_id", IsRequired = true, EmitDefaultValue = true)]
public int ShipId { get; set; }
///
+ /// Gets or Sets PortId
+ ///
+ /// 3
+ [DataMember(Name = "port_id", EmitDefaultValue = true)]
+ public int PortId { get; set; }
+ ///
/// Gets or Sets Eta
///
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "eta", EmitDefaultValue = true)]
public DateTime? Eta { get; set; }
///
/// Gets or Sets Voyage
///
+ /// Voyage 123
[DataMember(Name = "voyage", EmitDefaultValue = true)]
public string Voyage { get; set; }
///
/// Gets or Sets Etd
///
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "etd", EmitDefaultValue = true)]
public DateTime? Etd { get; set; }
///
/// Gets or Sets ArrivalBerthId
///
+ /// 3
[DataMember(Name = "arrival_berth_id", EmitDefaultValue = true)]
public int? ArrivalBerthId { get; set; }
///
/// Gets or Sets DepartureBerthId
///
+ /// 4
[DataMember(Name = "departure_berth_id", EmitDefaultValue = true)]
public int? DepartureBerthId { get; set; }
///
/// Gets or Sets TugRequired
///
+ /// true
[DataMember(Name = "tug_required", EmitDefaultValue = true)]
public bool? TugRequired { get; set; }
///
/// Gets or Sets PilotRequired
///
+ /// true
[DataMember(Name = "pilot_required", EmitDefaultValue = true)]
public bool? PilotRequired { get; set; }
///
/// Gets or Sets Flags
///
+ /// 1
[DataMember(Name = "flags", EmitDefaultValue = true)]
public int? Flags { get; set; }
///
/// Gets or Sets PierSide
///
+ /// false
[DataMember(Name = "pier_side", EmitDefaultValue = true)]
public bool? PierSide { get; set; }
///
/// Gets or Sets Bunkering
///
+ /// false
[DataMember(Name = "bunkering", EmitDefaultValue = true)]
public bool? Bunkering { get; set; }
///
/// Gets or Sets ReplenishingTerminal
///
+ /// false
[DataMember(Name = "replenishing_terminal", EmitDefaultValue = true)]
public bool? ReplenishingTerminal { get; set; }
///
/// Gets or Sets ReplenishingLock
///
+ /// false
[DataMember(Name = "replenishing_lock", EmitDefaultValue = true)]
public bool? ReplenishingLock { get; set; }
///
/// Gets or Sets Draft
///
+ /// 10.5
[DataMember(Name = "draft", EmitDefaultValue = true)]
public double? Draft { get; set; }
///
/// Gets or Sets TidalWindowFrom
///
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "tidal_window_from", EmitDefaultValue = true)]
public DateTime? TidalWindowFrom { get; set; }
///
/// Gets or Sets TidalWindowTo
///
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "tidal_window_to", EmitDefaultValue = true)]
public DateTime? TidalWindowTo { get; set; }
///
/// Gets or Sets RainSensitiveCargo
///
+ /// false
[DataMember(Name = "rain_sensitive_cargo", EmitDefaultValue = true)]
public bool? RainSensitiveCargo { get; set; }
///
/// Gets or Sets RecommendedTugs
///
+ /// 2
[DataMember(Name = "recommended_tugs", EmitDefaultValue = true)]
public int? RecommendedTugs { get; set; }
///
/// Gets or Sets Anchored
///
+ /// false
[DataMember(Name = "anchored", EmitDefaultValue = true)]
public bool? Anchored { get; set; }
///
/// Gets or Sets MooredLock
///
+ /// false
[DataMember(Name = "moored_lock", EmitDefaultValue = true)]
public bool? MooredLock { get; set; }
///
/// Gets or Sets Canceled
///
+ /// false
[DataMember(Name = "canceled", EmitDefaultValue = true)]
public bool? Canceled { get; set; }
///
/// Gets or Sets EvaluationMessage
///
+ /// Time window too short
[DataMember(Name = "evaluation_message", EmitDefaultValue = true)]
public string EvaluationMessage { get; private set; }
///
@@ -7619,23 +8839,27 @@ namespace BreCalClient.misc.Model
/// Physical reference point for all times given in shipcall and depending times entries
///
/// Physical reference point for all times given in shipcall and depending times entries
+ /// 1
[DataMember(Name = "time_ref_point", EmitDefaultValue = true)]
public int? TimeRefPoint { get; set; }
///
/// Gets or Sets Participants
///
+ /// [{"participant_id":5,"type":4},{"participant_id":6,"type":8}]
[DataMember(Name = "participants", EmitDefaultValue = true)]
public List Participants { get; set; }
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when shipcall was created
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when shipcall was created
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "created", EmitDefaultValue = true)]
public DateTime Created { get; set; }
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when shipcall was last modified
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when shipcall was last modified
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "modified", EmitDefaultValue = true)]
public DateTime? Modified { get; set; }
///
@@ -7648,6 +8872,7 @@ namespace BreCalClient.misc.Model
sb.Append("class Shipcall {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" ShipId: ").Append(ShipId).Append("\n");
+ sb.Append(" PortId: ").Append(PortId).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" Eta: ").Append(Eta).Append("\n");
sb.Append(" Voyage: ").Append(Voyage).Append("\n");
@@ -7687,21 +8912,306 @@ namespace BreCalClient.misc.Model
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 Shipcall);
+ }
+ ///
+ /// Returns true if Shipcall instances are equal
+ ///
+ /// Instance of Shipcall to be compared
+ /// Boolean
+ public bool Equals(Shipcall input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Id == input.Id ||
+ this.Id.Equals(input.Id)
+ ) &&
+ (
+ this.ShipId == input.ShipId ||
+ this.ShipId.Equals(input.ShipId)
+ ) &&
+ (
+ this.PortId == input.PortId ||
+ this.PortId.Equals(input.PortId)
+ ) &&
+ (
+ 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.TimeRefPoint == input.TimeRefPoint ||
+ (this.TimeRefPoint != null &&
+ this.TimeRefPoint.Equals(input.TimeRefPoint))
+ ) &&
+ (
+ 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 &&
+ this.Modified.Equals(input.Modified))
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ hashCode = (hashCode * 59) + this.ShipId.GetHashCode();
+ hashCode = (hashCode * 59) + this.PortId.GetHashCode();
+ hashCode = (hashCode * 59) + this.Type.GetHashCode();
+ if (this.Eta != null)
+ {
+ hashCode = (hashCode * 59) + this.Eta.GetHashCode();
+ }
+ if (this.Voyage != null)
+ {
+ hashCode = (hashCode * 59) + this.Voyage.GetHashCode();
+ }
+ if (this.Etd != null)
+ {
+ hashCode = (hashCode * 59) + this.Etd.GetHashCode();
+ }
+ if (this.ArrivalBerthId != null)
+ {
+ hashCode = (hashCode * 59) + this.ArrivalBerthId.GetHashCode();
+ }
+ if (this.DepartureBerthId != null)
+ {
+ hashCode = (hashCode * 59) + this.DepartureBerthId.GetHashCode();
+ }
+ if (this.TugRequired != null)
+ {
+ hashCode = (hashCode * 59) + this.TugRequired.GetHashCode();
+ }
+ if (this.PilotRequired != null)
+ {
+ hashCode = (hashCode * 59) + this.PilotRequired.GetHashCode();
+ }
+ if (this.Flags != null)
+ {
+ hashCode = (hashCode * 59) + this.Flags.GetHashCode();
+ }
+ if (this.PierSide != null)
+ {
+ hashCode = (hashCode * 59) + this.PierSide.GetHashCode();
+ }
+ if (this.Bunkering != null)
+ {
+ hashCode = (hashCode * 59) + this.Bunkering.GetHashCode();
+ }
+ if (this.ReplenishingTerminal != null)
+ {
+ hashCode = (hashCode * 59) + this.ReplenishingTerminal.GetHashCode();
+ }
+ if (this.ReplenishingLock != null)
+ {
+ hashCode = (hashCode * 59) + this.ReplenishingLock.GetHashCode();
+ }
+ if (this.Draft != null)
+ {
+ hashCode = (hashCode * 59) + this.Draft.GetHashCode();
+ }
+ if (this.TidalWindowFrom != null)
+ {
+ hashCode = (hashCode * 59) + this.TidalWindowFrom.GetHashCode();
+ }
+ if (this.TidalWindowTo != null)
+ {
+ hashCode = (hashCode * 59) + this.TidalWindowTo.GetHashCode();
+ }
+ if (this.RainSensitiveCargo != null)
+ {
+ hashCode = (hashCode * 59) + this.RainSensitiveCargo.GetHashCode();
+ }
+ if (this.RecommendedTugs != null)
+ {
+ hashCode = (hashCode * 59) + this.RecommendedTugs.GetHashCode();
+ }
+ if (this.Anchored != null)
+ {
+ hashCode = (hashCode * 59) + this.Anchored.GetHashCode();
+ }
+ if (this.MooredLock != null)
+ {
+ hashCode = (hashCode * 59) + this.MooredLock.GetHashCode();
+ }
+ if (this.Canceled != null)
+ {
+ hashCode = (hashCode * 59) + this.Canceled.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.Evaluation.GetHashCode();
+ if (this.EvaluationMessage != null)
+ {
+ hashCode = (hashCode * 59) + this.EvaluationMessage.GetHashCode();
+ }
+ if (this.TimeRefPoint != null)
+ {
+ hashCode = (hashCode * 59) + this.TimeRefPoint.GetHashCode();
+ }
+ if (this.Participants != null)
+ {
+ hashCode = (hashCode * 59) + this.Participants.GetHashCode();
+ }
+ if (this.Created != null)
+ {
+ hashCode = (hashCode * 59) + this.Created.GetHashCode();
+ }
+ if (this.Modified != null)
+ {
+ hashCode = (hashCode * 59) + this.Modified.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
// Voyage (string) maxLength
if (this.Voyage != null && this.Voyage.Length > 16)
{
- yield return new ValidationResult("Invalid value for Voyage, length must be less than 16.", new [] { "Voyage" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Voyage, length must be less than 16.", new [] { "Voyage" });
}
// EvaluationMessage (string) maxLength
if (this.EvaluationMessage != null && this.EvaluationMessage.Length > 512)
{
- yield return new ValidationResult("Invalid value for EvaluationMessage, length must be less than 512.", new [] { "EvaluationMessage" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EvaluationMessage, length must be less than 512.", new [] { "EvaluationMessage" });
}
yield break;
}
@@ -7713,15 +9223,16 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
namespace BreCalClient.misc.Model
{
///
- /// Defines ShipcallType
+ /// Type of ship call
///
+ /// Type of ship call
[JsonConverter(typeof(StringEnumConverter))]
public enum ShipcallType
{
@@ -7753,7 +9264,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -7763,7 +9274,7 @@ namespace BreCalClient.misc.Model
/// the id parameter needs to be missing on POST and to be present on PUT (Update) calls, otherwise a 400 response will be generated
///
[DataContract(Name = "times")]
- public partial class Times : IValidatableObject
+ public partial class Times : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -7775,28 +9286,28 @@ namespace BreCalClient.misc.Model
///
/// id.
/// Arrival time at berth.
- /// currently unused.
+ /// If true, the eta is fixed and cannot be changed.
/// departure time from berth.
- /// currently unused.
+ /// If true, the etd is fixed and cannot be changed.
/// arrival time at lock.
- /// currently unused.
- /// currently unused.
- /// currently unused.
+ /// If true, the lock time is fixed and cannot be changed.
+ /// Expected time of entry into the zone.
+ /// If true, the zone entry time is fixed and cannot be changed.
/// Start time for terminal operations.
/// End time for terminal operations.
- /// remarks.
+ /// Additional remarks.
/// Reference to a shipcall id (required).
/// Reference to a participant id (required).
/// Reference to a berth id.
/// Additional info text for berth.
/// true if ship is rotated, false otherwise.
/// participantType.
- /// can be set by mooring if actual times are different from planned.
- /// can be set by mooring if actual times are different from planned.
+ /// ata can be set by mooring if actual times are different from planned.
+ /// atd can be set by mooring if actual times are different from planned.
/// Optional end of the interval for the times eta entry.
/// Optional end of the interval for the times etd entry.
- /// Readonly field set by the database.
- /// Readonly field set by the database.
+ /// Readonly field set by the database when times record was created.
+ /// Readonly field set by the database when times record was last modified.
public Times(int id = default(int), DateTime? etaBerth = default(DateTime?), bool? etaBerthFixed = default(bool?), DateTime? etdBerth = default(DateTime?), bool? etdBerthFixed = default(bool?), DateTime? lockTime = default(DateTime?), bool? lockTimeFixed = default(bool?), DateTime? zoneEntry = default(DateTime?), bool? zoneEntryFixed = default(bool?), DateTime? operationsStart = default(DateTime?), DateTime? operationsEnd = default(DateTime?), string remarks = default(string), int shipcallId = default(int), int participantId = default(int), int? berthId = default(int?), string berthInfo = default(string), bool? pierSide = default(bool?), int participantType = default(int), DateTime? ata = default(DateTime?), DateTime? atd = default(DateTime?), DateTime? etaIntervalEnd = default(DateTime?), DateTime? etdIntervalEnd = default(DateTime?), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
{
this.ShipcallId = shipcallId;
@@ -7827,142 +9338,167 @@ namespace BreCalClient.misc.Model
///
/// Gets or Sets Id
///
+ /// 2
[DataMember(Name = "id", EmitDefaultValue = true)]
public int Id { get; set; }
///
/// Arrival time at berth
///
/// Arrival time at berth
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "eta_berth", EmitDefaultValue = true)]
public DateTime? EtaBerth { get; set; }
///
- /// currently unused
+ /// If true, the eta is fixed and cannot be changed
///
- /// currently unused
+ /// If true, the eta is fixed and cannot be changed
+ /// true
[DataMember(Name = "eta_berth_fixed", EmitDefaultValue = true)]
public bool? EtaBerthFixed { get; set; }
///
/// departure time from berth
///
/// departure time from berth
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "etd_berth", EmitDefaultValue = true)]
public DateTime? EtdBerth { get; set; }
///
- /// currently unused
+ /// If true, the etd is fixed and cannot be changed
///
- /// currently unused
+ /// If true, the etd is fixed and cannot be changed
+ /// true
[DataMember(Name = "etd_berth_fixed", EmitDefaultValue = true)]
public bool? EtdBerthFixed { get; set; }
///
/// arrival time at lock
///
/// arrival time at lock
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "lock_time", EmitDefaultValue = true)]
public DateTime? LockTime { get; set; }
///
- /// currently unused
+ /// If true, the lock time is fixed and cannot be changed
///
- /// currently unused
+ /// If true, the lock time is fixed and cannot be changed
+ /// true
[DataMember(Name = "lock_time_fixed", EmitDefaultValue = true)]
public bool? LockTimeFixed { get; set; }
///
- /// currently unused
+ /// Expected time of entry into the zone
///
- /// currently unused
+ /// Expected time of entry into the zone
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "zone_entry", EmitDefaultValue = true)]
public DateTime? ZoneEntry { get; set; }
///
- /// currently unused
+ /// If true, the zone entry time is fixed and cannot be changed
///
- /// currently unused
+ /// If true, the zone entry time is fixed and cannot be changed
+ /// true
[DataMember(Name = "zone_entry_fixed", EmitDefaultValue = true)]
public bool? ZoneEntryFixed { get; set; }
///
/// Start time for terminal operations
///
/// Start time for terminal operations
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "operations_start", EmitDefaultValue = true)]
public DateTime? OperationsStart { get; set; }
///
/// End time for terminal operations
///
/// End time for terminal operations
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "operations_end", EmitDefaultValue = true)]
public DateTime? OperationsEnd { get; set; }
///
- /// Gets or Sets Remarks
+ /// Additional remarks
///
+ /// Additional remarks
+ /// Please be aware of the strong current
[DataMember(Name = "remarks", EmitDefaultValue = true)]
public string Remarks { get; set; }
///
/// Reference to a shipcall id
///
/// Reference to a shipcall id
+ /// 23
[DataMember(Name = "shipcall_id", IsRequired = true, EmitDefaultValue = true)]
public int ShipcallId { get; set; }
///
/// Reference to a participant id
///
/// Reference to a participant id
+ /// 34
[DataMember(Name = "participant_id", IsRequired = true, EmitDefaultValue = true)]
public int ParticipantId { get; set; }
///
/// Reference to a berth id
///
/// Reference to a berth id
+ /// 1
[DataMember(Name = "berth_id", EmitDefaultValue = true)]
public int? BerthId { get; set; }
///
/// Additional info text for berth
///
/// Additional info text for berth
+ /// 200m length
[DataMember(Name = "berth_info", EmitDefaultValue = true)]
public string BerthInfo { get; set; }
///
/// true if ship is rotated, false otherwise
///
/// true if ship is rotated, false otherwise
+ /// true
[DataMember(Name = "pier_side", EmitDefaultValue = true)]
public bool? PierSide { get; set; }
///
/// Gets or Sets ParticipantType
///
+ /// 4
[DataMember(Name = "participant_type", EmitDefaultValue = true)]
public int ParticipantType { get; set; }
///
- /// can be set by mooring if actual times are different from planned
+ /// ata can be set by mooring if actual times are different from planned
///
- /// can be set by mooring if actual times are different from planned
+ /// ata can be set by mooring if actual times are different from planned
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "ata", EmitDefaultValue = true)]
public DateTime? Ata { get; set; }
///
- /// can be set by mooring if actual times are different from planned
+ /// atd can be set by mooring if actual times are different from planned
///
- /// can be set by mooring if actual times are different from planned
+ /// atd can be set by mooring if actual times are different from planned
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "atd", EmitDefaultValue = true)]
public DateTime? Atd { get; set; }
///
/// Optional end of the interval for the times eta entry
///
/// Optional end of the interval for the times eta entry
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "eta_interval_end", EmitDefaultValue = true)]
public DateTime? EtaIntervalEnd { get; set; }
///
/// Optional end of the interval for the times etd entry
///
/// Optional end of the interval for the times etd entry
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "etd_interval_end", EmitDefaultValue = true)]
public DateTime? EtdIntervalEnd { get; set; }
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when times record was created
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when times record was created
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "created", EmitDefaultValue = true)]
public DateTime Created { get; set; }
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when times record was last modified
///
- /// Readonly field set by the database
+ /// Readonly field set by the database when times record was last modified
+ /// 2023-08-21T08:23:35Z
[DataMember(Name = "modified", EmitDefaultValue = true)]
public DateTime? Modified { get; set; }
///
@@ -8009,21 +9545,255 @@ namespace BreCalClient.misc.Model
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 Times);
+ }
+ ///
+ /// Returns true if Times instances are equal
+ ///
+ /// Instance of Times to be compared
+ /// Boolean
+ public bool Equals(Times input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ 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.Ata == input.Ata ||
+ (this.Ata != null &&
+ this.Ata.Equals(input.Ata))
+ ) &&
+ (
+ this.Atd == input.Atd ||
+ (this.Atd != null &&
+ this.Atd.Equals(input.Atd))
+ ) &&
+ (
+ this.EtaIntervalEnd == input.EtaIntervalEnd ||
+ (this.EtaIntervalEnd != null &&
+ this.EtaIntervalEnd.Equals(input.EtaIntervalEnd))
+ ) &&
+ (
+ this.EtdIntervalEnd == input.EtdIntervalEnd ||
+ (this.EtdIntervalEnd != null &&
+ this.EtdIntervalEnd.Equals(input.EtdIntervalEnd))
+ ) &&
+ (
+ this.Created == input.Created ||
+ (this.Created != null &&
+ this.Created.Equals(input.Created))
+ ) &&
+ (
+ this.Modified == input.Modified ||
+ (this.Modified != null &&
+ this.Modified.Equals(input.Modified))
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ if (this.EtaBerth != null)
+ {
+ hashCode = (hashCode * 59) + this.EtaBerth.GetHashCode();
+ }
+ if (this.EtaBerthFixed != null)
+ {
+ hashCode = (hashCode * 59) + this.EtaBerthFixed.GetHashCode();
+ }
+ if (this.EtdBerth != null)
+ {
+ hashCode = (hashCode * 59) + this.EtdBerth.GetHashCode();
+ }
+ if (this.EtdBerthFixed != null)
+ {
+ hashCode = (hashCode * 59) + this.EtdBerthFixed.GetHashCode();
+ }
+ if (this.LockTime != null)
+ {
+ hashCode = (hashCode * 59) + this.LockTime.GetHashCode();
+ }
+ if (this.LockTimeFixed != null)
+ {
+ hashCode = (hashCode * 59) + this.LockTimeFixed.GetHashCode();
+ }
+ if (this.ZoneEntry != null)
+ {
+ hashCode = (hashCode * 59) + this.ZoneEntry.GetHashCode();
+ }
+ if (this.ZoneEntryFixed != null)
+ {
+ hashCode = (hashCode * 59) + this.ZoneEntryFixed.GetHashCode();
+ }
+ if (this.OperationsStart != null)
+ {
+ hashCode = (hashCode * 59) + this.OperationsStart.GetHashCode();
+ }
+ if (this.OperationsEnd != null)
+ {
+ hashCode = (hashCode * 59) + this.OperationsEnd.GetHashCode();
+ }
+ if (this.Remarks != null)
+ {
+ hashCode = (hashCode * 59) + this.Remarks.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.ShipcallId.GetHashCode();
+ hashCode = (hashCode * 59) + this.ParticipantId.GetHashCode();
+ if (this.BerthId != null)
+ {
+ hashCode = (hashCode * 59) + this.BerthId.GetHashCode();
+ }
+ if (this.BerthInfo != null)
+ {
+ hashCode = (hashCode * 59) + this.BerthInfo.GetHashCode();
+ }
+ if (this.PierSide != null)
+ {
+ hashCode = (hashCode * 59) + this.PierSide.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.ParticipantType.GetHashCode();
+ if (this.Ata != null)
+ {
+ hashCode = (hashCode * 59) + this.Ata.GetHashCode();
+ }
+ if (this.Atd != null)
+ {
+ hashCode = (hashCode * 59) + this.Atd.GetHashCode();
+ }
+ if (this.EtaIntervalEnd != null)
+ {
+ hashCode = (hashCode * 59) + this.EtaIntervalEnd.GetHashCode();
+ }
+ if (this.EtdIntervalEnd != null)
+ {
+ hashCode = (hashCode * 59) + this.EtdIntervalEnd.GetHashCode();
+ }
+ if (this.Created != null)
+ {
+ hashCode = (hashCode * 59) + this.Created.GetHashCode();
+ }
+ if (this.Modified != null)
+ {
+ hashCode = (hashCode * 59) + this.Modified.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
// Remarks (string) maxLength
if (this.Remarks != null && this.Remarks.Length > 512)
{
- yield return new ValidationResult("Invalid value for Remarks, length must be less than 512.", new [] { "Remarks" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Remarks, length must be less than 512.", new [] { "Remarks" });
}
// BerthInfo (string) maxLength
if (this.BerthInfo != null && this.BerthInfo.Length > 512)
{
- yield return new ValidationResult("Invalid value for BerthInfo, length must be less than 512.", new [] { "BerthInfo" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for BerthInfo, length must be less than 512.", new [] { "BerthInfo" });
}
yield break;
}
@@ -8035,7 +9805,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 1.4.0
+ * The version of the OpenAPI document: 1.6.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -8045,7 +9815,7 @@ namespace BreCalClient.misc.Model
/// fields that a user may change
///
[DataContract(Name = "user_details")]
- public partial class UserDetails : IValidatableObject
+ public partial class UserDetails : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -8070,36 +9840,43 @@ namespace BreCalClient.misc.Model
///
/// Gets or Sets Id
///
+ /// 42
[DataMember(Name = "id", EmitDefaultValue = true)]
public int Id { get; set; }
///
/// Gets or Sets OldPassword
///
+ /// oldpassword
[DataMember(Name = "old_password", EmitDefaultValue = true)]
public string OldPassword { get; set; }
///
/// Gets or Sets NewPassword
///
+ /// newpassword
[DataMember(Name = "new_password", EmitDefaultValue = true)]
public string NewPassword { get; set; }
///
/// Gets or Sets FirstName
///
+ /// John
[DataMember(Name = "first_name", EmitDefaultValue = true)]
public string FirstName { get; set; }
///
/// Gets or Sets LastName
///
+ /// Doe
[DataMember(Name = "last_name", EmitDefaultValue = true)]
public string LastName { get; set; }
///
/// Gets or Sets UserPhone
///
+ /// 1234567890
[DataMember(Name = "user_phone", EmitDefaultValue = true)]
public string UserPhone { get; set; }
///
/// Gets or Sets UserEmail
///
+ /// no@where.com
[DataMember(Name = "user_email", EmitDefaultValue = true)]
public string UserEmail { get; set; }
///
@@ -8129,41 +9906,134 @@ namespace BreCalClient.misc.Model
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 UserDetails);
+ }
+ ///
+ /// Returns true if UserDetails instances are equal
+ ///
+ /// Instance of UserDetails to be compared
+ /// Boolean
+ public bool Equals(UserDetails input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ 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 &&
+ this.UserEmail.Equals(input.UserEmail))
+ );
+ }
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.Id.GetHashCode();
+ if (this.OldPassword != null)
+ {
+ hashCode = (hashCode * 59) + this.OldPassword.GetHashCode();
+ }
+ if (this.NewPassword != null)
+ {
+ hashCode = (hashCode * 59) + this.NewPassword.GetHashCode();
+ }
+ if (this.FirstName != null)
+ {
+ hashCode = (hashCode * 59) + this.FirstName.GetHashCode();
+ }
+ if (this.LastName != null)
+ {
+ hashCode = (hashCode * 59) + this.LastName.GetHashCode();
+ }
+ if (this.UserPhone != null)
+ {
+ hashCode = (hashCode * 59) + this.UserPhone.GetHashCode();
+ }
+ if (this.UserEmail != null)
+ {
+ hashCode = (hashCode * 59) + this.UserEmail.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+ ///
/// To validate all properties of the instance
///
/// Validation context
/// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
{
// OldPassword (string) maxLength
if (this.OldPassword != null && this.OldPassword.Length > 128)
{
- yield return new ValidationResult("Invalid value for OldPassword, length must be less than 128.", new [] { "OldPassword" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for OldPassword, length must be less than 128.", new [] { "OldPassword" });
}
// NewPassword (string) maxLength
if (this.NewPassword != null && this.NewPassword.Length > 128)
{
- yield return new ValidationResult("Invalid value for NewPassword, length must be less than 128.", new [] { "NewPassword" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for NewPassword, length must be less than 128.", new [] { "NewPassword" });
}
// FirstName (string) maxLength
if (this.FirstName != null && this.FirstName.Length > 45)
{
- yield return new ValidationResult("Invalid value for FirstName, length must be less than 45.", new [] { "FirstName" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FirstName, length must be less than 45.", new [] { "FirstName" });
}
// LastName (string) maxLength
if (this.LastName != null && this.LastName.Length > 45)
{
- yield return new ValidationResult("Invalid value for LastName, length must be less than 45.", new [] { "LastName" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LastName, length must be less than 45.", new [] { "LastName" });
}
// UserPhone (string) maxLength
if (this.UserPhone != null && this.UserPhone.Length > 128)
{
- yield return new ValidationResult("Invalid value for UserPhone, length must be less than 128.", new [] { "UserPhone" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UserPhone, length must be less than 128.", new [] { "UserPhone" });
}
// UserEmail (string) maxLength
if (this.UserEmail != null && this.UserEmail.Length > 128)
{
- yield return new ValidationResult("Invalid value for UserEmail, length must be less than 128.", new [] { "UserEmail" });
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for UserEmail, length must be less than 128.", new [] { "UserEmail" });
}
yield break;
}
diff --git a/misc/BreCalApi.yaml b/misc/BreCalApi.yaml
index 0d0c02f..7c86277 100644
--- a/misc/BreCalApi.yaml
+++ b/misc/BreCalApi.yaml
@@ -705,9 +705,11 @@ paths:
- id: 3
name: Pier 1
owner_id: 5
+ port_id: 3
- id: 4
name: Pier 2
owner_id: 5
+ port_id: 3
'400':
$ref: '#/components/responses/400'
'401':
@@ -758,6 +760,36 @@ paths:
$ref: '#/components/responses/500'
'503':
$ref: '#/components/responses/503'
+ /ports:
+ get:
+ summary: Your GET endpoint
+ description: Returns a list of ports
+ tags:
+ - static
+ operationId: get-ports
+ responses:
+ '200':
+ description: list of ports
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/port_list'
+ example:
+ - id: 3
+ name: Bremen
+ country: Germany
+ - id: 4
+ name: Hamburg
+ country: Germany
+ '401':
+ $ref: '#/components/responses/401'
+ '403':
+ $ref: '#/components/responses/403'
+ '500':
+ $ref: '#/components/responses/500'
+ '503':
+ $ref: '#/components/responses/503'
+
components:
schemas:
credentials:
@@ -808,6 +840,7 @@ components:
example:
id: 6
ship_id: 8
+ port_id: 1
type: arrival
eta: '2023-08-21T08:23:35Z'
voyage: Voyage 123
@@ -846,6 +879,9 @@ components:
ship_id:
type: integer
example: 8
+ port_id:
+ type: integer
+ example: 3
type:
$ref: '#/components/schemas/ShipcallType'
eta:
@@ -978,6 +1014,7 @@ components:
example:
- id: 6
ship_id: 8
+ port_id: 1
type: arrival
eta: '2023-08-21T08:23:35Z'
voyage: Voyage 123
@@ -1011,6 +1048,7 @@ components:
modified: '2023-08-21T08:23:35Z'
- id: 7
ship_id: 8
+ port_id: 1
type: departure
eta: '2023-08-21T08:23:35Z'
voyage: Voyage 123
@@ -1281,6 +1319,11 @@ components:
nullable: true
description: If true lock must be passed
example: true
+ port_id:
+ type: integer
+ nullable: false
+ description: Required reference to a port
+ example: 1
created:
description: Readonly field set by the database when berth was created
type: string
@@ -1303,6 +1346,7 @@ components:
owner_id: 5
authority_id: 6
lock: true
+ port_id: 1
created: '2023-08-21T08:23:35Z'
modified: '2023-08-21T08:23:35Z'
deleted: false
@@ -1317,6 +1361,7 @@ components:
owner_id: 5
authority_id: 6
lock: true
+ port_id: 1
created: '2023-08-21T08:23:35Z'
modified: '2023-08-21T08:23:35Z'
deleted: false
@@ -1325,6 +1370,7 @@ components:
owner_id: 5
authority_id: 6
lock: true
+ port_id: 1
created: '2023-08-21T08:23:35Z'
modified: '2023-08-21T08:23:35Z'
deleted: false
@@ -1777,6 +1823,48 @@ components:
- times
- shipcall
example: times
+ port:
+ title: port
+ x-stoplight:
+ id: j17v63cxewkz6
+ type: object
+ description: Record of port data
+ properties:
+ id:
+ type: integer
+ example: 2
+ minimum: 1
+ name:
+ type: string
+ x-stoplight:
+ id: zfcomg2kr5e9g
+ example: Hamburg
+ locode:
+ type: string
+ x-stoplight:
+ id: lbrnbreql8ah1
+ maxLength: 5
+ minLength: 5
+ example: DEHAM
+ example:
+ id: 2
+ name: Hamburg
+ locode: DEHAM
+ port_list:
+ title: port_list
+ description: List of ports
+ x-stoplight:
+ id: it0cu6ivurgii
+ type: array
+ items:
+ $ref: '#/components/schemas/port'
+ example:
+ - id: 2
+ name: Hamburg
+ locode: DEHAM
+ - id: 3
+ name: Bremen
+ locode: DEBRE
securitySchemes:
ApiKey:
description: API key needed to access the API
diff --git a/src/BreCalClient/MainWindow.xaml.cs b/src/BreCalClient/MainWindow.xaml.cs
index db705dd..eba34e2 100644
--- a/src/BreCalClient/MainWindow.xaml.cs
+++ b/src/BreCalClient/MainWindow.xaml.cs
@@ -184,10 +184,10 @@ namespace BreCalClient
{
if ((ex.ErrorContent != null && ((string)ex.ErrorContent).StartsWith("{"))) {
Error? anError = JsonConvert.DeserializeObject((string)ex.ErrorContent);
- if ((anError != null) && anError.Message.Equals("invalid credentials"))
+ if ((anError != null) && anError.ErrorField.Equals("invalid credentials"))
this.labelLoginResult.Content = BreCalClient.Resources.Resources.textWrongCredentials;
else
- this.labelLoginResult.Content = anError?.Message ?? ex.Message;
+ this.labelLoginResult.Content = anError?.ErrorField ?? ex.Message;
}
else {
this.labelLoginResult.Content = ex.Message;