Struct CharacterFriendData
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
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
Fields
CharacterID
Owning character identifier.
public readonly long CharacterID
Field Value
FriendCharacterID
Target character identifier.
public readonly long FriendCharacterID
Field Value
ID
Database row identifier.
public readonly long ID
Field Value
IsBlocked
When false this is a friend relationship; when true the target is blocked.
public readonly bool IsBlocked
Field Value
Version
Logical version for optimistic concurrency control.
public readonly long Version
Field Value
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
newVersionlongThe new version value.
Returns
- CharacterFriendData
A new instance with the updated version.