Struct ChatData
Chat message data transfer object.
public struct ChatData
- Inherited Members
Constructors
ChatData(long, long, long, long, byte, string, DateTime, DateTime)
public ChatData(long id, long characterID, long worldServerID, long sceneServerID, byte channel, string message, DateTime serverReceivedTime, DateTime timeCreated)
Parameters
idlongcharacterIDlongworldServerIDlongsceneServerIDlongchannelbytemessagestringserverReceivedTimeDateTimetimeCreatedDateTime
ChatData(long, long, string, string, long, long, byte, string, DateTime, DateTime)
public ChatData(long id, long characterID, string characterName, string accountName, long worldServerID, long sceneServerID, byte channel, string message, DateTime serverReceivedTime, DateTime timeCreated)
Parameters
idlongcharacterIDlongcharacterNamestringaccountNamestringworldServerIDlongsceneServerIDlongchannelbytemessagestringserverReceivedTimeDateTimetimeCreatedDateTime
Fields
AccountName
public readonly string AccountName
Field Value
Channel
Chat channel identifier. NOTE: Raw byte is used instead of an enum type for direct database compatibility. EF Core would require a value converter for enum mapping, adding complexity with no benefit since the channel value is persisted as a small integer column and rarely needs business logic branching in the data layer.
public readonly byte Channel
Field Value
CharacterID
public readonly long CharacterID
Field Value
CharacterName
public readonly string CharacterName
Field Value
ID
public readonly long ID
Field Value
Message
public readonly string Message
Field Value
SceneServerID
public readonly long SceneServerID
Field Value
ServerReceivedTime
public readonly DateTime ServerReceivedTime
Field Value
TimeCreated
public readonly DateTime TimeCreated
Field Value
WorldServerID
public readonly long WorldServerID