diff --git a/misc/BreCalApi.cs b/misc/BreCalApi.cs
index cc51180..9d74f61 100644
--- a/misc/BreCalApi.cs
+++ b/misc/BreCalApi.cs
@@ -1,7 +1,7 @@
//----------------------
//
-// Generated REST API Client Code Generator v1.9.8.0 on 31.03.2024 21:55:59
+// Generated REST API Client Code Generator v1.9.8.0 on 28.03.2024 17:58:20
// Using the tool OpenAPI Generator v7.4.0
//
//----------------------
@@ -1544,9 +1544,10 @@ namespace BreCalClient.misc.Api
/// This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
+ /// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
/// List<History>
- List HistoryGet(int operationIndex = 0);
+ List HistoryGet(int shipcallId, int operationIndex = 0);
///
/// History data
///
@@ -1554,9 +1555,10 @@ namespace BreCalClient.misc.Api
/// This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
+ /// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
/// ApiResponse of List<History>
- ApiResponse> HistoryGetWithHttpInfo(int operationIndex = 0);
+ ApiResponse> HistoryGetWithHttpInfo(int shipcallId, int operationIndex = 0);
///
/// Gets a list of notifications pursuant to a specified participant and ship call
///
@@ -1638,10 +1640,11 @@ namespace BreCalClient.misc.Api
/// This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
+ /// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<History>
- System.Threading.Tasks.Task> HistoryGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task> HistoryGetAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// History data
///
@@ -1649,10 +1652,11 @@ namespace BreCalClient.misc.Api
/// This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
+ /// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<History>)
- System.Threading.Tasks.Task>> HistoryGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
+ System.Threading.Tasks.Task>> HistoryGetWithHttpInfoAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
///
/// Gets a list of notifications pursuant to a specified participant and ship call
///
@@ -1922,20 +1926,22 @@ namespace BreCalClient.misc.Api
/// History data This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
+ /// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
/// List<History>
- public List HistoryGet(int operationIndex = 0)
+ public List HistoryGet(int shipcallId, int operationIndex = 0)
{
- BreCalClient.misc.Client.ApiResponse> localVarResponse = HistoryGetWithHttpInfo();
+ BreCalClient.misc.Client.ApiResponse> localVarResponse = HistoryGetWithHttpInfo(shipcallId);
return localVarResponse.Data;
}
///
/// History data This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
+ /// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
/// ApiResponse of List<History>
- public BreCalClient.misc.Client.ApiResponse> HistoryGetWithHttpInfo(int operationIndex = 0)
+ public BreCalClient.misc.Client.ApiResponse> HistoryGetWithHttpInfo(int shipcallId, int operationIndex = 0)
{
BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
string[] _contentTypes = new string[] {
@@ -1954,6 +1960,7 @@ namespace BreCalClient.misc.Api
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
+ localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "shipcall_id", shipcallId));
localVarRequestOptions.Operation = "StaticApi.HistoryGet";
localVarRequestOptions.OperationIndex = operationIndex;
// authentication (ApiKey) required
@@ -1977,22 +1984,24 @@ namespace BreCalClient.misc.Api
/// History data This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
+ /// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of List<History>
- public async System.Threading.Tasks.Task> HistoryGetAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task> HistoryGetAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
- BreCalClient.misc.Client.ApiResponse> localVarResponse = await HistoryGetWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
+ BreCalClient.misc.Client.ApiResponse> localVarResponse = await HistoryGetWithHttpInfoAsync(shipcallId, operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
///
/// History data This endpoint returns a list of changes made to the specific shipcall
///
/// Thrown when fails to make API call
+ /// **Id of ship call**. *Example: 52*. Id given in ship call list
/// Index associated with the operation.
/// Cancellation Token to cancel the request.
/// Task of ApiResponse (List<History>)
- public async System.Threading.Tasks.Task>> HistoryGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
+ public async System.Threading.Tasks.Task>> HistoryGetWithHttpInfoAsync(int shipcallId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
BreCalClient.misc.Client.RequestOptions localVarRequestOptions = new BreCalClient.misc.Client.RequestOptions();
string[] _contentTypes = new string[] {
@@ -2011,6 +2020,7 @@ namespace BreCalClient.misc.Api
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
+ localVarRequestOptions.QueryParameters.Add(BreCalClient.misc.Client.ClientUtils.ParameterToMultiMap("", "shipcall_id", shipcallId));
localVarRequestOptions.Operation = "StaticApi.HistoryGet";
localVarRequestOptions.OperationIndex = operationIndex;
// authentication (ApiKey) required
@@ -4879,7 +4889,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; }
@@ -6276,41 +6286,41 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
- ) &&
+ ) &&
(
this.OwnerId == input.OwnerId ||
(this.OwnerId != null &&
this.OwnerId.Equals(input.OwnerId))
- ) &&
+ ) &&
(
this.AuthorityId == input.AuthorityId ||
(this.AuthorityId != null &&
this.AuthorityId.Equals(input.AuthorityId))
- ) &&
+ ) &&
(
this.VarLock == input.VarLock ||
(this.VarLock != null &&
this.VarLock.Equals(input.VarLock))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
this.Modified.Equals(input.Modified))
- ) &&
+ ) &&
(
this.Deleted == input.Deleted ||
this.Deleted.Equals(input.Deleted)
@@ -6464,12 +6474,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 &&
@@ -6589,7 +6599,7 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Message == input.Message ||
(this.Message != null &&
@@ -6782,33 +6792,33 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.ShipcallId == input.ShipcallId ||
this.ShipcallId.Equals(input.ShipcallId)
- ) &&
+ ) &&
(
this.Timestamp == input.Timestamp ||
(this.Timestamp != null &&
this.Timestamp.Equals(input.Timestamp))
- ) &&
+ ) &&
(
this.Eta == input.Eta ||
(this.Eta != null &&
this.Eta.Equals(input.Eta))
- ) &&
+ ) &&
(
this.Operation == input.Operation ||
this.Operation.Equals(input.Operation)
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
@@ -6921,7 +6931,7 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.VarId == input.VarId ||
this.VarId.Equals(input.VarId)
@@ -7086,44 +7096,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 &&
@@ -7293,29 +7303,29 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.ShipcallId == input.ShipcallId ||
this.ShipcallId.Equals(input.ShipcallId)
- ) &&
+ ) &&
(
this.NotificationType == input.NotificationType ||
this.NotificationType.Equals(input.NotificationType)
- ) &&
+ ) &&
(
this.Message == input.Message ||
(this.Message != null &&
this.Message.Equals(input.Message))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
@@ -7611,50 +7621,50 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
- ) &&
+ ) &&
(
this.Street == input.Street ||
(this.Street != null &&
this.Street.Equals(input.Street))
- ) &&
+ ) &&
(
this.PostalCode == input.PostalCode ||
(this.PostalCode != null &&
this.PostalCode.Equals(input.PostalCode))
- ) &&
+ ) &&
(
this.City == input.City ||
(this.City != null &&
this.City.Equals(input.City))
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
- ) &&
+ ) &&
(
this.Flags == input.Flags ||
(this.Flags != null &&
this.Flags.Equals(input.Flags))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
this.Modified.Equals(input.Modified))
- ) &&
+ ) &&
(
this.Deleted == input.Deleted ||
this.Deleted.Equals(input.Deleted)
@@ -7819,11 +7829,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)
@@ -8023,65 +8033,65 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
- ) &&
+ ) &&
(
this.Imo == input.Imo ||
(this.Imo != null &&
this.Imo.Equals(input.Imo))
- ) &&
+ ) &&
(
this.Callsign == input.Callsign ||
(this.Callsign != null &&
this.Callsign.Equals(input.Callsign))
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
(this.ParticipantId != null &&
this.ParticipantId.Equals(input.ParticipantId))
- ) &&
+ ) &&
(
this.Length == input.Length ||
(this.Length != null &&
this.Length.Equals(input.Length))
- ) &&
+ ) &&
(
this.Width == input.Width ||
(this.Width != null &&
this.Width.Equals(input.Width))
- ) &&
+ ) &&
(
this.IsTug == input.IsTug ||
this.IsTug.Equals(input.IsTug)
- ) &&
+ ) &&
(
this.BollardPull == input.BollardPull ||
(this.BollardPull != null &&
this.BollardPull.Equals(input.BollardPull))
- ) &&
+ ) &&
(
this.Eni == input.Eni ||
(this.Eni != null &&
this.Eni.Equals(input.Eni))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
this.Modified.Equals(input.Modified))
- ) &&
+ ) &&
(
this.Deleted == input.Deleted ||
this.Deleted.Equals(input.Deleted)
@@ -8467,144 +8477,144 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.ShipId == input.ShipId ||
this.ShipId.Equals(input.ShipId)
- ) &&
+ ) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
- ) &&
+ ) &&
(
this.Eta == input.Eta ||
(this.Eta != null &&
this.Eta.Equals(input.Eta))
- ) &&
+ ) &&
(
this.Voyage == input.Voyage ||
(this.Voyage != null &&
this.Voyage.Equals(input.Voyage))
- ) &&
+ ) &&
(
this.Etd == input.Etd ||
(this.Etd != null &&
this.Etd.Equals(input.Etd))
- ) &&
+ ) &&
(
this.ArrivalBerthId == input.ArrivalBerthId ||
(this.ArrivalBerthId != null &&
this.ArrivalBerthId.Equals(input.ArrivalBerthId))
- ) &&
+ ) &&
(
this.DepartureBerthId == input.DepartureBerthId ||
(this.DepartureBerthId != null &&
this.DepartureBerthId.Equals(input.DepartureBerthId))
- ) &&
+ ) &&
(
this.TugRequired == input.TugRequired ||
(this.TugRequired != null &&
this.TugRequired.Equals(input.TugRequired))
- ) &&
+ ) &&
(
this.PilotRequired == input.PilotRequired ||
(this.PilotRequired != null &&
this.PilotRequired.Equals(input.PilotRequired))
- ) &&
+ ) &&
(
this.Flags == input.Flags ||
(this.Flags != null &&
this.Flags.Equals(input.Flags))
- ) &&
+ ) &&
(
this.PierSide == input.PierSide ||
(this.PierSide != null &&
this.PierSide.Equals(input.PierSide))
- ) &&
+ ) &&
(
this.Bunkering == input.Bunkering ||
(this.Bunkering != null &&
this.Bunkering.Equals(input.Bunkering))
- ) &&
+ ) &&
(
this.ReplenishingTerminal == input.ReplenishingTerminal ||
(this.ReplenishingTerminal != null &&
this.ReplenishingTerminal.Equals(input.ReplenishingTerminal))
- ) &&
+ ) &&
(
this.ReplenishingLock == input.ReplenishingLock ||
(this.ReplenishingLock != null &&
this.ReplenishingLock.Equals(input.ReplenishingLock))
- ) &&
+ ) &&
(
this.Draft == input.Draft ||
(this.Draft != null &&
this.Draft.Equals(input.Draft))
- ) &&
+ ) &&
(
this.TidalWindowFrom == input.TidalWindowFrom ||
(this.TidalWindowFrom != null &&
this.TidalWindowFrom.Equals(input.TidalWindowFrom))
- ) &&
+ ) &&
(
this.TidalWindowTo == input.TidalWindowTo ||
(this.TidalWindowTo != null &&
this.TidalWindowTo.Equals(input.TidalWindowTo))
- ) &&
+ ) &&
(
this.RainSensitiveCargo == input.RainSensitiveCargo ||
(this.RainSensitiveCargo != null &&
this.RainSensitiveCargo.Equals(input.RainSensitiveCargo))
- ) &&
+ ) &&
(
this.RecommendedTugs == input.RecommendedTugs ||
(this.RecommendedTugs != null &&
this.RecommendedTugs.Equals(input.RecommendedTugs))
- ) &&
+ ) &&
(
this.Anchored == input.Anchored ||
(this.Anchored != null &&
this.Anchored.Equals(input.Anchored))
- ) &&
+ ) &&
(
this.MooredLock == input.MooredLock ||
(this.MooredLock != null &&
this.MooredLock.Equals(input.MooredLock))
- ) &&
+ ) &&
(
this.Canceled == input.Canceled ||
(this.Canceled != null &&
this.Canceled.Equals(input.Canceled))
- ) &&
+ ) &&
(
this.Evaluation == input.Evaluation ||
this.Evaluation.Equals(input.Evaluation)
- ) &&
+ ) &&
(
this.EvaluationMessage == input.EvaluationMessage ||
(this.EvaluationMessage != null &&
this.EvaluationMessage.Equals(input.EvaluationMessage))
- ) &&
+ ) &&
(
this.TimeRefPoint == input.TimeRefPoint ||
(this.TimeRefPoint != null &&
this.TimeRefPoint.Equals(input.TimeRefPoint))
- ) &&
+ ) &&
(
this.Participants == input.Participants ||
this.Participants != null &&
input.Participants != null &&
this.Participants.SequenceEqual(input.Participants)
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
@@ -9060,113 +9070,113 @@ namespace BreCalClient.misc.Model
{
return false;
}
- return
+ return
(
this.Id == input.Id ||
this.Id.Equals(input.Id)
- ) &&
+ ) &&
(
this.EtaBerth == input.EtaBerth ||
(this.EtaBerth != null &&
this.EtaBerth.Equals(input.EtaBerth))
- ) &&
+ ) &&
(
this.EtaBerthFixed == input.EtaBerthFixed ||
(this.EtaBerthFixed != null &&
this.EtaBerthFixed.Equals(input.EtaBerthFixed))
- ) &&
+ ) &&
(
this.EtdBerth == input.EtdBerth ||
(this.EtdBerth != null &&
this.EtdBerth.Equals(input.EtdBerth))
- ) &&
+ ) &&
(
this.EtdBerthFixed == input.EtdBerthFixed ||
(this.EtdBerthFixed != null &&
this.EtdBerthFixed.Equals(input.EtdBerthFixed))
- ) &&
+ ) &&
(
this.LockTime == input.LockTime ||
(this.LockTime != null &&
this.LockTime.Equals(input.LockTime))
- ) &&
+ ) &&
(
this.LockTimeFixed == input.LockTimeFixed ||
(this.LockTimeFixed != null &&
this.LockTimeFixed.Equals(input.LockTimeFixed))
- ) &&
+ ) &&
(
this.ZoneEntry == input.ZoneEntry ||
(this.ZoneEntry != null &&
this.ZoneEntry.Equals(input.ZoneEntry))
- ) &&
+ ) &&
(
this.ZoneEntryFixed == input.ZoneEntryFixed ||
(this.ZoneEntryFixed != null &&
this.ZoneEntryFixed.Equals(input.ZoneEntryFixed))
- ) &&
+ ) &&
(
this.OperationsStart == input.OperationsStart ||
(this.OperationsStart != null &&
this.OperationsStart.Equals(input.OperationsStart))
- ) &&
+ ) &&
(
this.OperationsEnd == input.OperationsEnd ||
(this.OperationsEnd != null &&
this.OperationsEnd.Equals(input.OperationsEnd))
- ) &&
+ ) &&
(
this.Remarks == input.Remarks ||
(this.Remarks != null &&
this.Remarks.Equals(input.Remarks))
- ) &&
+ ) &&
(
this.ShipcallId == input.ShipcallId ||
this.ShipcallId.Equals(input.ShipcallId)
- ) &&
+ ) &&
(
this.ParticipantId == input.ParticipantId ||
this.ParticipantId.Equals(input.ParticipantId)
- ) &&
+ ) &&
(
this.BerthId == input.BerthId ||
(this.BerthId != null &&
this.BerthId.Equals(input.BerthId))
- ) &&
+ ) &&
(
this.BerthInfo == input.BerthInfo ||
(this.BerthInfo != null &&
this.BerthInfo.Equals(input.BerthInfo))
- ) &&
+ ) &&
(
this.PierSide == input.PierSide ||
(this.PierSide != null &&
this.PierSide.Equals(input.PierSide))
- ) &&
+ ) &&
(
this.ParticipantType == input.ParticipantType ||
this.ParticipantType.Equals(input.ParticipantType)
- ) &&
+ ) &&
(
this.Ata == input.Ata ||
(this.Ata != null &&
this.Ata.Equals(input.Ata))
- ) &&
+ ) &&
(
this.Atd == input.Atd ||
(this.Atd != null &&
this.Atd.Equals(input.Atd))
- ) &&
+ ) &&
(
this.IntervalEnd == input.IntervalEnd ||
(this.IntervalEnd != null &&
this.IntervalEnd.Equals(input.IntervalEnd))
- ) &&
+ ) &&
(
this.Created == input.Created ||
(this.Created != null &&
this.Created.Equals(input.Created))
- ) &&
+ ) &&
(
this.Modified == input.Modified ||
(this.Modified != null &&
@@ -9242,13 +9252,9 @@ namespace BreCalClient.misc.Model
hashCode = (hashCode * 59) + this.PierSide.GetHashCode();
}
hashCode = (hashCode * 59) + this.ParticipantType.GetHashCode();
- if (this.Ata != null)
+ if (this.AtaAtd != null)
{
- hashCode = (hashCode * 59) + this.Ata.GetHashCode();
- }
- if (this.Atd != null)
- {
- hashCode = (hashCode * 59) + this.Atd.GetHashCode();
+ hashCode = (hashCode * 59) + this.AtaAtd.GetHashCode();
}
if (this.IntervalEnd != null)
{
@@ -9405,36 +9411,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 4c4fb27..211916c 100644
--- a/misc/BreCalApi.yaml
+++ b/misc/BreCalApi.yaml
@@ -435,6 +435,13 @@ paths:
tags:
- static
operationId: historyGet
+ parameters:
+ - name: shipcall_id
+ in: query
+ required: true
+ description: '**Id of ship call**. *Example: 52*. Id given in ship call list'
+ schema:
+ $ref: '#/components/schemas/shipcallId'
responses:
'200':
description: list of history entries
diff --git a/src/BreCalClient/BreCalClient.csproj b/src/BreCalClient/BreCalClient.csproj
index ec5072a..4c4c0a8 100644
--- a/src/BreCalClient/BreCalClient.csproj
+++ b/src/BreCalClient/BreCalClient.csproj
@@ -34,6 +34,8 @@
+
+
@@ -87,6 +89,8 @@
+
+
@@ -106,11 +110,11 @@
-
+
-
+
-
+
diff --git a/src/BreCalClient/BreCalClient.licenseheader b/src/BreCalClient/BreCalClient.licenseheader
index 82bf51d..ae39ce3 100644
--- a/src/BreCalClient/BreCalClient.licenseheader
+++ b/src/BreCalClient/BreCalClient.licenseheader
@@ -1,12 +1,12 @@
extensions: designer.cs generated.cs
extensions: .cs .cpp .h
-// Copyright (c) 2023 schick Informatik
+// Copyright (c) 2024- schick Informatik
// Description:
//
extensions: .aspx .ascx
<%--
-Copyright (c) 2023 schick Informatik
+Copyright (c) 2024- schick Informatik
--%>
extensions: .vb
'Sample license text.
diff --git a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml
index 837f6a4..8e7132a 100644
--- a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml
+++ b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml
@@ -44,9 +44,9 @@
-
+
-
+
@@ -61,8 +61,8 @@
-
-
+
+
diff --git a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs
index 7cad474..3617b03 100644
--- a/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs
+++ b/src/BreCalClient/EditTimesAgencyIncomingControl.xaml.cs
@@ -14,6 +14,12 @@ namespace BreCalClient
///
public partial class EditTimesAgencyIncomingControl : Window, IEditTimesControl
{
+ #region Fields
+
+ bool _editing = false;
+
+ #endregion
+
#region Construction
public EditTimesAgencyIncomingControl()
@@ -55,10 +61,10 @@ namespace BreCalClient
allowBSMD = p.IsFlagSet(ParticipantFlag.ALLOW_BSMD);
}
- bool enableControls = (this.Times.ParticipantId == App.Participant.Id) ||
+ _editing = (this.Times.ParticipantId == App.Participant.Id) ||
(App.Participant.IsTypeFlagSet(ParticipantType.BSMD) && allowBSMD);
- this.EnableControls(enableControls);
+ this.EnableControls();
}
@@ -240,37 +246,50 @@ namespace BreCalClient
}
}
- private void EnableControls(bool isEnabled)
+ private void EnableControls()
{
- this.datePickerETA.IsEnabled = isEnabled;
- this.comboBoxArrivalBerth.IsEnabled = isEnabled;
- this.comboBoxPierside.IsEnabled = isEnabled;
- this.textBoxBerthRemarks.IsEnabled = isEnabled;
- this.doubleUpDownDraft.IsEnabled = isEnabled;
- this.datePickerTidalWindowFrom.IsEnabled = isEnabled;
- this.datePickerTidalWindowTo.IsEnabled = isEnabled;
- this.checkBoxCanceled.IsEnabled = isEnabled;
+ this.datePickerETA.IsEnabled = _editing;
+ this.comboBoxArrivalBerth.IsEnabled = _editing;
+ this.comboBoxPierside.IsEnabled = _editing;
+ this.textBoxBerthRemarks.IsEnabled = _editing;
+ this.doubleUpDownDraft.IsEnabled = _editing;
+ this.datePickerTidalWindowFrom.IsEnabled = _editing;
+ this.datePickerTidalWindowTo.IsEnabled = _editing;
+ this.checkBoxCanceled.IsEnabled = _editing;
- this.checkBoxAnchored.IsEnabled = isEnabled;
+ this.checkBoxAnchored.IsEnabled = _editing;
- this.comboBoxTug.IsEnabled = isEnabled;
- this.integerUpDownRecommendedTugs.IsEnabled = isEnabled;
+ this.comboBoxTug.IsEnabled = _editing;
+ this.integerUpDownRecommendedTugs.IsEnabled = _editing;
- this.comboBoxPilot.IsEnabled = isEnabled;
- this.comboBoxMooring.IsEnabled = isEnabled;
- this.checkBoxMooredLock.IsEnabled = isEnabled;
- this.comboBoxTerminal.IsEnabled = isEnabled;
- this.checkBoxBunkering.IsEnabled = isEnabled;
- this.checkBoxReplenishingTerminal.IsEnabled = isEnabled;
- this.checkBoxReplenishingLock.IsEnabled = isEnabled;
- this.textBoxRemarks.IsEnabled = isEnabled;
+ this.comboBoxPilot.IsEnabled = _editing;
+ this.comboBoxMooring.IsEnabled = _editing;
+ this.checkBoxMooredLock.IsEnabled = _editing;
+ this.comboBoxTerminal.IsEnabled = _editing;
+ this.checkBoxBunkering.IsEnabled = _editing;
+ this.checkBoxReplenishingTerminal.IsEnabled = _editing;
+ this.checkBoxReplenishingLock.IsEnabled = _editing;
+ this.textBoxRemarks.IsEnabled = _editing;
- this.buttonOK.IsEnabled = isEnabled;
+ CheckOKButton();
+ }
+
+ private bool RequiredFieldsSet()
+ {
+ bool areSet = this.datePickerETA.Value.HasValue &&
+ this.doubleUpDownDraft.Value.HasValue &&
+ this.comboBoxArrivalBerth.SelectedIndex >= 0;
+ return areSet;
+ }
+
+ private void CheckOKButton()
+ {
+ this.buttonOK.IsEnabled = _editing && RequiredFieldsSet();
}
#endregion
- #region context menu handlers
+ #region event handlers
private void contextMenuItemArrivalBerth_Click(object sender, RoutedEventArgs e)
{
@@ -305,6 +324,21 @@ namespace BreCalClient
private void contextMenuItemClearPierside_Click(object sender, RoutedEventArgs e)
{
this.comboBoxPierside.SelectedIndex = -1;
+ }
+
+ private void doubleUpDownDraft_ValueChanged(object sender, RoutedPropertyChangedEventArgs