Table of Contents

Class ChatAdminData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

One persisted chat message as an operator needs to see it.

public sealed class ChatAdminData
Inheritance
ChatAdminData
Inherited Members

Remarks

Deliberately not ChatData. That type is the game's transfer shape: the scene servers fetch it to re-broadcast a message, so it is built for delivery and its fields are the ones delivery needs. This one is built for reading a report, which is a different job — it keeps both timestamps rather than treating them as interchangeable, because the question an operator is answering ("when did they say it") and the question the chat pump is answering ("what is new since my cursor") are not the same question.

It carries no Version. The chat table is append-only in practice — nothing updates a message after it is written — so the concurrency token tells an operator nothing, and a column on an operator screen that is always 1 trains people to ignore columns.

Every string here is player-supplied. Message is whatever somebody typed into the chat box, and CharacterName reaches this table denormalized, without passing back through the character row's validation. Anything rendering these has to escape them; this is the one screen in an operator panel whose content is written by the person being investigated.

Properties

AccountName

The sender's account name, as recorded when the message was written.

public string AccountName { get; set; }

Property Value

string

Channel

The channel, as the raw ChatChannel value.

public byte Channel { get; set; }

Property Value

byte

Remarks

Kept as the byte rather than the enum so a row written by a newer server, carrying a channel this build has no name for, still reads back instead of throwing. Whatever presents this is responsible for naming it: "channel 5" is not an answer to a report.

CharacterID

The character that sent the message.

public long CharacterID { get; set; }

Property Value

long

Remarks

The character row may no longer exist: chat outlives deletion by design, which is the whole reason the names below are denormalized onto it. A panel linking to the character has to tolerate the link leading nowhere.

CharacterName

The sender's character name, as recorded when the message was written.

public string CharacterName { get; set; }

Property Value

string

Remarks

A snapshot, not a lookup. If the character has since been renamed this shows the name they were using at the time, which is what a report about that name needs.

ID

Primary key. Also the tie-break that orders messages inside one clock tick.

public long ID { get; set; }

Property Value

long

Message

The message body, exactly as the player typed it.

public string Message { get; set; }

Property Value

string

SceneServerID

The scene server the message originated on.

public long SceneServerID { get; set; }

Property Value

long

ServerReceivedTime

When the server received the message (UTC).

public DateTime ServerReceivedTime { get; set; }

Property Value

DateTime

Remarks

This is the legal-audit instant: it is stamped by the scene server that took the message from the player, so it survives the message sitting in a persistence batch.

TimeCreated

When the row was written (UTC).

public DateTime TimeCreated { get; set; }

Property Value

DateTime

Remarks

The row's own clock, and the column every index and every ordering here uses. It can trail ServerReceivedTime by the width of a persistence batch, so the two are shown separately rather than one standing in for the other.

WorldServerID

The world server the message originated on.

public long WorldServerID { get; set; }

Property Value

long