mirror of
https://github.com/bitwarden/server.git
synced 2025-04-21 04:55:08 -05:00
20 lines
885 B
C#
20 lines
885 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Bit.Core.Enums;
|
|
using Bit.Core.Models.Table;
|
|
|
|
namespace Bit.Core.Services
|
|
{
|
|
public interface IEventService
|
|
{
|
|
Task LogUserEventAsync(Guid userId, EventType type, DateTime? date = null);
|
|
Task LogCipherEventAsync(Cipher cipher, EventType type, DateTime? date = null);
|
|
Task LogCipherEventsAsync(IEnumerable<Tuple<Cipher, EventType, DateTime?>> events);
|
|
Task LogCollectionEventAsync(Collection collection, EventType type, DateTime? date = null);
|
|
Task LogGroupEventAsync(Group group, EventType type, DateTime? date = null);
|
|
Task LogOrganizationUserEventAsync(OrganizationUser organizationUser, EventType type, DateTime? date = null);
|
|
Task LogOrganizationEventAsync(Organization organization, EventType type, DateTime? date = null);
|
|
}
|
|
}
|