diff --git a/misc/BreCalApi.cs b/misc/BreCalApi.cs
index 741fbf4..8d04cf3 100644
--- a/misc/BreCalApi.cs
+++ b/misc/BreCalApi.cs
@@ -1,8 +1,8 @@
//----------------------
//
-// Generated REST API Client Code Generator v1.8.4.0 on 01.11.2023 15:27:09
-// Using the tool OpenAPI Generator v7.0.0
+// Generated REST API Client Code Generator v1.9.1.0 on 15.12.2023 13:07:51
+// Using the tool OpenAPI Generator v7.1.0
//
//----------------------
@@ -39,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: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -70,7 +71,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of all berths registered
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -88,7 +89,7 @@ namespace BreCalClient.misc.Api
/// Returns a JWT session token and user data if successful
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Login credentials
@@ -108,7 +109,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of notifications pursuant to a specified participant and ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -128,7 +129,7 @@ namespace BreCalClient.misc.Api
/// gets a particular participant entry corresponding to user id
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -147,7 +148,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of ship calls
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// number of days in the past to include in the result. *Example: 7*. (optional)
@@ -166,7 +167,7 @@ namespace BreCalClient.misc.Api
/// Create a new ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -185,7 +186,7 @@ namespace BreCalClient.misc.Api
/// Updates a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -203,7 +204,7 @@ namespace BreCalClient.misc.Api
/// gets a list of registered shipcalls
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -221,7 +222,7 @@ namespace BreCalClient.misc.Api
/// Delete a times entry for a ship call.
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
///
@@ -240,7 +241,7 @@ namespace BreCalClient.misc.Api
/// Get all recorded times for a a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -259,7 +260,7 @@ namespace BreCalClient.misc.Api
/// Create a new times entry for a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -278,7 +279,7 @@ namespace BreCalClient.misc.Api
/// Update a times entry for a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -297,7 +298,7 @@ namespace BreCalClient.misc.Api
/// Update user details (first/last name, phone, password)
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// User details
@@ -316,7 +317,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of all berths registered
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -327,7 +328,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of all berths registered
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -338,7 +339,7 @@ namespace BreCalClient.misc.Api
/// Returns a JWT session token and user data if successful
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Login credentials
@@ -350,7 +351,7 @@ namespace BreCalClient.misc.Api
/// Returns a JWT session token and user data if successful
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Login credentials
@@ -362,7 +363,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of notifications pursuant to a specified participant and ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -375,7 +376,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of notifications pursuant to a specified participant and ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -388,7 +389,7 @@ namespace BreCalClient.misc.Api
/// gets a particular participant entry corresponding to user id
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -400,7 +401,7 @@ namespace BreCalClient.misc.Api
/// gets a particular participant entry corresponding to user id
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -412,7 +413,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of ship calls
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// number of days in the past to include in the result. *Example: 7*. (optional)
@@ -424,7 +425,7 @@ namespace BreCalClient.misc.Api
/// Gets a list of ship calls
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// number of days in the past to include in the result. *Example: 7*. (optional)
@@ -436,7 +437,7 @@ namespace BreCalClient.misc.Api
/// Create a new ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -448,7 +449,7 @@ namespace BreCalClient.misc.Api
/// Create a new ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -460,7 +461,7 @@ namespace BreCalClient.misc.Api
/// Updates a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -472,7 +473,7 @@ namespace BreCalClient.misc.Api
/// Updates a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -484,7 +485,7 @@ namespace BreCalClient.misc.Api
/// gets a list of registered shipcalls
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -495,7 +496,7 @@ namespace BreCalClient.misc.Api
/// gets a list of registered shipcalls
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -506,7 +507,7 @@ namespace BreCalClient.misc.Api
/// Delete a times entry for a ship call.
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
///
@@ -518,7 +519,7 @@ namespace BreCalClient.misc.Api
/// Delete a times entry for a ship call.
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
///
@@ -530,7 +531,7 @@ namespace BreCalClient.misc.Api
/// Get all recorded times for a a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -542,7 +543,7 @@ namespace BreCalClient.misc.Api
/// Get all recorded times for a a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -554,7 +555,7 @@ namespace BreCalClient.misc.Api
/// Create a new times entry for a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -566,7 +567,7 @@ namespace BreCalClient.misc.Api
/// Create a new times entry for a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -578,7 +579,7 @@ namespace BreCalClient.misc.Api
/// Update a times entry for a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -590,7 +591,7 @@ namespace BreCalClient.misc.Api
/// Update a times entry for a ship call
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -602,7 +603,7 @@ namespace BreCalClient.misc.Api
/// Update user details (first/last name, phone, password)
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// User details
@@ -614,7 +615,7 @@ namespace BreCalClient.misc.Api
/// Update user details (first/last name, phone, password)
///
///
- ///
+ ///
///
/// Thrown when fails to make API call
/// User details
@@ -728,7 +729,7 @@ namespace BreCalClient.misc.Api
set { _exceptionFactory = value; }
}
///
- /// Gets a list of all berths registered
+ /// Gets a list of all berths registered
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -739,7 +740,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Gets a list of all berths registered
+ /// Gets a list of all berths registered
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -783,7 +784,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Gets a list of all berths registered
+ /// Gets a list of all berths registered
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -795,7 +796,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Gets a list of all berths registered
+ /// Gets a list of all berths registered
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -840,7 +841,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Returns a JWT session token and user data if successful
+ /// Returns a JWT session token and user data if successful
///
/// Thrown when fails to make API call
/// Login credentials
@@ -852,7 +853,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Returns a JWT session token and user data if successful
+ /// Returns a JWT session token and user data if successful
///
/// Thrown when fails to make API call
/// Login credentials
@@ -904,7 +905,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Returns a JWT session token and user data if successful
+ /// Returns a JWT session token and user data if successful
///
/// Thrown when fails to make API call
/// Login credentials
@@ -917,7 +918,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Returns a JWT session token and user data if successful
+ /// Returns a JWT session token and user data if successful
///
/// Thrown when fails to make API call
/// Login credentials
@@ -970,7 +971,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Gets a list of notifications pursuant to a specified participant and ship call
+ /// Gets a list of notifications pursuant to a specified participant and ship call
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -983,7 +984,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Gets a list of notifications pursuant to a specified participant and ship call
+ /// Gets a list of notifications pursuant to a specified participant and ship call
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -1031,7 +1032,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Gets a list of notifications pursuant to a specified participant and ship call
+ /// Gets a list of notifications pursuant to a specified participant and ship call
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -1045,7 +1046,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Gets a list of notifications pursuant to a specified participant and ship call
+ /// Gets a list of notifications pursuant to a specified participant and ship call
///
/// Thrown when fails to make API call
/// **Id of participant**. *Example: 2*. Id returned through loading of participant
@@ -1094,7 +1095,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// gets a particular participant entry corresponding to user id
+ /// gets a particular participant entry corresponding to user id
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -1106,7 +1107,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// gets a particular participant entry corresponding to user id
+ /// gets a particular participant entry corresponding to user id
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -1155,7 +1156,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// gets a particular participant entry corresponding to user id
+ /// gets a particular participant entry corresponding to user id
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -1168,7 +1169,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// gets a particular participant entry corresponding to user id
+ /// gets a particular participant entry corresponding to user id
///
/// Thrown when fails to make API call
/// **Id of user**. *Example: 2*. User id returned by verify call. (optional)
@@ -1218,7 +1219,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Gets a list of ship calls
+ /// Gets a list of ship calls
///
/// Thrown when fails to make API call
/// number of days in the past to include in the result. *Example: 7*. (optional)
@@ -1230,7 +1231,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Gets a list of ship calls
+ /// Gets a list of ship calls
///
/// Thrown when fails to make API call
/// number of days in the past to include in the result. *Example: 7*. (optional)
@@ -1279,7 +1280,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Gets a list of ship calls
+ /// Gets a list of ship calls
///
/// Thrown when fails to make API call
/// number of days in the past to include in the result. *Example: 7*. (optional)
@@ -1292,7 +1293,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Gets a list of ship calls
+ /// Gets a list of ship calls
///
/// Thrown when fails to make API call
/// number of days in the past to include in the result. *Example: 7*. (optional)
@@ -1342,7 +1343,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Create a new ship call
+ /// Create a new ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -1354,7 +1355,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Create a new ship call
+ /// Create a new ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -1406,7 +1407,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Create a new ship call
+ /// Create a new ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -1419,7 +1420,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Create a new ship call
+ /// Create a new ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. **Do not** provide id parameter.
@@ -1472,7 +1473,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Updates a ship call
+ /// Updates a ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -1484,7 +1485,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Updates a ship call
+ /// Updates a ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -1536,7 +1537,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Updates a ship call
+ /// Updates a ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -1549,7 +1550,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Updates a ship call
+ /// Updates a ship call
///
/// Thrown when fails to make API call
/// Creates a new ship call. The id parameter is **required**.
@@ -1602,7 +1603,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// gets a list of registered shipcalls
+ /// gets a list of registered shipcalls
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -1613,7 +1614,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// gets a list of registered shipcalls
+ /// gets a list of registered shipcalls
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -1657,7 +1658,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// gets a list of registered shipcalls
+ /// gets a list of registered shipcalls
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -1669,7 +1670,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// gets a list of registered shipcalls
+ /// gets a list of registered shipcalls
///
/// Thrown when fails to make API call
/// Index associated with the operation.
@@ -1714,7 +1715,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Delete a times entry for a ship call.
+ /// Delete a times entry for a ship call.
///
/// Thrown when fails to make API call
///
@@ -1725,7 +1726,7 @@ namespace BreCalClient.misc.Api
TimesDeleteWithHttpInfo(id);
}
///
- /// Delete a times entry for a ship call.
+ /// Delete a times entry for a ship call.
///
/// Thrown when fails to make API call
///
@@ -1771,7 +1772,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Delete a times entry for a ship call.
+ /// Delete a times entry for a ship call.
///
/// Thrown when fails to make API call
///
@@ -1783,7 +1784,7 @@ namespace BreCalClient.misc.Api
await TimesDeleteWithHttpInfoAsync(id, operationIndex, cancellationToken).ConfigureAwait(false);
}
///
- /// Delete a times entry for a ship call.
+ /// Delete a times entry for a ship call.
///
/// Thrown when fails to make API call
///
@@ -1830,7 +1831,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Get all recorded times for a a ship call
+ /// Get all recorded times for a a ship call
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -1842,7 +1843,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Get all recorded times for a a ship call
+ /// Get all recorded times for a a ship call
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -1891,7 +1892,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Get all recorded times for a a ship call
+ /// Get all recorded times for a a ship call
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -1904,7 +1905,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Get all recorded times for a a ship call
+ /// Get all recorded times for a a ship call
///
/// Thrown when fails to make API call
/// **Id**. *Example: 42*. Id of referenced ship call. (optional)
@@ -1954,7 +1955,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Create a new times entry for a ship call
+ /// Create a new times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -1966,7 +1967,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Create a new times entry for a ship call
+ /// Create a new times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -2018,7 +2019,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Create a new times entry for a ship call
+ /// Create a new times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -2031,7 +2032,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Create a new times entry for a ship call
+ /// Create a new times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. **Do not** provide id parameter.
@@ -2084,7 +2085,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Update a times entry for a ship call
+ /// Update a times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -2096,7 +2097,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Update a times entry for a ship call
+ /// Update a times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -2148,7 +2149,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Update a times entry for a ship call
+ /// Update a times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -2161,7 +2162,7 @@ namespace BreCalClient.misc.Api
return localVarResponse.Data;
}
///
- /// Update a times entry for a ship call
+ /// Update a times entry for a ship call
///
/// Thrown when fails to make API call
/// Times entry that will be added to the ship call. The id parameter is **required**.
@@ -2214,7 +2215,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Update user details (first/last name, phone, password)
+ /// Update user details (first/last name, phone, password)
///
/// Thrown when fails to make API call
/// User details
@@ -2225,7 +2226,7 @@ namespace BreCalClient.misc.Api
UserPutWithHttpInfo(userDetails);
}
///
- /// Update user details (first/last name, phone, password)
+ /// Update user details (first/last name, phone, password)
///
/// Thrown when fails to make API call
/// User details
@@ -2277,7 +2278,7 @@ namespace BreCalClient.misc.Api
return localVarResponse;
}
///
- /// Update user details (first/last name, phone, password)
+ /// Update user details (first/last name, phone, password)
///
/// Thrown when fails to make API call
/// User details
@@ -2289,7 +2290,7 @@ namespace BreCalClient.misc.Api
await UserPutWithHttpInfoAsync(userDetails, operationIndex, cancellationToken).ConfigureAwait(false);
}
///
- /// Update user details (first/last name, phone, password)
+ /// Update user details (first/last name, phone, password)
///
/// Thrown when fails to make API call
/// User details
@@ -2349,7 +2350,7 @@ namespace BreCalClient.misc.Api
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -2816,7 +2817,8 @@ namespace BreCalClient.misc.Client
MaxTimeout = configuration.Timeout,
Proxy = configuration.Proxy,
UserAgent = configuration.UserAgent,
- UseDefaultCredentials = configuration.UseDefaultCredentials
+ UseDefaultCredentials = configuration.UseDefaultCredentials,
+ RemoteCertificateValidationCallback = configuration.RemoteCertificateValidationCallback
};
using (RestClient client = new RestClient(clientOptions,
configureSerialization: serializerConfig => serializerConfig.UseSerializer(() => new CustomJsonCodec(SerializerSettings, configuration))))
@@ -3084,7 +3086,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -3144,7 +3146,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -3284,7 +3286,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -3502,7 +3504,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -3539,6 +3541,11 @@ namespace BreCalClient.misc.Client
string.Format("Error calling {0}: {1}", methodName, response.RawContent),
response.RawContent, response.Headers);
}
+ if (status == 0)
+ {
+ return new ApiException(status,
+ string.Format("Error calling {0}: {1}", methodName, response.ErrorText), response.ErrorText);
+ }
return null;
};
#endregion Static Members
@@ -3591,7 +3598,7 @@ namespace BreCalClient.misc.Client
{
new Dictionary {
{"url", "https://brecaldevel.bsmd-emswe.eu"},
- {"description", "Test server hosted on vcup"},
+ {"description", "Development server hosted on vcup"},
}
}
};
@@ -3638,7 +3645,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; }
@@ -3956,7 +3963,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: 0.6.0\n";
+ report += " Version of the API: 1.1.0\n";
report += " SDK Package Version: 1.0.0\n";
return report;
}
@@ -4025,7 +4032,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4045,7 +4052,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4102,7 +4109,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4135,7 +4142,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4168,7 +4175,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4259,7 +4266,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4376,7 +4383,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4460,7 +4467,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4719,7 +4726,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4747,7 +4754,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4817,7 +4824,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4844,7 +4851,7 @@ namespace BreCalClient.misc.Client
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4911,7 +4918,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -4934,7 +4941,7 @@ namespace BreCalClient.misc.Model
/// 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)
+ 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)
{
this.Id = id;
this.Name = name;
@@ -4959,17 +4966,17 @@ namespace BreCalClient.misc.Model
/// Gets or Sets OwnerId
///
[DataMember(Name = "owner_id", EmitDefaultValue = true)]
- public int? OwnerId { get; set; }
+ public int OwnerId { get; set; }
///
/// Gets or Sets AuthorityId
///
[DataMember(Name = "authority_id", EmitDefaultValue = true)]
- public int? AuthorityId { get; set; }
+ public int AuthorityId { get; set; }
///
/// Gets or Sets VarLock
///
[DataMember(Name = "lock", EmitDefaultValue = true)]
- public bool? VarLock { get; set; }
+ public bool VarLock { get; set; }
///
/// Gets or Sets Created
///
@@ -4979,7 +4986,7 @@ namespace BreCalClient.misc.Model
/// Gets or Sets Modified
///
[DataMember(Name = "modified", EmitDefaultValue = true)]
- public DateTime? Modified { get; set; }
+ public DateTime Modified { get; set; }
///
/// Gets or Sets Deleted
///
@@ -5032,41 +5039,38 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
- ) &&
+ ) &&
(
this.OwnerId == input.OwnerId ||
- (this.OwnerId != null &&
- this.OwnerId.Equals(input.OwnerId))
- ) &&
+ this.OwnerId.Equals(input.OwnerId)
+ ) &&
(
this.AuthorityId == input.AuthorityId ||
- (this.AuthorityId != null &&
- this.AuthorityId.Equals(input.AuthorityId))
- ) &&
+ this.AuthorityId.Equals(input.AuthorityId)
+ ) &&
(
this.VarLock == input.VarLock ||
- (this.VarLock != null &&
- this.VarLock.Equals(input.VarLock))
- ) &&
+ this.VarLock.Equals(input.VarLock)
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
this.Modified.Equals(input.Modified))
- ) &&
+ ) &&
(
this.Deleted == input.Deleted ||
this.Deleted.Equals(input.Deleted)
@@ -5086,18 +5090,9 @@ namespace BreCalClient.misc.Model
{
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.OwnerId.GetHashCode();
+ hashCode = (hashCode * 59) + this.AuthorityId.GetHashCode();
+ hashCode = (hashCode * 59) + this.VarLock.GetHashCode();
if (this.Created != null)
{
hashCode = (hashCode * 59) + this.Created.GetHashCode();
@@ -5132,7 +5127,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5220,12 +5215,12 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Username == input.Username ||
(this.Username != null &&
this.Username.Equals(input.Username))
- ) &&
+ ) &&
(
this.Password == input.Password ||
(this.Password != null &&
@@ -5269,7 +5264,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5345,7 +5340,7 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Message == input.Message ||
(this.Message != null &&
@@ -5385,7 +5380,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5450,7 +5445,7 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.VarId == input.VarId ||
this.VarId.Equals(input.VarId)
@@ -5486,7 +5481,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5615,44 +5610,44 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.FirstName == input.FirstName ||
(this.FirstName != null &&
this.FirstName.Equals(input.FirstName))
- ) &&
+ ) &&
(
this.LastName == input.LastName ||
(this.LastName != null &&
this.LastName.Equals(input.LastName))
- ) &&
+ ) &&
(
this.UserName == input.UserName ||
(this.UserName != null &&
this.UserName.Equals(input.UserName))
- ) &&
+ ) &&
(
this.UserPhone == input.UserPhone ||
(this.UserPhone != null &&
this.UserPhone.Equals(input.UserPhone))
- ) &&
+ ) &&
(
this.UserEmail == input.UserEmail ||
(this.UserEmail != null &&
this.UserEmail.Equals(input.UserEmail))
- ) &&
+ ) &&
(
this.Exp == input.Exp ||
this.Exp.Equals(input.Exp)
- ) &&
+ ) &&
(
this.Token == input.Token ||
(this.Token != null &&
@@ -5715,7 +5710,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5727,33 +5722,11 @@ namespace BreCalClient.misc.Model
[DataContract(Name = "notification")]
public partial class Notification : IEquatable, IValidatableObject
{
- ///
- /// Defines NotificationType
- ///
- [JsonConverter(typeof(StringEnumConverter))]
- public enum NotificationTypeEnum
- {
- ///
- /// Enum Undefined for value: undefined
- ///
- [EnumMember(Value = "undefined")]
- Undefined = 1,
- ///
- /// Enum Email for value: email
- ///
- [EnumMember(Value = "email")]
- Email = 2,
- ///
- /// Enum Push for value: push
- ///
- [EnumMember(Value = "push")]
- Push = 3
- }
///
/// Gets or Sets NotificationType
///
[DataMember(Name = "notification_type", EmitDefaultValue = true)]
- public NotificationTypeEnum? NotificationType { get; set; }
+ public NotificationType? NotificationType { get; set; }
///
/// Initializes a new instance of the class.
///
@@ -5765,7 +5738,7 @@ namespace BreCalClient.misc.Model
/// acknowledged.
/// created.
/// modified.
- public Notification(int id = default(int), int timesId = default(int), int participantId = default(int), NotificationTypeEnum? notificationType = default(NotificationTypeEnum?), DateTime timestamp = default(DateTime), bool acknowledged = default(bool), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
+ public Notification(int id = default(int), int timesId = default(int), int participantId = default(int), NotificationType? notificationType = default(NotificationType?), DateTime timestamp = default(DateTime), bool acknowledged = default(bool), DateTime created = default(DateTime), DateTime modified = default(DateTime))
{
this.Id = id;
this.TimesId = timesId;
@@ -5810,7 +5783,7 @@ namespace BreCalClient.misc.Model
/// Gets or Sets Modified
///
[DataMember(Name = "modified", EmitDefaultValue = true)]
- public DateTime? Modified { get; set; }
+ public DateTime Modified { get; set; }
///
/// Returns the string presentation of the object
///
@@ -5858,37 +5831,37 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.TimesId == input.TimesId ||
this.TimesId.Equals(input.TimesId)
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.NotificationType == input.NotificationType ||
this.NotificationType.Equals(input.NotificationType)
- ) &&
+ ) &&
(
this.Timestamp == input.Timestamp ||
(this.Timestamp != null &&
this.Timestamp.Equals(input.Timestamp))
- ) &&
+ ) &&
(
this.Acknowledged == input.Acknowledged ||
this.Acknowledged.Equals(input.Acknowledged)
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
@@ -5941,7 +5914,42 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
+ * Contact: info@textbausteine.net
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+namespace BreCalClient.misc.Model
+{
+ ///
+ /// Defines NotificationType
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum NotificationType
+ {
+ ///
+ /// Enum Undefined for value: undefined
+ ///
+ [EnumMember(Value = "undefined")]
+ Undefined = 1,
+ ///
+ /// Enum Email for value: email
+ ///
+ [EnumMember(Value = "email")]
+ Email = 2,
+ ///
+ /// Enum Push for value: push
+ ///
+ [EnumMember(Value = "push")]
+ Push = 3
+ }
+}
+
+/*
+ * Bremen calling API
+ *
+ * Administer DEBRE ship calls, times and notifications
+ *
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -5953,6 +5961,11 @@ namespace BreCalClient.misc.Model
[DataContract(Name = "participant")]
public partial class Participant : IEquatable, IValidatableObject
{
+ ///
+ /// Gets or Sets Type
+ ///
+ [DataMember(Name = "type", EmitDefaultValue = true)]
+ public ParticipantType? Type { get; set; }
///
/// Initializes a new instance of the class.
///
@@ -5966,7 +5979,7 @@ namespace BreCalClient.misc.Model
/// created.
/// modified.
/// 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)
+ public Participant(int id = default(int), string name = default(string), string street = default(string), string postalCode = default(string), string city = default(string), ParticipantType? type = default(ParticipantType?), int flags = default(int), DateTime created = default(DateTime), DateTime modified = default(DateTime), bool deleted = false)
{
this.Id = id;
this.Name = name;
@@ -6005,15 +6018,10 @@ namespace BreCalClient.misc.Model
[DataMember(Name = "city", EmitDefaultValue = true)]
public string City { get; set; }
///
- /// Gets or Sets Type
- ///
- [DataMember(Name = "type", EmitDefaultValue = true)]
- public int Type { get; set; }
- ///
/// Gets or Sets Flags
///
[DataMember(Name = "flags", EmitDefaultValue = true)]
- public int? Flags { get; set; }
+ public int Flags { get; set; }
///
/// Gets or Sets Created
///
@@ -6023,7 +6031,7 @@ namespace BreCalClient.misc.Model
/// Gets or Sets Modified
///
[DataMember(Name = "modified", EmitDefaultValue = true)]
- public DateTime? Modified { get; set; }
+ public DateTime Modified { get; set; }
///
/// Gets or Sets Deleted
///
@@ -6078,50 +6086,49 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
- ) &&
+ ) &&
(
this.Street == input.Street ||
(this.Street != null &&
this.Street.Equals(input.Street))
- ) &&
+ ) &&
(
this.PostalCode == input.PostalCode ||
(this.PostalCode != null &&
this.PostalCode.Equals(input.PostalCode))
- ) &&
+ ) &&
(
this.City == input.City ||
(this.City != null &&
this.City.Equals(input.City))
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
- ) &&
+ ) &&
(
this.Flags == input.Flags ||
- (this.Flags != null &&
- this.Flags.Equals(input.Flags))
- ) &&
+ this.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)
@@ -6154,10 +6161,7 @@ namespace BreCalClient.misc.Model
hashCode = (hashCode * 59) + this.City.GetHashCode();
}
hashCode = (hashCode * 59) + this.Type.GetHashCode();
- if (this.Flags != null)
- {
- hashCode = (hashCode * 59) + this.Flags.GetHashCode();
- }
+ hashCode = (hashCode * 59) + this.Flags.GetHashCode();
if (this.Created != null)
{
hashCode = (hashCode * 59) + this.Created.GetHashCode();
@@ -6207,7 +6211,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6285,11 +6289,11 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -6326,7 +6330,54 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
+ * Contact: info@textbausteine.net
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+namespace BreCalClient.misc.Model
+{
+ ///
+ /// Defines ParticipantType
+ ///
+ public enum ParticipantType
+ {
+ ///
+ /// Enum NUMBER_1 for value: 1
+ ///
+ NUMBER_1 = 1,
+ ///
+ /// Enum NUMBER_2 for value: 2
+ ///
+ NUMBER_2 = 2,
+ ///
+ /// Enum NUMBER_4 for value: 4
+ ///
+ NUMBER_4 = 4,
+ ///
+ /// Enum NUMBER_8 for value: 8
+ ///
+ NUMBER_8 = 8,
+ ///
+ /// Enum NUMBER_16 for value: 16
+ ///
+ NUMBER_16 = 16,
+ ///
+ /// Enum NUMBER_32 for value: 32
+ ///
+ NUMBER_32 = 32,
+ ///
+ /// Enum NUMBER_64 for value: 64
+ ///
+ NUMBER_64 = 64
+ }
+}
+
+/*
+ * Bremen calling API
+ *
+ * Administer DEBRE ship calls, times and notifications
+ *
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6354,7 +6405,7 @@ namespace BreCalClient.misc.Model
/// created.
/// modified.
/// 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?), float? length = default(float?), float? width = default(float?), bool isTug = false, int? bollardPull = default(int?), int? eni = default(int?), DateTime created = default(DateTime), DateTime? modified = default(DateTime?), bool deleted = false)
+ public Ship(int id = default(int), string name = default(string), int imo = default(int), string callsign = default(string), int participantId = default(int), float length = default(float), float width = default(float), 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;
this.Name = name;
@@ -6384,7 +6435,7 @@ namespace BreCalClient.misc.Model
/// Gets or Sets Imo
///
[DataMember(Name = "imo", EmitDefaultValue = true)]
- public int? Imo { get; set; }
+ public int Imo { get; set; }
///
/// Gets or Sets Callsign
///
@@ -6394,17 +6445,17 @@ namespace BreCalClient.misc.Model
/// Gets or Sets ParticipantId
///
[DataMember(Name = "participant_id", EmitDefaultValue = true)]
- public int? ParticipantId { get; set; }
+ public int ParticipantId { get; set; }
///
/// Gets or Sets Length
///
[DataMember(Name = "length", EmitDefaultValue = true)]
- public float? Length { get; set; }
+ public float Length { get; set; }
///
/// Gets or Sets Width
///
[DataMember(Name = "width", EmitDefaultValue = true)]
- public float? Width { get; set; }
+ public float Width { get; set; }
///
/// Gets or Sets IsTug
///
@@ -6414,12 +6465,12 @@ namespace BreCalClient.misc.Model
/// Gets or Sets BollardPull
///
[DataMember(Name = "bollard_pull", EmitDefaultValue = true)]
- public int? BollardPull { get; set; }
+ public int BollardPull { get; set; }
///
/// Gets or Sets Eni
///
[DataMember(Name = "eni", EmitDefaultValue = true)]
- public int? Eni { get; set; }
+ public int Eni { get; set; }
///
/// Gets or Sets Created
///
@@ -6429,7 +6480,7 @@ namespace BreCalClient.misc.Model
/// Gets or Sets Modified
///
[DataMember(Name = "modified", EmitDefaultValue = true)]
- public DateTime? Modified { get; set; }
+ public DateTime Modified { get; set; }
///
/// Gets or Sets Deleted
///
@@ -6487,65 +6538,59 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
- ) &&
+ ) &&
(
this.Imo == input.Imo ||
- (this.Imo != null &&
- this.Imo.Equals(input.Imo))
- ) &&
+ this.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.ParticipantId.Equals(input.ParticipantId)
+ ) &&
(
this.Length == input.Length ||
- (this.Length != null &&
- this.Length.Equals(input.Length))
- ) &&
+ this.Length.Equals(input.Length)
+ ) &&
(
this.Width == input.Width ||
- (this.Width != null &&
- this.Width.Equals(input.Width))
- ) &&
+ 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.BollardPull.Equals(input.BollardPull)
+ ) &&
(
this.Eni == input.Eni ||
- (this.Eni != null &&
- this.Eni.Equals(input.Eni))
- ) &&
+ 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)
@@ -6565,35 +6610,17 @@ namespace BreCalClient.misc.Model
{
hashCode = (hashCode * 59) + this.Name.GetHashCode();
}
- if (this.Imo != null)
- {
- hashCode = (hashCode * 59) + this.Imo.GetHashCode();
- }
+ 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.ParticipantId.GetHashCode();
+ hashCode = (hashCode * 59) + this.Length.GetHashCode();
+ 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();
- }
+ hashCode = (hashCode * 59) + this.BollardPull.GetHashCode();
+ hashCode = (hashCode * 59) + this.Eni.GetHashCode();
if (this.Created != null)
{
hashCode = (hashCode * 59) + this.Created.GetHashCode();
@@ -6633,7 +6660,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -6645,6 +6672,11 @@ namespace BreCalClient.misc.Model
[DataContract(Name = "shipcall")]
public partial class Shipcall : IEquatable, IValidatableObject
{
+ ///
+ /// Gets or Sets Type
+ ///
+ [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
+ public ShipcallType Type { get; set; }
///
/// Initializes a new instance of the class.
///
@@ -6681,7 +6713,7 @@ namespace BreCalClient.misc.Model
/// participants.
/// created.
/// modified.
- public Shipcall(int id = default(int), int shipId = default(int), int type = default(int), DateTime? eta = default(DateTime?), string voyage = default(string), DateTime? etd = default(DateTime?), int? arrivalBerthId = default(int?), int? departureBerthId = default(int?), bool? tugRequired = default(bool?), bool? pilotRequired = default(bool?), int? flags = default(int?), bool? pierSide = default(bool?), bool? bunkering = default(bool?), bool? replenishingTerminal = default(bool?), bool? replenishingLock = default(bool?), float? draft = default(float?), DateTime? tidalWindowFrom = default(DateTime?), DateTime? tidalWindowTo = default(DateTime?), bool? rainSensitiveCargo = default(bool?), int? recommendedTugs = default(int?), bool? anchored = default(bool?), bool? mooredLock = default(bool?), bool? canceled = default(bool?), int? evaluation = default(int?), string evaluationMessage = default(string), List participants = default(List), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
+ 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), float draft = default(float), DateTime tidalWindowFrom = default(DateTime), DateTime tidalWindowTo = default(DateTime), bool rainSensitiveCargo = default(bool), int recommendedTugs = default(int), bool anchored = default(bool), bool mooredLock = default(bool), bool canceled = default(bool), int evaluation = default(int), string evaluationMessage = default(string), List participants = default(List), DateTime created = default(DateTime), DateTime modified = default(DateTime))
{
this.Id = id;
this.ShipId = shipId;
@@ -6724,15 +6756,10 @@ namespace BreCalClient.misc.Model
[DataMember(Name = "ship_id", IsRequired = true, EmitDefaultValue = true)]
public int ShipId { get; set; }
///
- /// Gets or Sets Type
- ///
- [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
- public int Type { get; set; }
- ///
/// Gets or Sets Eta
///
[DataMember(Name = "eta", EmitDefaultValue = true)]
- public DateTime? Eta { get; set; }
+ public DateTime Eta { get; set; }
///
/// Gets or Sets Voyage
///
@@ -6742,97 +6769,97 @@ namespace BreCalClient.misc.Model
/// Gets or Sets Etd
///
[DataMember(Name = "etd", EmitDefaultValue = true)]
- public DateTime? Etd { get; set; }
+ public DateTime Etd { get; set; }
///
/// Gets or Sets ArrivalBerthId
///
[DataMember(Name = "arrival_berth_id", EmitDefaultValue = true)]
- public int? ArrivalBerthId { get; set; }
+ public int ArrivalBerthId { get; set; }
///
/// Gets or Sets DepartureBerthId
///
[DataMember(Name = "departure_berth_id", EmitDefaultValue = true)]
- public int? DepartureBerthId { get; set; }
+ public int DepartureBerthId { get; set; }
///
/// Gets or Sets TugRequired
///
[DataMember(Name = "tug_required", EmitDefaultValue = true)]
- public bool? TugRequired { get; set; }
+ public bool TugRequired { get; set; }
///
/// Gets or Sets PilotRequired
///
[DataMember(Name = "pilot_required", EmitDefaultValue = true)]
- public bool? PilotRequired { get; set; }
+ public bool PilotRequired { get; set; }
///
/// Gets or Sets Flags
///
[DataMember(Name = "flags", EmitDefaultValue = true)]
- public int? Flags { get; set; }
+ public int Flags { get; set; }
///
/// Gets or Sets PierSide
///
[DataMember(Name = "pier_side", EmitDefaultValue = true)]
- public bool? PierSide { get; set; }
+ public bool PierSide { get; set; }
///
/// Gets or Sets Bunkering
///
[DataMember(Name = "bunkering", EmitDefaultValue = true)]
- public bool? Bunkering { get; set; }
+ public bool Bunkering { get; set; }
///
/// Gets or Sets ReplenishingTerminal
///
[DataMember(Name = "replenishing_terminal", EmitDefaultValue = true)]
- public bool? ReplenishingTerminal { get; set; }
+ public bool ReplenishingTerminal { get; set; }
///
/// Gets or Sets ReplenishingLock
///
[DataMember(Name = "replenishing_lock", EmitDefaultValue = true)]
- public bool? ReplenishingLock { get; set; }
+ public bool ReplenishingLock { get; set; }
///
/// Gets or Sets Draft
///
[DataMember(Name = "draft", EmitDefaultValue = true)]
- public float? Draft { get; set; }
+ public float Draft { get; set; }
///
/// Gets or Sets TidalWindowFrom
///
[DataMember(Name = "tidal_window_from", EmitDefaultValue = true)]
- public DateTime? TidalWindowFrom { get; set; }
+ public DateTime TidalWindowFrom { get; set; }
///
/// Gets or Sets TidalWindowTo
///
[DataMember(Name = "tidal_window_to", EmitDefaultValue = true)]
- public DateTime? TidalWindowTo { get; set; }
+ public DateTime TidalWindowTo { get; set; }
///
/// Gets or Sets RainSensitiveCargo
///
[DataMember(Name = "rain_sensitive_cargo", EmitDefaultValue = true)]
- public bool? RainSensitiveCargo { get; set; }
+ public bool RainSensitiveCargo { get; set; }
///
/// Gets or Sets RecommendedTugs
///
[DataMember(Name = "recommended_tugs", EmitDefaultValue = true)]
- public int? RecommendedTugs { get; set; }
+ public int RecommendedTugs { get; set; }
///
/// Gets or Sets Anchored
///
[DataMember(Name = "anchored", EmitDefaultValue = true)]
- public bool? Anchored { get; set; }
+ public bool Anchored { get; set; }
///
/// Gets or Sets MooredLock
///
[DataMember(Name = "moored_lock", EmitDefaultValue = true)]
- public bool? MooredLock { get; set; }
+ public bool MooredLock { get; set; }
///
/// Gets or Sets Canceled
///
[DataMember(Name = "canceled", EmitDefaultValue = true)]
- public bool? Canceled { get; set; }
+ public bool Canceled { get; set; }
///
/// Gets or Sets Evaluation
///
[DataMember(Name = "evaluation", EmitDefaultValue = true)]
- public int? Evaluation { get; set; }
+ public int Evaluation { get; set; }
///
/// Gets or Sets EvaluationMessage
///
@@ -6852,7 +6879,7 @@ namespace BreCalClient.misc.Model
/// Gets or Sets Modified
///
[DataMember(Name = "modified", EmitDefaultValue = true)]
- public DateTime? Modified { get; set; }
+ public DateTime Modified { get; set; }
///
/// Returns the string presentation of the object
///
@@ -6920,140 +6947,124 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.ShipId == input.ShipId ||
this.ShipId.Equals(input.ShipId)
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
- ) &&
+ ) &&
(
this.Eta == input.Eta ||
(this.Eta != null &&
this.Eta.Equals(input.Eta))
- ) &&
+ ) &&
(
this.Voyage == input.Voyage ||
(this.Voyage != null &&
this.Voyage.Equals(input.Voyage))
- ) &&
+ ) &&
(
this.Etd == input.Etd ||
(this.Etd != null &&
this.Etd.Equals(input.Etd))
- ) &&
+ ) &&
(
this.ArrivalBerthId == input.ArrivalBerthId ||
- (this.ArrivalBerthId != null &&
- this.ArrivalBerthId.Equals(input.ArrivalBerthId))
- ) &&
+ this.ArrivalBerthId.Equals(input.ArrivalBerthId)
+ ) &&
(
this.DepartureBerthId == input.DepartureBerthId ||
- (this.DepartureBerthId != null &&
- this.DepartureBerthId.Equals(input.DepartureBerthId))
- ) &&
+ this.DepartureBerthId.Equals(input.DepartureBerthId)
+ ) &&
(
this.TugRequired == input.TugRequired ||
- (this.TugRequired != null &&
- this.TugRequired.Equals(input.TugRequired))
- ) &&
+ this.TugRequired.Equals(input.TugRequired)
+ ) &&
(
this.PilotRequired == input.PilotRequired ||
- (this.PilotRequired != null &&
- this.PilotRequired.Equals(input.PilotRequired))
- ) &&
+ this.PilotRequired.Equals(input.PilotRequired)
+ ) &&
(
this.Flags == input.Flags ||
- (this.Flags != null &&
- this.Flags.Equals(input.Flags))
- ) &&
+ this.Flags.Equals(input.Flags)
+ ) &&
(
this.PierSide == input.PierSide ||
- (this.PierSide != null &&
- this.PierSide.Equals(input.PierSide))
- ) &&
+ this.PierSide.Equals(input.PierSide)
+ ) &&
(
this.Bunkering == input.Bunkering ||
- (this.Bunkering != null &&
- this.Bunkering.Equals(input.Bunkering))
- ) &&
+ this.Bunkering.Equals(input.Bunkering)
+ ) &&
(
this.ReplenishingTerminal == input.ReplenishingTerminal ||
- (this.ReplenishingTerminal != null &&
- this.ReplenishingTerminal.Equals(input.ReplenishingTerminal))
- ) &&
+ this.ReplenishingTerminal.Equals(input.ReplenishingTerminal)
+ ) &&
(
this.ReplenishingLock == input.ReplenishingLock ||
- (this.ReplenishingLock != null &&
- this.ReplenishingLock.Equals(input.ReplenishingLock))
- ) &&
+ this.ReplenishingLock.Equals(input.ReplenishingLock)
+ ) &&
(
this.Draft == input.Draft ||
- (this.Draft != null &&
- this.Draft.Equals(input.Draft))
- ) &&
+ 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.RainSensitiveCargo.Equals(input.RainSensitiveCargo)
+ ) &&
(
this.RecommendedTugs == input.RecommendedTugs ||
- (this.RecommendedTugs != null &&
- this.RecommendedTugs.Equals(input.RecommendedTugs))
- ) &&
+ this.RecommendedTugs.Equals(input.RecommendedTugs)
+ ) &&
(
this.Anchored == input.Anchored ||
- (this.Anchored != null &&
- this.Anchored.Equals(input.Anchored))
- ) &&
+ this.Anchored.Equals(input.Anchored)
+ ) &&
(
this.MooredLock == input.MooredLock ||
- (this.MooredLock != null &&
- this.MooredLock.Equals(input.MooredLock))
- ) &&
+ this.MooredLock.Equals(input.MooredLock)
+ ) &&
(
this.Canceled == input.Canceled ||
- (this.Canceled != null &&
- this.Canceled.Equals(input.Canceled))
- ) &&
+ this.Canceled.Equals(input.Canceled)
+ ) &&
(
this.Evaluation == input.Evaluation ||
- (this.Evaluation != null &&
- this.Evaluation.Equals(input.Evaluation))
- ) &&
+ this.Evaluation.Equals(input.Evaluation)
+ ) &&
(
this.EvaluationMessage == input.EvaluationMessage ||
(this.EvaluationMessage != null &&
this.EvaluationMessage.Equals(input.EvaluationMessage))
- ) &&
+ ) &&
(
this.Participants == input.Participants ||
this.Participants != null &&
input.Participants != null &&
this.Participants.SequenceEqual(input.Participants)
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
@@ -7084,46 +7095,16 @@ namespace BreCalClient.misc.Model
{
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();
- }
+ hashCode = (hashCode * 59) + this.ArrivalBerthId.GetHashCode();
+ hashCode = (hashCode * 59) + this.DepartureBerthId.GetHashCode();
+ hashCode = (hashCode * 59) + this.TugRequired.GetHashCode();
+ hashCode = (hashCode * 59) + this.PilotRequired.GetHashCode();
+ hashCode = (hashCode * 59) + this.Flags.GetHashCode();
+ hashCode = (hashCode * 59) + this.PierSide.GetHashCode();
+ hashCode = (hashCode * 59) + this.Bunkering.GetHashCode();
+ hashCode = (hashCode * 59) + this.ReplenishingTerminal.GetHashCode();
+ hashCode = (hashCode * 59) + this.ReplenishingLock.GetHashCode();
+ hashCode = (hashCode * 59) + this.Draft.GetHashCode();
if (this.TidalWindowFrom != null)
{
hashCode = (hashCode * 59) + this.TidalWindowFrom.GetHashCode();
@@ -7132,30 +7113,12 @@ namespace BreCalClient.misc.Model
{
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();
- }
- if (this.Evaluation != null)
- {
- hashCode = (hashCode * 59) + this.Evaluation.GetHashCode();
- }
+ hashCode = (hashCode * 59) + this.RainSensitiveCargo.GetHashCode();
+ hashCode = (hashCode * 59) + this.RecommendedTugs.GetHashCode();
+ hashCode = (hashCode * 59) + this.Anchored.GetHashCode();
+ hashCode = (hashCode * 59) + this.MooredLock.GetHashCode();
+ hashCode = (hashCode * 59) + this.Canceled.GetHashCode();
+ hashCode = (hashCode * 59) + this.Evaluation.GetHashCode();
if (this.EvaluationMessage != null)
{
hashCode = (hashCode * 59) + this.EvaluationMessage.GetHashCode();
@@ -7197,7 +7160,47 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
+ * Contact: info@textbausteine.net
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+namespace BreCalClient.misc.Model
+{
+ ///
+ /// Defines ShipcallType
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum ShipcallType
+ {
+ ///
+ /// Enum Undefined for value: undefined
+ ///
+ [EnumMember(Value = "undefined")]
+ Undefined = 1,
+ ///
+ /// Enum Arrival for value: arrival
+ ///
+ [EnumMember(Value = "arrival")]
+ Arrival = 2,
+ ///
+ /// Enum Departure for value: departure
+ ///
+ [EnumMember(Value = "departure")]
+ Departure = 3,
+ ///
+ /// Enum Shifting for value: shifting
+ ///
+ [EnumMember(Value = "shifting")]
+ Shifting = 4
+ }
+}
+
+/*
+ * Bremen calling API
+ *
+ * Administer DEBRE ship calls, times and notifications
+ *
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -7209,6 +7212,11 @@ namespace BreCalClient.misc.Model
[DataContract(Name = "times")]
public partial class Times : IEquatable, IValidatableObject
{
+ ///
+ /// Gets or Sets ParticipantType
+ ///
+ [DataMember(Name = "participant_type", EmitDefaultValue = true)]
+ public ParticipantType? ParticipantType { get; set; }
///
/// Initializes a new instance of the class.
///
@@ -7237,7 +7245,7 @@ namespace BreCalClient.misc.Model
/// participantType.
/// created.
/// 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 created = default(DateTime), DateTime? modified = default(DateTime?))
+ 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), ParticipantType? participantType = default(ParticipantType?), DateTime created = default(DateTime), DateTime modified = default(DateTime))
{
this.ShipcallId = shipcallId;
this.ParticipantId = participantId;
@@ -7269,52 +7277,52 @@ namespace BreCalClient.misc.Model
/// Gets or Sets EtaBerth
///
[DataMember(Name = "eta_berth", EmitDefaultValue = true)]
- public DateTime? EtaBerth { get; set; }
+ public DateTime EtaBerth { get; set; }
///
/// Gets or Sets EtaBerthFixed
///
[DataMember(Name = "eta_berth_fixed", EmitDefaultValue = true)]
- public bool? EtaBerthFixed { get; set; }
+ public bool EtaBerthFixed { get; set; }
///
/// Gets or Sets EtdBerth
///
[DataMember(Name = "etd_berth", EmitDefaultValue = true)]
- public DateTime? EtdBerth { get; set; }
+ public DateTime EtdBerth { get; set; }
///
/// Gets or Sets EtdBerthFixed
///
[DataMember(Name = "etd_berth_fixed", EmitDefaultValue = true)]
- public bool? EtdBerthFixed { get; set; }
+ public bool EtdBerthFixed { get; set; }
///
/// Gets or Sets LockTime
///
[DataMember(Name = "lock_time", EmitDefaultValue = true)]
- public DateTime? LockTime { get; set; }
+ public DateTime LockTime { get; set; }
///
/// Gets or Sets LockTimeFixed
///
[DataMember(Name = "lock_time_fixed", EmitDefaultValue = true)]
- public bool? LockTimeFixed { get; set; }
+ public bool LockTimeFixed { get; set; }
///
/// Gets or Sets ZoneEntry
///
[DataMember(Name = "zone_entry", EmitDefaultValue = true)]
- public DateTime? ZoneEntry { get; set; }
+ public DateTime ZoneEntry { get; set; }
///
/// Gets or Sets ZoneEntryFixed
///
[DataMember(Name = "zone_entry_fixed", EmitDefaultValue = true)]
- public bool? ZoneEntryFixed { get; set; }
+ public bool ZoneEntryFixed { get; set; }
///
/// Gets or Sets OperationsStart
///
[DataMember(Name = "operations_start", EmitDefaultValue = true)]
- public DateTime? OperationsStart { get; set; }
+ public DateTime OperationsStart { get; set; }
///
/// Gets or Sets OperationsEnd
///
[DataMember(Name = "operations_end", EmitDefaultValue = true)]
- public DateTime? OperationsEnd { get; set; }
+ public DateTime OperationsEnd { get; set; }
///
/// Gets or Sets Remarks
///
@@ -7334,7 +7342,7 @@ namespace BreCalClient.misc.Model
/// Gets or Sets BerthId
///
[DataMember(Name = "berth_id", EmitDefaultValue = true)]
- public int? BerthId { get; set; }
+ public int BerthId { get; set; }
///
/// Gets or Sets BerthInfo
///
@@ -7344,12 +7352,7 @@ namespace BreCalClient.misc.Model
/// Gets or Sets PierSide
///
[DataMember(Name = "pier_side", EmitDefaultValue = true)]
- public bool? PierSide { get; set; }
- ///
- /// Gets or Sets ParticipantType
- ///
- [DataMember(Name = "participant_type", EmitDefaultValue = true)]
- public int? ParticipantType { get; set; }
+ public bool PierSide { get; set; }
///
/// Gets or Sets Created
///
@@ -7359,7 +7362,7 @@ namespace BreCalClient.misc.Model
/// Gets or Sets Modified
///
[DataMember(Name = "modified", EmitDefaultValue = true)]
- public DateTime? Modified { get; set; }
+ public DateTime Modified { get; set; }
///
/// Returns the string presentation of the object
///
@@ -7419,99 +7422,92 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.EtaBerth == input.EtaBerth ||
(this.EtaBerth != null &&
this.EtaBerth.Equals(input.EtaBerth))
- ) &&
+ ) &&
(
this.EtaBerthFixed == input.EtaBerthFixed ||
- (this.EtaBerthFixed != null &&
- this.EtaBerthFixed.Equals(input.EtaBerthFixed))
- ) &&
+ this.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.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.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.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.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.PierSide.Equals(input.PierSide)
+ ) &&
(
this.ParticipantType == input.ParticipantType ||
- (this.ParticipantType != null &&
- this.ParticipantType.Equals(input.ParticipantType))
- ) &&
+ this.ParticipantType.Equals(input.ParticipantType)
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
@@ -7532,34 +7528,22 @@ namespace BreCalClient.misc.Model
{
hashCode = (hashCode * 59) + this.EtaBerth.GetHashCode();
}
- if (this.EtaBerthFixed != null)
- {
- hashCode = (hashCode * 59) + this.EtaBerthFixed.GetHashCode();
- }
+ 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();
- }
+ 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();
- }
+ 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();
- }
+ hashCode = (hashCode * 59) + this.ZoneEntryFixed.GetHashCode();
if (this.OperationsStart != null)
{
hashCode = (hashCode * 59) + this.OperationsStart.GetHashCode();
@@ -7574,22 +7558,13 @@ namespace BreCalClient.misc.Model
}
hashCode = (hashCode * 59) + this.ShipcallId.GetHashCode();
hashCode = (hashCode * 59) + this.ParticipantId.GetHashCode();
- if (this.BerthId != null)
- {
- hashCode = (hashCode * 59) + this.BerthId.GetHashCode();
- }
+ 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();
- }
- if (this.ParticipantType != null)
- {
- hashCode = (hashCode * 59) + this.ParticipantType.GetHashCode();
- }
+ hashCode = (hashCode * 59) + this.PierSide.GetHashCode();
+ hashCode = (hashCode * 59) + this.ParticipantType.GetHashCode();
if (this.Created != null)
{
hashCode = (hashCode * 59) + this.Created.GetHashCode();
@@ -7623,7 +7598,7 @@ namespace BreCalClient.misc.Model
*
* Administer DEBRE ship calls, times and notifications
*
- * The version of the OpenAPI document: 0.6.0
+ * The version of the OpenAPI document: 1.1.0
* Contact: info@textbausteine.net
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -7736,36 +7711,36 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.OldPassword == input.OldPassword ||
(this.OldPassword != null &&
this.OldPassword.Equals(input.OldPassword))
- ) &&
+ ) &&
(
this.NewPassword == input.NewPassword ||
(this.NewPassword != null &&
this.NewPassword.Equals(input.NewPassword))
- ) &&
+ ) &&
(
this.FirstName == input.FirstName ||
(this.FirstName != null &&
this.FirstName.Equals(input.FirstName))
- ) &&
+ ) &&
(
this.LastName == input.LastName ||
(this.LastName != null &&
this.LastName.Equals(input.LastName))
- ) &&
+ ) &&
(
this.UserPhone == input.UserPhone ||
(this.UserPhone != null &&
this.UserPhone.Equals(input.UserPhone))
- ) &&
+ ) &&
(
this.UserEmail == input.UserEmail ||
(this.UserEmail != null &&
diff --git a/misc/BreCalApi.yaml b/misc/BreCalApi.yaml
index a3ccfc9..e014ffa 100644
--- a/misc/BreCalApi.yaml
+++ b/misc/BreCalApi.yaml
@@ -1,9 +1,9 @@
-openapi: "3.0.0"
+openapi: "3.1.0"
info:
- version: "0.6.0"
+ version: "1.1.0"
title: "Bremen calling API"
description: Administer DEBRE ship calls, times and notifications
- termsOfService: "https://www.bsmd.de/" # url to terms page
+ termsOfService: "https://www.bsmd.de/" # TBD: url to terms page
contact:
name: "Bremen calling API"
url: "https://www.textbausteine.net"
@@ -13,8 +13,8 @@ info:
url: "https://www.bsmd.de/license"
servers:
- - url: "https://brecaltest.bsmd-emswe.eu/"
- description: "Test server hosted on vcup"
+ - url: "https://brecaldevel.bsmd-emswe.eu/"
+ description: "Development server hosted on vcup"
paths:
/login:
@@ -353,8 +353,7 @@ components:
ship_id:
type: integer
type:
- type: integer
- # TODO: use an enum
+ type: ShipcallType
eta:
type: string
format: date-time
@@ -507,8 +506,7 @@ components:
type: boolean
nullable: true
participant_type:
- type: integer
- nullable: true
+ type: ParticipantType
created:
type: string
format: date-time
@@ -619,8 +617,7 @@ components:
participant_id:
type: integer
notification_type:
- type: string
- enum: [undefined, email, push]
+ $ref: "#/components/schemas/NotificationType"
timestamp:
type: string
format: date-time
@@ -658,7 +655,7 @@ components:
type: string
maxLength: 64
type:
- type: integer
+ type: ParticipantType
flags:
type: integer
nullable: true
@@ -741,6 +738,65 @@ components:
description: A human readable error message
type: string
+ ShipcallType:
+ type: string
+ enum: [undefined, arrival, departure, shifting]
+
+ NotificationType:
+ type: string
+ enum: [undefined, email, push]
+
+ ParticipantType:
+ type: integer
+ enum:
+ - 1
+ - 2
+ - 4
+ - 8
+ - 16
+ - 32
+ - 64
+ x-enumDescriptions:
+ 1: bsmd
+ 2: terminal
+ 4: pilot
+ 8: agency
+ 16: mooring
+ 32: port_authority
+ 64: tug
+
+ # this here works only with OpenAPI 3.1
+ # ParticipantType:
+ # type: integer
+ # oneOf:
+ # - const: 1
+ # title: bsmd
+ # description: Bremen Schiffsmeldedienst
+
+ # - const: 2
+ # title: terminal
+ # description: Terminal
+
+ # - const: 4
+ # title: pilot
+ # description: Pilot
+
+ # - const: 8
+ # title: agency
+ # description: Agency
+
+ # - const: 16
+ # title: mooring
+ # description: Mooring
+
+ # - const: 32
+ # title: port_authority
+ # description: Port Authority
+
+ # - const: 64
+ # title: tug
+ # description: Tug
+
securitySchemes:
ApiKey:
type: apiKey
@@ -760,7 +816,7 @@ components:
schema:
$ref: "#/components/schemas/Id"
400:
- description: Invalid input
+ description: Bad request
content:
application/json:
schema:
@@ -771,6 +827,18 @@ components:
application/json:
schema:
$ref: "#/components/schemas/Error"
+ 403:
+ description: Forbidden
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/Error"
+ 404:
+ description: Not found
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/Error"
500:
description: Unexpected error
content:
@@ -778,7 +846,7 @@ components:
schema:
$ref: "#/components/schemas/Error"
503:
- description: Not available
+ description: Service unavailable
content:
application/json:
schema:
diff --git a/src/BreCalClient/BreCalClient.csproj b/src/BreCalClient/BreCalClient.csproj
index 3d05079..5e67f3a 100644
--- a/src/BreCalClient/BreCalClient.csproj
+++ b/src/BreCalClient/BreCalClient.csproj
@@ -106,7 +106,7 @@
-
+
diff --git a/src/BreCalClient/EditShipcallControl.xaml.cs b/src/BreCalClient/EditShipcallControl.xaml.cs
index 9032c1a..5c1043e 100644
--- a/src/BreCalClient/EditShipcallControl.xaml.cs
+++ b/src/BreCalClient/EditShipcallControl.xaml.cs
@@ -40,7 +40,7 @@ namespace BreCalClient
this.comboBoxAgency.ItemsSource = BreCalLists.Participants_Agent;
this.comboBoxShip.ItemsSource = BreCalLists.Ships;
- this.comboBoxCategories.ItemsSource = Enum.GetValues(typeof(TypeEnum));
+ this.comboBoxCategories.ItemsSource = Enum.GetValues(typeof(ShipcallType));
this.comboBoxArrivalBerth.ItemsSource = BreCalLists.Berths;
this.comboBoxDepartureBerth.ItemsSource = BreCalLists.Berths;
@@ -91,12 +91,12 @@ namespace BreCalClient
private void comboBoxCategories_SelectionChanged(object? sender, SelectionChangedEventArgs? e)
{
- TypeEnum? type = this.comboBoxCategories.SelectedItem as TypeEnum?;
+ ShipcallType? type = this.comboBoxCategories.SelectedItem as ShipcallType?;
if (type != null)
{
switch (type)
{
- case TypeEnum.Incoming:
+ case ShipcallType.Arrival:
this.datePickerETA.IsEnabled = true;
this.datePickerETD.IsEnabled = false;
this.datePickerETD.Value = null;
@@ -104,7 +104,7 @@ namespace BreCalClient
this.comboBoxDepartureBerth.IsEnabled = false;
this.comboBoxArrivalBerth.IsEnabled = true;
break;
- case TypeEnum.Outgoing:
+ case ShipcallType.Departure:
this.datePickerETA.IsEnabled = false;
this.datePickerETD.IsEnabled = true;
this.datePickerETA.Value = null;
@@ -112,7 +112,7 @@ namespace BreCalClient
this.comboBoxArrivalBerth.IsEnabled = false;
this.comboBoxDepartureBerth.IsEnabled = true;
break;
- case TypeEnum.Shifting:
+ case ShipcallType.Shifting:
this.datePickerETA.IsEnabled = true;
this.datePickerETD.IsEnabled = true;
this.comboBoxArrivalBerth.IsEnabled = true;
@@ -150,18 +150,18 @@ namespace BreCalClient
}
else
{
- TypeEnum callType = (TypeEnum)comboBoxCategories.SelectedItem;
+ ShipcallType callType = (ShipcallType)comboBoxCategories.SelectedItem;
switch (callType)
{
- case TypeEnum.Outgoing:
+ case ShipcallType.Departure:
isEnabled &= this.comboBoxDepartureBerth.SelectedItem != null;
isEnabled &= this.datePickerETD.Value.HasValue;
break;
- case TypeEnum.Incoming:
+ case ShipcallType.Arrival:
isEnabled &= this.comboBoxArrivalBerth.SelectedItem != null;
isEnabled &= this.datePickerETA.Value.HasValue;
break;
- case TypeEnum.Shifting:
+ case ShipcallType.Shifting:
isEnabled &= ((this.comboBoxDepartureBerth.SelectedItem != null) && (this.comboBoxArrivalBerth.SelectedItem != null));
isEnabled &= this.datePickerETD.Value.HasValue;
isEnabled &= this.datePickerETA.Value.HasValue;
@@ -178,7 +178,7 @@ namespace BreCalClient
{
if (this.ShipcallModel.Shipcall != null)
{
- this.ShipcallModel.Shipcall.Type = (int)this.comboBoxCategories.SelectedItem;
+ this.ShipcallModel.Shipcall.Type = (ShipcallType) this.comboBoxCategories.SelectedItem;
this.ShipcallModel.Shipcall.Eta = this.datePickerETA.Value;
this.ShipcallModel.Shipcall.Etd = this.datePickerETD.Value;
@@ -186,7 +186,7 @@ namespace BreCalClient
this.ShipcallModel.Ship = ((ShipModel)this.comboBoxShip.SelectedItem).Ship;
this.ShipcallModel.Shipcall.Canceled = this.checkBoxCancelled.IsChecked;
- if (this.ShipcallModel.Shipcall.Type != 3) // incoming, outgoing
+ if (this.ShipcallModel.Shipcall.Type != ShipcallType.Shifting) // incoming, outgoing
{
this.ShipcallModel.Shipcall.ArrivalBerthId = (this.comboBoxArrivalBerth.SelectedItem != null) ? ((Berth)this.comboBoxArrivalBerth.SelectedItem).Id : null;
this.ShipcallModel.Shipcall.DepartureBerthId = (this.comboBoxDepartureBerth.SelectedItem != null) ? ((Berth)this.comboBoxDepartureBerth.SelectedItem).Id : null;
@@ -204,6 +204,7 @@ namespace BreCalClient
ParticipantAssignment pa = new()
{
ParticipantId = participant.Id,
+
Type = (int)Extensions.ParticipantType.AGENCY
};
this.ShipcallModel.AssignedParticipants[Extensions.ParticipantType.AGENCY] = pa;
diff --git a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs
index c602978..fd948de 100644
--- a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs
+++ b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs
@@ -31,7 +31,7 @@ namespace BreCalClient
public Times Times { get; set; } = new();
- public Extensions.TypeEnum CallType { get; set; }
+ public ShipcallType CallType { get; set; }
#endregion
diff --git a/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml.cs b/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml.cs
index 47301f7..b0084ef 100644
--- a/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml.cs
+++ b/src/BreCalClient/EditTimesAgencyOutgoingControl.xaml.cs
@@ -30,7 +30,7 @@ namespace BreCalClient
public Times Times { get; set; } = new();
- public Extensions.TypeEnum CallType { get; set; }
+ public ShipcallType CallType { get; set; }
#endregion
diff --git a/src/BreCalClient/EditTimesAgencyShiftingControl.xaml.cs b/src/BreCalClient/EditTimesAgencyShiftingControl.xaml.cs
index 8c0cfcc..dfd52d5 100644
--- a/src/BreCalClient/EditTimesAgencyShiftingControl.xaml.cs
+++ b/src/BreCalClient/EditTimesAgencyShiftingControl.xaml.cs
@@ -30,7 +30,7 @@ namespace BreCalClient
public Times Times { get; set; } = new();
- public Extensions.TypeEnum CallType { get; set; }
+ public ShipcallType CallType { get; set; }
#endregion
diff --git a/src/BreCalClient/EditTimesControl.xaml.cs b/src/BreCalClient/EditTimesControl.xaml.cs
index 7746904..3a8163c 100644
--- a/src/BreCalClient/EditTimesControl.xaml.cs
+++ b/src/BreCalClient/EditTimesControl.xaml.cs
@@ -27,7 +27,7 @@ namespace BreCalClient
public Times Times { get; set; } = new();
- public Extensions.TypeEnum CallType { get; set; }
+ public ShipcallType CallType { get; set; }
#endregion
diff --git a/src/BreCalClient/EditTimesTerminalControl.xaml.cs b/src/BreCalClient/EditTimesTerminalControl.xaml.cs
index eaed03c..5092a39 100644
--- a/src/BreCalClient/EditTimesTerminalControl.xaml.cs
+++ b/src/BreCalClient/EditTimesTerminalControl.xaml.cs
@@ -21,7 +21,7 @@ namespace BreCalClient
public Times Times { get; set; } = new();
- public Extensions.TypeEnum CallType { get; set; }
+ public ShipcallType CallType { get; set; }
#endregion
diff --git a/src/BreCalClient/Extensions.cs b/src/BreCalClient/Extensions.cs
index 2d15fc9..23611f1 100644
--- a/src/BreCalClient/Extensions.cs
+++ b/src/BreCalClient/Extensions.cs
@@ -13,30 +13,6 @@ namespace BreCalClient
#region Enum
- ///
- /// Copied from models clunky I know
- ///
- [Flags]
- public enum ParticipantType
- {
- [Description("not assigned")]
- NONE = 0,
- [Description("BSMD")]
- BSMD = 1,
- [Description("Terminal")]
- TERMINAL = 2,
- [Description("Lotsen")]
- PILOT = 4,
- [Description("Agentur")]
- AGENCY = 8,
- [Description("Festmacher")]
- MOORING = 16,
- [Description("Hafenamt")]
- PORT_ADMINISTRATION = 32,
- [Description("Schlepper")]
- TUG = 64,
- }
-
///
/// Custom participant flags
///
@@ -47,16 +23,6 @@ namespace BreCalClient
ALLOW_BSMD = 1,
}
- ///
- /// Should actually be defined in yaml
- ///
- public enum TypeEnum
- {
- Incoming = 1,
- Outgoing = 2,
- Shifting = 3
- }
-
public enum SortOrder
{
SHIP_NAME,
diff --git a/src/BreCalClient/IEditTimesControl.cs b/src/BreCalClient/IEditTimesControl.cs
index 8be49ff..00f97b0 100644
--- a/src/BreCalClient/IEditTimesControl.cs
+++ b/src/BreCalClient/IEditTimesControl.cs
@@ -13,7 +13,7 @@ namespace BreCalClient
string Title { get; set; }
- Extensions.TypeEnum CallType { get; set; }
+ ShipcallType CallType { get; set; }
bool? ShowDialog();
diff --git a/src/BreCalClient/MainWindow.xaml.cs b/src/BreCalClient/MainWindow.xaml.cs
index 4d13c6b..8776e46 100644
--- a/src/BreCalClient/MainWindow.xaml.cs
+++ b/src/BreCalClient/MainWindow.xaml.cs
@@ -662,7 +662,7 @@ namespace BreCalClient
}
}
- private async void Sc_EditTimesRequested(ShipcallControl obj, Times? times, Extensions.ParticipantType participantType)
+ private async void Sc_EditTimesRequested(ShipcallControl obj, Times? times, ParticipantType participantType)
{
if( obj.ShipcallControlModel == null) { return; }
@@ -673,7 +673,7 @@ namespace BreCalClient
etc.Title = obj.ShipcallControlModel.Title;
if(obj.ShipcallControlModel.Shipcall != null)
- etc.CallType = (TypeEnum) obj.ShipcallControlModel.Shipcall.Type;
+ etc.CallType = (ShipcallType) obj.ShipcallControlModel.Shipcall.Type;
bool wasEdit = false;
if (times != null)
diff --git a/src/BreCalClient/ShipcallControl.xaml.cs b/src/BreCalClient/ShipcallControl.xaml.cs
index 6ce8681..5fdc40b 100644
--- a/src/BreCalClient/ShipcallControl.xaml.cs
+++ b/src/BreCalClient/ShipcallControl.xaml.cs
@@ -44,7 +44,7 @@ namespace BreCalClient
public event Action? EditAgencyRequested;
- internal event Action? EditTimesRequested;
+ internal event Action? EditTimesRequested;
#endregion
diff --git a/src/BreCalClient/ShipcallControlModel.cs b/src/BreCalClient/ShipcallControlModel.cs
index 18d89f7..bc6df14 100644
--- a/src/BreCalClient/ShipcallControlModel.cs
+++ b/src/BreCalClient/ShipcallControlModel.cs
@@ -1,6 +1,6 @@
// Copyright (c) 2023 schick Informatik
// Description: Container model for shipcall related info
-//
+//
using BreCalClient.misc.Api;
using BreCalClient.misc.Model;
@@ -44,11 +44,11 @@ namespace BreCalClient
public Shipcall? Shipcall { get; set; }
- public Ship? Ship { get; set; }
+ public Ship? Ship { get; set; }
public string? Berth { get; set; }
- internal Dictionary AssignedParticipants { get; } = new();
+ internal Dictionary AssignedParticipants { get; } = new();
public List Times { get; set; } = new();
@@ -56,7 +56,7 @@ namespace BreCalClient
{
get
{
- Times? agencyTimes = this.GetTimesForParticipantType(Extensions.ParticipantType.AGENCY);
+ Times? agencyTimes = this.GetTimesForParticipantType(ParticipantType.AGENCY);
if((agencyTimes != null) && (agencyTimes.EtaBerth != null))
return agencyTimes.EtaBerth;
return Shipcall?.Eta;
@@ -88,7 +88,7 @@ namespace BreCalClient
}
}
return tlm;
- }
+ }
}
public string Title
@@ -112,12 +112,12 @@ namespace BreCalClient
{
foreach (ParticipantAssignment participantAssignment in Shipcall.Participants)
{
- AssignedParticipants[(Extensions.ParticipantType)participantAssignment.Type] = participantAssignment;
+ AssignedParticipants[(ParticipantType)participantAssignment.Type] = participantAssignment;
}
}
}
- internal Times? GetTimesForParticipantType(Extensions.ParticipantType type)
+ internal Times? GetTimesForParticipantType(ParticipantType type)
{
if (AssignedParticipants.ContainsKey(type)) {
@@ -127,14 +127,14 @@ namespace BreCalClient
if ((times.ParticipantId == participantId) && (times.ParticipantType == (int) type))
return times;
}
- if(type == Extensions.ParticipantType.AGENCY)
+ if(type == ParticipantType.AGENCY)
{
// if I am BSMD and no agency entry was found this means we are editing the agency entry
- if(App.Participant.Type == (int) Extensions.ParticipantType.BSMD)
+ if(App.Participant.Type == (int) ParticipantType.BSMD)
{
foreach(Times times in this.Times)
{
- if ((times.ParticipantId == App.Participant.Id) && (times.ParticipantType == (int) Extensions.ParticipantType.AGENCY))
+ if ((times.ParticipantId == App.Participant.Id) && (times.ParticipantType == (int) ParticipantType.AGENCY))
return times;
}
}
@@ -160,15 +160,15 @@ namespace BreCalClient
public string? GetBerthText(Times times)
{
string? berthText = null;
- if ((BreCalLists.AllBerths != null) && times.BerthId.HasValue && (this.Shipcall?.Type != (int)Extensions.TypeEnum.Shifting))
+ if ((BreCalLists.Berths != null) && times.BerthId.HasValue && (this.Shipcall?.Type != ShipcallType.Shifting))
{
Berth? berth = BreCalLists.AllBerths.Find((x) => x.Id == times.BerthId);
berthText = berth?.Name;
}
- if ((berthText == null) && (times.ParticipantType != (int)Extensions.ParticipantType.TERMINAL))
+ if ((berthText == null) && (times.ParticipantType != ParticipantType.TERMINAL))
{
- if (this.Shipcall?.Type == (int)Extensions.TypeEnum.Incoming)
+ if (this.Shipcall?.Type == ShipcallType.Arrival)
{
Berth? berth = BreCalLists.AllBerths?.Find((x) => x.Id == this.Shipcall?.ArrivalBerthId);
berthText = berth?.Name;
@@ -191,7 +191,7 @@ namespace BreCalClient
/// API reference to PUT eidted times
internal async void UpdateTimesAssignments(DefaultApi _api)
{
- foreach (Extensions.ParticipantType participantType in this.AssignedParticipants.Keys)
+ foreach (ParticipantType participantType in this.AssignedParticipants.Keys)
{
Times? times = this.GetTimesForParticipantType(participantType);
if(times == null) continue;
@@ -236,11 +236,11 @@ namespace BreCalClient
internal Participant? GetParticipantForType(Extensions.ParticipantType participantType)
{
- if(AssignedParticipants.ContainsKey(participantType) && BreCalLists.ParticipantLookupDict.ContainsKey(AssignedParticipants[participantType].ParticipantId))
+ if(AssignedParticipants.ContainsKey(participantType) && BreCalLists.ParticipantLookupDict.ContainsKey(AssignedParticipants[participantType].ParticipantId))
return BreCalLists.ParticipantLookupDict[AssignedParticipants[participantType].ParticipantId];
-
+
return null;
- }
+ }
private bool IsFlagSet(StatusFlags flag)
{
@@ -248,7 +248,7 @@ namespace BreCalClient
return (this.Shipcall.Flags & (int) flag) != 0;
}
- #endregion
+ #endregion
}
}