Co-authored-by: Claudio Schaad <c.schaad@pog.ch> Co-committed-by: Claudio Schaad <c.schaad@pog.ch>
37 lines
No EOL
875 B
C#
37 lines
No EOL
875 B
C#
using System.Collections.Generic;
|
|
using Schaad.Accounting.Datasets;
|
|
|
|
namespace Schaad.Accounting.Interfaces
|
|
{
|
|
public interface ISettingsService
|
|
{
|
|
int GetYear();
|
|
|
|
void SetYear(int year);
|
|
|
|
bool TrySetYear(int year);
|
|
|
|
string GetMandator();
|
|
IReadOnlyList<string> GetMandators(int year);
|
|
|
|
void SetMandator(string mandator);
|
|
|
|
string GetBackupFilePath();
|
|
|
|
string GetUploadPath();
|
|
|
|
string GetCreditCardStatementPath();
|
|
|
|
string GetDbPath();
|
|
|
|
string GetLastYearDbPath();
|
|
|
|
/// <summary>
|
|
/// The mandator's folder, above the per-year folders. For data that is not kept per
|
|
/// year (e.g. the electricity bills, whose period doesn't align with calendar years).
|
|
/// </summary>
|
|
string GetMandatorPath();
|
|
|
|
SettingsDataset GetSettings();
|
|
}
|
|
} |