2017-12-01 15:22:04 +01:00
|
|
|
|
using System;
|
2019-07-25 21:34:14 +02:00
|
|
|
|
using System.Collections.Generic;
|
2017-12-01 15:22:04 +01:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Bit.Core.Enums;
|
2017-12-01 20:06:16 +01:00
|
|
|
|
using Bit.Core.Models.Table;
|
2017-12-01 15:22:04 +01:00
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IEventService
|
|
|
|
|
{
|
2019-07-09 17:44:09 +02:00
|
|
|
|
Task LogUserEventAsync(Guid userId, EventType type, DateTime? date = null);
|
|
|
|
|
Task LogCipherEventAsync(Cipher cipher, EventType type, DateTime? date = null);
|
2019-07-25 21:34:14 +02:00
|
|
|
|
Task LogCipherEventsAsync(IEnumerable<Tuple<Cipher, EventType, DateTime?>> events);
|
2019-07-09 17:44:09 +02:00
|
|
|
|
Task LogCollectionEventAsync(Collection collection, EventType type, DateTime? date = null);
|
|
|
|
|
Task LogGroupEventAsync(Group group, EventType type, DateTime? date = null);
|
2020-01-15 15:43:49 +01:00
|
|
|
|
Task LogPolicyEventAsync(Policy policy, EventType type, DateTime? date = null);
|
2019-07-09 17:44:09 +02:00
|
|
|
|
Task LogOrganizationUserEventAsync(OrganizationUser organizationUser, EventType type, DateTime? date = null);
|
|
|
|
|
Task LogOrganizationEventAsync(Organization organization, EventType type, DateTime? date = null);
|
2017-12-01 15:22:04 +01:00
|
|
|
|
}
|
|
|
|
|
}
|