From a3a8ef3b396eabd35247904d52854c75f726f376 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Wed, 5 Feb 2025 09:27:59 +0100 Subject: [PATCH] Extended API and added event type selection to about dialog --- misc/BreCalApi.cs | 15 ++++++++-- misc/BreCalApi.yaml | 8 ++++++ src/BreCalClient/AboutDialog.xaml | 28 +++++++++++-------- src/BreCalClient/AboutDialog.xaml.cs | 12 ++++++++ src/BreCalClient/MainWindow.xaml.cs | 7 ++++- .../Resources/Resources.Designer.cs | 9 ++++++ src/BreCalClient/Resources/Resources.resx | 3 ++ 7 files changed, 67 insertions(+), 15 deletions(-) diff --git a/misc/BreCalApi.cs b/misc/BreCalApi.cs index 1d8f258..7537be1 100644 --- a/misc/BreCalApi.cs +++ b/misc/BreCalApi.cs @@ -1,7 +1,7 @@ //---------------------- // -// Generated REST API Client Code Generator v1.19.0.0 on 04.02.2025 10:01:05 +// Generated REST API Client Code Generator v1.19.0.0 on 05.02.2025 08:46:11 // Using the tool OpenAPI Generator v7.11.0 // //---------------------- @@ -6940,7 +6940,8 @@ namespace BreCalClient.misc.Model /// notifyPopup. /// exp. /// token. - public LoginResult(int id = default(int), int participantId = default(int), string firstName = default(string), string lastName = default(string), string userName = default(string), string userPhone = default(string), string userEmail = default(string), bool? notifyEmail = default(bool?), bool? notifyWhatsapp = default(bool?), bool? notifySignal = default(bool?), bool? notifyPopup = default(bool?), float exp = default(float), string token = default(string)) + /// notifyOn. + public LoginResult(int id = default(int), int participantId = default(int), string firstName = default(string), string lastName = default(string), string userName = default(string), string userPhone = default(string), string userEmail = default(string), bool? notifyEmail = default(bool?), bool? notifyWhatsapp = default(bool?), bool? notifySignal = default(bool?), bool? notifyPopup = default(bool?), float exp = default(float), string token = default(string), List notifyOn = default(List)) { this.Id = id; this.ParticipantId = participantId; @@ -6955,6 +6956,7 @@ namespace BreCalClient.misc.Model this.NotifyPopup = notifyPopup; this.Exp = exp; this.Token = token; + this.NotifyOn = notifyOn; } /// /// Gets or Sets Id @@ -7061,6 +7063,14 @@ namespace BreCalClient.misc.Model [DataMember(Name = "token", EmitDefaultValue = true)] public string Token { get; set; } /// + /// Gets or Sets NotifyOn + /// + /* + ["assignment","next24h"] + */ + [DataMember(Name = "notify_on", EmitDefaultValue = true)] + public List NotifyOn { get; set; } + /// /// Returns the string presentation of the object /// /// String presentation of the object @@ -7081,6 +7091,7 @@ namespace BreCalClient.misc.Model sb.Append(" NotifyPopup: ").Append(NotifyPopup).Append("\n"); sb.Append(" Exp: ").Append(Exp).Append("\n"); sb.Append(" Token: ").Append(Token).Append("\n"); + sb.Append(" NotifyOn: ").Append(NotifyOn).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/misc/BreCalApi.yaml b/misc/BreCalApi.yaml index cd1a6bd..77ae767 100644 --- a/misc/BreCalApi.yaml +++ b/misc/BreCalApi.yaml @@ -1736,6 +1736,14 @@ components: token: type: string example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c + notify_on: + type: array + nullable: true + items: + $ref: '#/components/schemas/NotificationType' + example: + - assignment + - next24h example: id: 42 participant_id: 5 diff --git a/src/BreCalClient/AboutDialog.xaml b/src/BreCalClient/AboutDialog.xaml index 5e75673..76a4af8 100644 --- a/src/BreCalClient/AboutDialog.xaml +++ b/src/BreCalClient/AboutDialog.xaml @@ -7,11 +7,12 @@ xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" xmlns:p = "clr-namespace:BreCalClient.Resources" mc:Ignorable="d" Left="{local:SettingBinding W1Left}" Top="{local:SettingBinding W1Top}" - Title="Help" Height="496" Width="500" Loaded="Window_Loaded"> + Title="Help" Height="512" Width="800" Loaded="Window_Loaded"> - + + @@ -20,6 +21,7 @@ + @@ -48,7 +50,7 @@ Informatikbüro Daniel Schick - +