From 46d80e561105c20bf71b08f96e7b87aeec10c557 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Tue, 11 Jun 2024 09:47:36 +0200 Subject: [PATCH] removed times from getlatest --- misc/BreCalApi.cs | 21 ++------------------- misc/BreCalApi.yaml | 6 +----- src/BreCalClient/MainWindow.xaml.cs | 2 +- 3 files changed, 4 insertions(+), 25 deletions(-) diff --git a/misc/BreCalApi.cs b/misc/BreCalApi.cs index 0cfd7fb..3ed6c35 100644 --- a/misc/BreCalApi.cs +++ b/misc/BreCalApi.cs @@ -1,7 +1,7 @@ //---------------------- // -// Generated REST API Client Code Generator v1.9.8.0 on 11.06.2024 08:29:39 +// Generated REST API Client Code Generator v1.9.8.0 on 11.06.2024 09:44:14 // Using the tool OpenAPI Generator v7.4.0 // //---------------------- @@ -7137,12 +7137,10 @@ namespace BreCalClient.misc.Model /// Initializes a new instance of the class. /// /// shipcalls. - /// times. /// ship. - public Latest(DateTime? shipcalls = default(DateTime?), DateTime? times = default(DateTime?), DateTime? ship = default(DateTime?)) + public Latest(DateTime? shipcalls = default(DateTime?), DateTime? ship = default(DateTime?)) { this.Shipcalls = shipcalls; - this.Times = times; this.Ship = ship; } /// @@ -7151,11 +7149,6 @@ namespace BreCalClient.misc.Model [DataMember(Name = "shipcalls", EmitDefaultValue = true)] public DateTime? Shipcalls { get; set; } /// - /// Gets or Sets Times - /// - [DataMember(Name = "times", EmitDefaultValue = true)] - public DateTime? Times { get; set; } - /// /// Gets or Sets Ship /// [DataMember(Name = "ship", EmitDefaultValue = true)] @@ -7169,7 +7162,6 @@ namespace BreCalClient.misc.Model StringBuilder sb = new StringBuilder(); sb.Append("class Latest {\n"); sb.Append(" Shipcalls: ").Append(Shipcalls).Append("\n"); - sb.Append(" Times: ").Append(Times).Append("\n"); sb.Append(" Ship: ").Append(Ship).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -7208,11 +7200,6 @@ namespace BreCalClient.misc.Model (this.Shipcalls != null && this.Shipcalls.Equals(input.Shipcalls)) ) && - ( - this.Times == input.Times || - (this.Times != null && - this.Times.Equals(input.Times)) - ) && ( this.Ship == input.Ship || (this.Ship != null && @@ -7232,10 +7219,6 @@ namespace BreCalClient.misc.Model { hashCode = (hashCode * 59) + this.Shipcalls.GetHashCode(); } - if (this.Times != null) - { - hashCode = (hashCode * 59) + this.Times.GetHashCode(); - } if (this.Ship != null) { hashCode = (hashCode * 59) + this.Ship.GetHashCode(); diff --git a/misc/BreCalApi.yaml b/misc/BreCalApi.yaml index ee219f1..642421b 100644 --- a/misc/BreCalApi.yaml +++ b/misc/BreCalApi.yaml @@ -485,11 +485,7 @@ components: shipcalls: type: string format: date-time - nullable: true - times: - type: string - format: date-time - nullable: true + nullable: true ship: type: string format: date-time diff --git a/src/BreCalClient/MainWindow.xaml.cs b/src/BreCalClient/MainWindow.xaml.cs index 51bd237..21c941d 100644 --- a/src/BreCalClient/MainWindow.xaml.cs +++ b/src/BreCalClient/MainWindow.xaml.cs @@ -39,7 +39,7 @@ namespace BreCalClient #region Fields //private static int _uiUpdateRunning = 0; - private static readonly SemaphoreSlim uiLock = new SemaphoreSlim(1); + private static readonly SemaphoreSlim uiLock = new(1); private Credentials? _credentials;