Table of Contents

Class Guild

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

Constructors

Guild(GuildAddress, IValue, GuildRepository)

public Guild(GuildAddress address, IValue bencoded, GuildRepository repository)

Parameters

address GuildAddress
bencoded IValue
repository GuildRepository

Guild(GuildAddress, AgentAddress, Address, GuildRepository)

public Guild(GuildAddress address, AgentAddress guildMasterAddress, Address validatorAddress, GuildRepository repository)

Parameters

address GuildAddress
guildMasterAddress AgentAddress
validatorAddress Address
repository GuildRepository

Fields

GuildMasterAddress

public readonly AgentAddress GuildMasterAddress

Field Value

AgentAddress

ValidatorAddress

public readonly Address ValidatorAddress

Field Value

Address

Properties

Address

public GuildAddress Address { get; }

Property Value

GuildAddress

Bencoded

public List Bencoded { get; }

Property Value

List

Repository

public GuildRepository Repository { get; }

Property Value

GuildRepository

Methods

ClaimReward(Address, long)

public void ClaimReward(Address validatorAddress, long height)

Parameters

validatorAddress Address
height long

Equals(Guild?)

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

public bool Equals(Guild? other)

Parameters

other Guild

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.