Table of Contents

Struct CharacterFriendData

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

Character friend data transfer object.

public struct CharacterFriendData : IVersioned<CharacterFriendData>
Implements
Inherited Members
Extension Methods

Constructors

CharacterFriendData(long, long, long)

Initializes a new instance without a version (defaults to 0) and not blocked.

public CharacterFriendData(long id, long characterID, long friendCharacterID)

Parameters

id long
characterID long
friendCharacterID long

CharacterFriendData(long, long, long, long, bool)

Initializes a new instance with all fields.

public CharacterFriendData(long id, long version, long characterID, long friendCharacterID, bool isBlocked)

Parameters

id long
version long
characterID long
friendCharacterID long
isBlocked bool

Fields

CharacterID

Owning character identifier.

public readonly long CharacterID

Field Value

long

FriendCharacterID

Target character identifier.

public readonly long FriendCharacterID

Field Value

long

ID

Database row identifier.

public readonly long ID

Field Value

long

IsBlocked

When false this is a friend relationship; when true the target is blocked.

public readonly bool IsBlocked

Field Value

bool

Version

Logical version for optimistic concurrency control.

public readonly long Version

Field Value

long

Methods

WithVersion(long)

Returns a new instance of this DTO with the specified version. Used by extension methods to create incremented copies.

public CharacterFriendData WithVersion(long newVersion)

Parameters

newVersion long

The new version value.

Returns

CharacterFriendData

A new instance with the updated version.