Table of Contents

Struct GuildApplicationData

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

One pending application to join a guild.

public struct GuildApplicationData
Inherited Members

Remarks

Only PENDING applications exist as rows. A decided application is deleted rather than flagged: the queue is a work list, an accepted application is already represented by the membership row it produced, and a declined one is represented by the log entry. Keeping decided rows would mean every read of the queue has to filter them and every unique constraint has to account for them.

Constructors

GuildApplicationData(long, long, long, string, DateTime)

Initializes a new application row.

public GuildApplicationData(long id, long guildID, long characterID, string message, DateTime timeCreated)

Parameters

id long

Primary key, or zero when not yet written.

guildID long

The guild applied to.

characterID long

The applying character.

message string

The applicant's message.

timeCreated DateTime

Submission time (UTC).

Fields

CharacterID

The applying character.

public readonly long CharacterID

Field Value

long

GuildID

The guild applied to.

public readonly long GuildID

Field Value

long

ID

Primary key. Zero for a row that has not been written yet.

public readonly long ID

Field Value

long

Message

The applicant's message. May be empty.

public readonly string Message

Field Value

string

TimeCreated

When the application was submitted (UTC).

public readonly DateTime TimeCreated

Field Value

DateTime