Admin notes (#7259)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
20
Content.Server/Administration/Notes/AdminNotesExtensions.cs
Normal file
20
Content.Server/Administration/Notes/AdminNotesExtensions.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Content.Server.Database;
|
||||
using Content.Shared.Administration.Notes;
|
||||
|
||||
namespace Content.Server.Administration.Notes;
|
||||
|
||||
public static class AdminNotesExtensions
|
||||
{
|
||||
public static SharedAdminNote ToShared(this AdminNote note)
|
||||
{
|
||||
return new SharedAdminNote(
|
||||
note.Id,
|
||||
note.RoundId,
|
||||
note.Message,
|
||||
note.CreatedBy.LastSeenUserName,
|
||||
note.LastEditedBy.LastSeenUserName,
|
||||
note.CreatedAt,
|
||||
note.LastEditedAt
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user