diff --git a/misc/BreCalApi.cs b/misc/BreCalApi.cs index 65bd1f9..1a07954 100644 --- a/misc/BreCalApi.cs +++ b/misc/BreCalApi.cs @@ -1,7 +1,7 @@ //---------------------- // -// Generated REST API Client Code Generator v1.16.0.0 on 05.12.2024 17:03:25 +// Generated REST API Client Code Generator v1.16.0.0 on 05.12.2024 18:21:44 // Using the tool OpenAPI Generator v7.9.0 // //---------------------- @@ -6909,9 +6909,13 @@ namespace BreCalClient.misc.Model /// userName. /// userPhone. /// userEmail. + /// notifyEmail. + /// notifyWhatsapp. + /// notifySignal. + /// 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), float exp = default(float), string token = default(string)) + 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)) { this.Id = id; this.ParticipantId = participantId; @@ -6920,6 +6924,10 @@ namespace BreCalClient.misc.Model this.UserName = userName; this.UserPhone = userPhone; this.UserEmail = userEmail; + this.NotifyEmail = notifyEmail; + this.NotifyWhatsapp = notifyWhatsapp; + this.NotifySignal = notifySignal; + this.NotifyPopup = notifyPopup; this.Exp = exp; this.Token = token; } @@ -6980,6 +6988,38 @@ namespace BreCalClient.misc.Model [DataMember(Name = "user_email", EmitDefaultValue = true)] public string UserEmail { get; set; } /// + /// Gets or Sets NotifyEmail + /// + /* + true + */ + [DataMember(Name = "notify_email", EmitDefaultValue = true)] + public bool NotifyEmail { get; set; } + /// + /// Gets or Sets NotifyWhatsapp + /// + /* + false + */ + [DataMember(Name = "notify_whatsapp", EmitDefaultValue = true)] + public bool NotifyWhatsapp { get; set; } + /// + /// Gets or Sets NotifySignal + /// + /* + false + */ + [DataMember(Name = "notify_signal", EmitDefaultValue = true)] + public bool NotifySignal { get; set; } + /// + /// Gets or Sets NotifyPopup + /// + /* + false + */ + [DataMember(Name = "notify_popup", EmitDefaultValue = true)] + public bool NotifyPopup { get; set; } + /// /// Gets or Sets Exp /// /* @@ -7010,6 +7050,10 @@ namespace BreCalClient.misc.Model sb.Append(" UserName: ").Append(UserName).Append("\n"); sb.Append(" UserPhone: ").Append(UserPhone).Append("\n"); sb.Append(" UserEmail: ").Append(UserEmail).Append("\n"); + sb.Append(" NotifyEmail: ").Append(NotifyEmail).Append("\n"); + sb.Append(" NotifyWhatsapp: ").Append(NotifyWhatsapp).Append("\n"); + sb.Append(" NotifySignal: ").Append(NotifySignal).Append("\n"); + sb.Append(" NotifyPopup: ").Append(NotifyPopup).Append("\n"); sb.Append(" Exp: ").Append(Exp).Append("\n"); sb.Append(" Token: ").Append(Token).Append("\n"); sb.Append("}\n"); @@ -8728,7 +8772,11 @@ namespace BreCalClient.misc.Model /// lastName. /// userPhone. /// userEmail. - public UserDetails(int id = default(int), string oldPassword = default(string), string newPassword = default(string), string firstName = default(string), string lastName = default(string), string userPhone = default(string), string userEmail = default(string)) + /// notifyEmail. + /// notifyPopup. + /// notifyWhatsapp. + /// notifySignal. + public UserDetails(int id = default(int), string oldPassword = default(string), string newPassword = default(string), string firstName = default(string), string lastName = default(string), string userPhone = default(string), string userEmail = default(string), bool? notifyEmail = default(bool?), bool? notifyPopup = default(bool?), bool? notifyWhatsapp = default(bool?), bool? notifySignal = default(bool?)) { this.Id = id; this.OldPassword = oldPassword; @@ -8737,6 +8785,10 @@ namespace BreCalClient.misc.Model this.LastName = lastName; this.UserPhone = userPhone; this.UserEmail = userEmail; + this.NotifyEmail = notifyEmail; + this.NotifyPopup = notifyPopup; + this.NotifyWhatsapp = notifyWhatsapp; + this.NotifySignal = notifySignal; } /// /// Gets or Sets Id @@ -8795,6 +8847,38 @@ namespace BreCalClient.misc.Model [DataMember(Name = "user_email", EmitDefaultValue = true)] public string UserEmail { get; set; } /// + /// Gets or Sets NotifyEmail + /// + /* + true + */ + [DataMember(Name = "notify_email", EmitDefaultValue = true)] + public bool? NotifyEmail { get; set; } + /// + /// Gets or Sets NotifyPopup + /// + /* + false + */ + [DataMember(Name = "notify_popup", EmitDefaultValue = true)] + public bool? NotifyPopup { get; set; } + /// + /// Gets or Sets NotifyWhatsapp + /// + /* + false + */ + [DataMember(Name = "notify_whatsapp", EmitDefaultValue = true)] + public bool? NotifyWhatsapp { get; set; } + /// + /// Gets or Sets NotifySignal + /// + /* + false + */ + [DataMember(Name = "notify_signal", EmitDefaultValue = true)] + public bool? NotifySignal { get; set; } + /// /// Returns the string presentation of the object /// /// String presentation of the object @@ -8809,6 +8893,10 @@ namespace BreCalClient.misc.Model sb.Append(" LastName: ").Append(LastName).Append("\n"); sb.Append(" UserPhone: ").Append(UserPhone).Append("\n"); sb.Append(" UserEmail: ").Append(UserEmail).Append("\n"); + sb.Append(" NotifyEmail: ").Append(NotifyEmail).Append("\n"); + sb.Append(" NotifyPopup: ").Append(NotifyPopup).Append("\n"); + sb.Append(" NotifyWhatsapp: ").Append(NotifyWhatsapp).Append("\n"); + sb.Append(" NotifySignal: ").Append(NotifySignal).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/misc/BreCalApi.yaml b/misc/BreCalApi.yaml index 1a61e0b..49e7fc6 100644 --- a/misc/BreCalApi.yaml +++ b/misc/BreCalApi.yaml @@ -1545,15 +1545,15 @@ components: id: type: integer example: 42 - nullable: false + nullable: false shipcall_id: type: integer example: 5 nullable: false notification_type: - $ref: '#/components/schemas/NotificationType' + $ref: '#/components/schemas/NotificationType' message: - type: string + type: string example: Entry XY violates rule Z created: type: string @@ -1704,6 +1704,18 @@ components: user_email: type: string example: no@where.com + notify_email: + type: boolean + example: true + notify_whatsapp: + type: boolean + example: false + notify_signal: + type: boolean + example: false + notify_popup: + type: boolean + example: false exp: type: number format: float @@ -1758,6 +1770,22 @@ components: type: string nullable: true example: no@where.com + notify_email: + type: boolean + nullable: true + example: true + notify_popup: + type: boolean + nullable: true + example: false + notify_whatsapp: + type: boolean + nullable: true + example: false + notify_signal: + type: boolean + nullable: true + example: false example: id: 42 old_password: oldpassword diff --git a/misc/Readme_yaml.md b/misc/Readme_yaml.md index d6fa5a5..a2335c5 100644 --- a/misc/Readme_yaml.md +++ b/misc/Readme_yaml.md @@ -17,3 +17,11 @@ public bool ShouldSerializeEvaluation() ``` Witziger(!)weise funktioniert es für das Property EvaluationMessage korrekt. + +### Vacuum Yaml Linter + +Example Usage: + +```bash +vacuum lint -d .\misc\BreCalApi.yaml --fail-severity warn +``` diff --git a/src/BreCalClient/AboutDialog.xaml b/src/BreCalClient/AboutDialog.xaml index 60c0183..06def3e 100644 --- a/src/BreCalClient/AboutDialog.xaml +++ b/src/BreCalClient/AboutDialog.xaml @@ -7,7 +7,7 @@ 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="374" Width="500" Loaded="Window_Loaded"> + Title="Help" Height="496" Width="500" Loaded="Window_Loaded"> @@ -25,6 +25,11 @@ + + + + + @@ -49,14 +54,24 @@ -