Class SupportChatController
- Namespace
- FishMMO.ControlPanel.Controllers
- Assembly
- FishMMO-ControlPanel.dll
Reads persisted chat for support staff handling a harassment or abuse report.
[ApiController]
[Route("api/support/chat")]
public sealed class SupportChatController : ControllerBase
- Inheritance
-
SupportChatController
- Inherited Members
Remarks
Read-only, like SupportCharactersController, and for the same reason: there is no route here that edits or deletes a message. Chat is the evidence a report is judged on, and evidence an operator can quietly amend is not evidence. Retention is the database's business, not an endpoint's.
Reading is not audited. The audit filter records writes; a GET writes nothing and
carries no [Audited] attribute. AdminAuditController explains the
rule — every read recorded would write a row whose own listing is a read — and this
endpoint deliberately follows it rather than making an exception of itself.
Constructors
SupportChatController(IChatService, ILogger<SupportChatController>)
public SupportChatController(IChatService chat, ILogger<SupportChatController> log)
Parameters
chatIChatServicelogILogger<SupportChatController>
Methods
Search(string, string, byte?, string, DateTime?, DateTime?, int, int)
Searches persisted chat, newest message first.
[HttpGet]
[Authorize(Policy = "Support")]
public Task<IActionResult> Search(string characterName, string accountName, byte? channel, string text, DateTime? from, DateTime? to, int page = 1, int pageSize = 50)
Parameters
characterNamestringaccountNamestringchannelbyte?textstringfromDateTime?toDateTime?pageintpageSizeint