2017-08-11 17:06:31 -04:00
|
|
|
|
using Bit.Core.Models.Business;
|
|
|
|
|
|
using Bit.Core.Models.Table;
|
2017-08-16 17:08:20 -04:00
|
|
|
|
using System.Threading.Tasks;
|
2017-08-09 17:01:37 -04:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Services
|
|
|
|
|
|
{
|
2017-08-11 22:55:25 -04:00
|
|
|
|
public interface ILicensingService
|
2017-08-09 17:01:37 -04:00
|
|
|
|
{
|
2017-08-17 00:12:11 -04:00
|
|
|
|
Task ValidateOrganizationsAsync();
|
2017-08-22 15:27:29 -04:00
|
|
|
|
Task ValidateUsersAsync();
|
2017-08-17 00:12:11 -04:00
|
|
|
|
Task<bool> ValidateUserPremiumAsync(User user);
|
2017-08-11 17:06:31 -04:00
|
|
|
|
bool VerifyLicense(ILicense license);
|
2017-08-11 22:55:25 -04:00
|
|
|
|
byte[] SignLicense(ILicense license);
|
2017-08-09 17:01:37 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|