Table of Contents

Class GuildParticipant

Namespace
Nekoyume.Model.Guild
Assembly
Lib9c.dll
public class GuildParticipant : IBencodable, IEquatable<GuildParticipant>
Inheritance
GuildParticipant
Implements
IBencodable
Inherited Members

Constructors

GuildParticipant(AgentAddress, IValue, GuildRepository)

public GuildParticipant(AgentAddress address, IValue bencoded, GuildRepository repository)

Parameters

address AgentAddress
bencoded IValue
repository GuildRepository

GuildParticipant(AgentAddress, GuildAddress, GuildRepository)

public GuildParticipant(AgentAddress address, GuildAddress guildAddress, GuildRepository repository)

Parameters

address AgentAddress
guildAddress GuildAddress
repository GuildRepository

Fields

GuildAddress

public readonly GuildAddress GuildAddress

Field Value

GuildAddress

Properties

Address

public AgentAddress Address { get; }

Property Value

AgentAddress

Bencoded

public List Bencoded { get; }

Property Value

List

DelegationPoolAddress

public Address DelegationPoolAddress { get; }

Property Value

Address

Repository

public GuildRepository Repository { get; }

Property Value

GuildRepository

RewardAddress

public Address RewardAddress { get; }

Property Value

Address

Methods

ClaimReward(Guild, long)

public void ClaimReward(Guild guild, long height)

Parameters

guild Guild
height long

Delegate(Guild, FungibleAssetValue, long)

public void Delegate(Guild guild, FungibleAssetValue fav, long height)

Parameters

guild Guild
fav FungibleAssetValue
height long

Equals(GuildParticipant?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(GuildParticipant? other)

Parameters

other GuildParticipant

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Redelegate(Guild, Guild, BigInteger, long)

public void Redelegate(Guild srcGuild, Guild dstGuild, BigInteger share, long height)

Parameters

srcGuild Guild
dstGuild Guild
share BigInteger
height long

Undelegate(Guild, BigInteger, long)

public void Undelegate(Guild guild, BigInteger share, long height)

Parameters

guild Guild
share BigInteger
height long