Table of Contents

Struct ChatData

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

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

id long
characterID long
worldServerID long
sceneServerID long
channel byte
message string
serverReceivedTime DateTime
timeCreated DateTime

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

id long
characterID long
characterName string
accountName string
worldServerID long
sceneServerID long
channel byte
message string
serverReceivedTime DateTime
timeCreated DateTime

Fields

AccountName

public readonly string AccountName

Field Value

string

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

byte

CharacterID

public readonly long CharacterID

Field Value

long

CharacterName

public readonly string CharacterName

Field Value

string

ID

public readonly long ID

Field Value

long

Message

public readonly string Message

Field Value

string

SceneServerID

public readonly long SceneServerID

Field Value

long

ServerReceivedTime

public readonly DateTime ServerReceivedTime

Field Value

DateTime

TimeCreated

public readonly DateTime TimeCreated

Field Value

DateTime

WorldServerID

public readonly long WorldServerID

Field Value

long