37 lines
877 B
C#
37 lines
877 B
C#
#nullable enable
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using ReminderOrganizer.Models;
|
|
|
|
namespace ReminderOrganizer.Services
|
|
{
|
|
public interface IDataService
|
|
{
|
|
Task<AppData> LoadAsync();
|
|
Task SaveAsync(AppData data);
|
|
string DataFilePath { get; }
|
|
}
|
|
|
|
public interface INotificationService
|
|
{
|
|
void ShowNotification(string title, string message);
|
|
}
|
|
|
|
public interface ILocalizationService
|
|
{
|
|
string GetString(string key);
|
|
void SetLanguage(string languageCode);
|
|
string CurrentLanguage { get; }
|
|
event EventHandler? LanguageChanged;
|
|
event EventHandler? StringsChanged;
|
|
void Initialize(AppData appData);
|
|
}
|
|
|
|
public interface IAutostartService
|
|
{
|
|
bool IsAutostartEnabled { get; }
|
|
void ToggleAutostart();
|
|
}
|
|
}
|