Show / Hide Table of Contents

Class AdminNotesManager

Inheritance
System.Object
AdminNotesManager
Implements
IAdminNotesManager
IPostInjectInit
Namespace: Content.Server.Administration.Notes
Assembly: Content.Server.dll
Syntax
public sealed class AdminNotesManager : object, IAdminNotesManager, IPostInjectInit

Fields

| Improve this Doc View Source

SawmillId

Declaration
public const string SawmillId = null
Field Value
Type Description
System.String

Methods

| Improve this Doc View Source

AddAdminRemark(ICommonSession, Guid, NoteType, String, Nullable<NoteSeverity>, Boolean, Nullable<DateTime>)

Declaration
public Task AddAdminRemark(ICommonSession createdBy, Guid player, NoteType type, string message, NoteSeverity? severity, bool secret, DateTime? expiryTime)
Parameters
Type Name Description
Robust.Shared.Players.ICommonSession createdBy
Guid player
NoteType type
System.String message
System.Nullable<NoteSeverity> severity
System.Boolean secret
System.Nullable<DateTime> expiryTime
Returns
Type Description
Task
| Improve this Doc View Source

CanCreate(ICommonSession)

Declaration
public bool CanCreate(ICommonSession admin)
Parameters
Type Name Description
Robust.Shared.Players.ICommonSession admin
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanDelete(ICommonSession)

Declaration
public bool CanDelete(ICommonSession admin)
Parameters
Type Name Description
Robust.Shared.Players.ICommonSession admin
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanEdit(ICommonSession)

Declaration
public bool CanEdit(ICommonSession admin)
Parameters
Type Name Description
Robust.Shared.Players.ICommonSession admin
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CanView(ICommonSession)

Declaration
public bool CanView(ICommonSession admin)
Parameters
Type Name Description
Robust.Shared.Players.ICommonSession admin
Returns
Type Description
System.Boolean
| Improve this Doc View Source

DeleteAdminRemark(Int32, NoteType, ICommonSession)

Declaration
public Task DeleteAdminRemark(int noteId, NoteType type, ICommonSession deletedBy)
Parameters
Type Name Description
System.Int32 noteId
NoteType type
Robust.Shared.Players.ICommonSession deletedBy
Returns
Type Description
Task
| Improve this Doc View Source

GetActiveWatchlists(Guid)

Declaration
public Task<List<AdminWatchlist>> GetActiveWatchlists(Guid player)
Parameters
Type Name Description
Guid player
Returns
Type Description
Task<List<Content.Server.Database.AdminWatchlist>>
| Improve this Doc View Source

GetAllAdminRemarks(Guid)

Declaration
public Task<List<IAdminRemarksCommon>> GetAllAdminRemarks(Guid player)
Parameters
Type Name Description
Guid player
Returns
Type Description
Task<List<Content.Server.Database.IAdminRemarksCommon>>
| Improve this Doc View Source

GetNewMessages(Guid)

Declaration
public Task<List<AdminMessage>> GetNewMessages(Guid player)
Parameters
Type Name Description
Guid player
Returns
Type Description
Task<List<Content.Server.Database.AdminMessage>>
| Improve this Doc View Source

GetVisibleRemarks(Guid)

Declaration
public Task<List<IAdminRemarksCommon>> GetVisibleRemarks(Guid player)
Parameters
Type Name Description
Guid player
Returns
Type Description
Task<List<Content.Server.Database.IAdminRemarksCommon>>
| Improve this Doc View Source

MarkMessageAsSeen(Int32)

Declaration
public Task MarkMessageAsSeen(int id)
Parameters
Type Name Description
System.Int32 id
Returns
Type Description
Task
| Improve this Doc View Source

ModifyAdminRemark(Int32, NoteType, ICommonSession, String, Nullable<NoteSeverity>, Boolean, Nullable<DateTime>)

Declaration
public Task ModifyAdminRemark(int noteId, NoteType type, ICommonSession editedBy, string message, NoteSeverity? severity, bool secret, DateTime? expiryTime)
Parameters
Type Name Description
System.Int32 noteId
NoteType type
Robust.Shared.Players.ICommonSession editedBy
System.String message
System.Nullable<NoteSeverity> severity
System.Boolean secret
System.Nullable<DateTime> expiryTime
Returns
Type Description
Task
| Improve this Doc View Source

OpenEui(ICommonSession, Guid)

Declaration
public Task OpenEui(ICommonSession admin, Guid notedPlayer)
Parameters
Type Name Description
Robust.Shared.Players.ICommonSession admin
Guid notedPlayer
Returns
Type Description
Task
| Improve this Doc View Source

OpenUserNotesEui(ICommonSession)

Declaration
public Task OpenUserNotesEui(ICommonSession player)
Parameters
Type Name Description
Robust.Shared.Players.ICommonSession player
Returns
Type Description
Task
| Improve this Doc View Source

PostInject()

Declaration
public void PostInject()

Events

| Improve this Doc View Source

NoteAdded

Declaration
public event Action<SharedAdminNote>? NoteAdded
Event Type
Type Description
System.Nullable<Action<SharedAdminNote>>
| Improve this Doc View Source

NoteDeleted

Declaration
public event Action<SharedAdminNote>? NoteDeleted
Event Type
Type Description
System.Nullable<Action<SharedAdminNote>>
| Improve this Doc View Source

NoteModified

Declaration
public event Action<SharedAdminNote>? NoteModified
Event Type
Type Description
System.Nullable<Action<SharedAdminNote>>

Implements

IAdminNotesManager
IPostInjectInit
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾