Class AdminNotesManager
Inheritance
System.Object
AdminNotesManager
Implements
IPostInjectInit
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
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
|
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
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
|
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
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
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
|
Improve this Doc
View Source
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
|
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
|
Improve this Doc
View Source
OpenUserNotesEui(ICommonSession)
Declaration
public Task OpenUserNotesEui(ICommonSession player)
Parameters
Type |
Name |
Description |
Robust.Shared.Players.ICommonSession |
player |
|
Returns
|
Improve this Doc
View Source
PostInject()
Declaration
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
IPostInjectInit