2022-04-16 20:57:50 +02:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Content.Server.Database;
|
|
|
|
|
|
using Content.Shared.Administration.Notes;
|
|
|
|
|
|
using Robust.Server.Player;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Administration.Notes;
|
|
|
|
|
|
|
|
|
|
|
|
public interface IAdminNotesManager
|
|
|
|
|
|
{
|
|
|
|
|
|
event Action<SharedAdminNote>? NoteAdded;
|
|
|
|
|
|
event Action<SharedAdminNote>? NoteModified;
|
2023-04-16 23:18:54 -07:00
|
|
|
|
event Action<SharedAdminNote>? NoteDeleted;
|
2022-04-16 20:57:50 +02:00
|
|
|
|
|
|
|
|
|
|
bool CanCreate(IPlayerSession admin);
|
|
|
|
|
|
bool CanDelete(IPlayerSession admin);
|
|
|
|
|
|
bool CanEdit(IPlayerSession admin);
|
|
|
|
|
|
bool CanView(IPlayerSession admin);
|
|
|
|
|
|
Task OpenEui(IPlayerSession admin, Guid notedPlayer);
|
|
|
|
|
|
Task AddNote(IPlayerSession createdBy, Guid player, string message);
|
|
|
|
|
|
Task DeleteNote(int noteId, IPlayerSession deletedBy);
|
|
|
|
|
|
Task ModifyNote(int noteId, IPlayerSession editedBy, string message);
|
|
|
|
|
|
Task<List<AdminNote>> GetNotes(Guid player);
|
|
|
|
|
|
Task<string> GetPlayerName(Guid player);
|
|
|
|
|
|
}
|