Refactor Api-Client
Add Exceptionhandler, AlertService JSON-Converter AppSettings via DI Reformat Code
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace Jugenddienst_Stunden.Converter;
|
||||
|
||||
/// <summary>
|
||||
/// Falls ein int als bool dargestellt werden soll
|
||||
/// </summary>
|
||||
public class IntBoolConverter : IValueConverter {
|
||||
|
||||
/// <summary>
|
||||
/// Konvertiert einen int in einen bool
|
||||
/// </summary>
|
||||
@@ -18,6 +18,7 @@ public class IntBoolConverter : IValueConverter {
|
||||
if (value is int) {
|
||||
return (int)value != 0;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -33,6 +34,7 @@ public class IntBoolConverter : IValueConverter {
|
||||
if (value is bool) {
|
||||
return (bool)value ? 1 : 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user