-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
namespace Mitawi.Constants | ||
namespace Mitawi.Constants; | ||
|
||
public static class APIConstants | ||
{ | ||
public static class APIConstants | ||
{ | ||
public const string OpenWeatherMapEndpoint = "https://api.openweathermap.org/data/2.5/onecall"; | ||
public const string OpenWeatherMapEndpoint = "https://api.openweathermap.org/data/2.5/onecall"; | ||
public const string OpenWeatherMapAPIKey = "INSERT_API_KEY_HERE"; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace Mitawi.Converters; | ||
|
||
public class InvertBooleanConverter : IValueConverter | ||
{ | ||
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | ||
Check warning on line 5 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_MacCatalyst
Check warning on line 5 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_MacCatalyst
Check warning on line 5 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_Windows
Check warning on line 5 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_Windows
Check warning on line 5 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_Windows
Check warning on line 5 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_iOS
Check warning on line 5 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_iOS
|
||
{ | ||
if (value is bool boolValue) | ||
{ | ||
return !boolValue; | ||
} | ||
return value; | ||
} | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | ||
Check warning on line 14 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_MacCatalyst
Check warning on line 14 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_MacCatalyst
Check warning on line 14 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_Windows
Check warning on line 14 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_Windows
Check warning on line 14 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_iOS
Check warning on line 14 in Mitawi/Converters/InvertBooleanConverter.cs GitHub Actions / Build_iOS
|
||
{ | ||
if (value is bool boolValue) | ||
{ | ||
return !boolValue; | ||
} | ||
return value; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,5 @@ | |
|
||
public partial class BaseViewModel : ObservableObject | ||
{ | ||
[ObservableProperty] | ||
private bool isBusy = false; | ||
|
||
} |