Added EF and DB to the core, crude demo in the UI

This commit is contained in:
2026-08-23 20:42:42 +03:00 Unverified
parent db368674d4
commit fb8427bd0e
20 changed files with 285 additions and 36 deletions
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace WinWARP.Core.Services.Interfaces;
public interface ILocalizationService
{
IEnumerable<string> GetSupportedLanguages();
string GetCurrentLanguage();
Task SetLanguageAsync(string languageCode);
string GetString(string resourceKey);
}
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace WinWARP.Core.Services.Interfaces;
public interface INavigationService
{
void NavigateTo<TViewModel>(object parameter = null) where TViewModel : class;
void GoBack();
bool CanGoBack
{
get;
}
Type CurrentViewModelType { get; }
event EventHandler<Type> NavigatedToViewModel;
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using WinWARP.Core.Models.Entities;
namespace WinWARP.Core.Services.Interfaces;
public interface ISubscriptionDbService
{
public Task<List<Subscription>> GetSubscriptionsAsync();
public Task AddSubscriptionAsync(Subscription subscription);
}