29 lines
856 B
C#
29 lines
856 B
C#
namespace UtopiaCanteenSystem.Services;
|
|
|
|
/// <summary>
|
|
/// Provides persisted configuration values for the app.
|
|
/// </summary>
|
|
public interface IConfigService
|
|
{
|
|
string GetSyncApiEndpoint();
|
|
void SetSyncApiEndpoint(string endpoint);
|
|
bool GetScannerConnected();
|
|
void SetScannerConnected(bool connected);
|
|
int GetScanTimeoutSeconds();
|
|
void SetScanTimeoutSeconds(int seconds);
|
|
string GetAdminCardId();
|
|
void SetAdminCardId(string cardId);
|
|
|
|
string GetSiteId();
|
|
void SetSiteId(string siteId);
|
|
string GetDeviceId();
|
|
void SetDeviceId(string deviceId);
|
|
|
|
bool GetRememberAdminCredentials();
|
|
void SetRememberAdminCredentials(bool remember);
|
|
string GetSavedAdminUsername();
|
|
void SetSavedAdminUsername(string username);
|
|
string GetSavedAdminPassword();
|
|
void SetSavedAdminPassword(string password);
|
|
}
|