2018-06-15 02:57:03 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Teknik.MailService
|
|
|
|
|
{
|
|
|
|
|
public interface IMailService
|
|
|
|
|
{
|
|
|
|
|
bool AccountExists(string username);
|
|
|
|
|
|
|
|
|
|
DateTime LastActive(string username);
|
|
|
|
|
|
2022-08-15 02:32:48 +02:00
|
|
|
|
bool IsEnabled(string username);
|
2019-01-28 00:28:03 +01:00
|
|
|
|
|
2022-08-15 02:32:48 +02:00
|
|
|
|
bool CreateAccount(string username, string password, long size);
|
2018-06-15 02:57:03 +02:00
|
|
|
|
|
2022-08-15 02:32:48 +02:00
|
|
|
|
bool EditPassword(string username, string password);
|
2018-06-15 02:57:03 +02:00
|
|
|
|
|
2022-08-15 02:32:48 +02:00
|
|
|
|
long GetMaxSize(string username);
|
2018-06-15 02:57:03 +02:00
|
|
|
|
|
2022-08-15 02:32:48 +02:00
|
|
|
|
bool EditMaxSize(string username, long size);
|
2018-06-15 02:57:03 +02:00
|
|
|
|
|
2022-08-15 02:32:48 +02:00
|
|
|
|
bool EditMaxEmailsPerDay(string username, int maxPerDay);
|
2018-06-15 02:57:03 +02:00
|
|
|
|
|
2022-08-15 02:32:48 +02:00
|
|
|
|
bool EnableAccount(string username);
|
2018-06-15 02:57:03 +02:00
|
|
|
|
|
2022-08-15 02:32:48 +02:00
|
|
|
|
bool DisableAccount(string username);
|
|
|
|
|
|
|
|
|
|
bool DeleteAccount(string username);
|
2018-06-15 02:57:03 +02:00
|
|
|
|
}
|
|
|
|
|
}
|