Table of Contents

Class StakeRegularRewardSheet.RewardInfo

Namespace
Nekoyume.TableData
Assembly
Lib9c.dll
[Serializable]
public class StakeRegularRewardSheet.RewardInfo
Inheritance
StakeRegularRewardSheet.RewardInfo
Inherited Members

Constructors

RewardInfo(int, int, StakeRewardType, string, int?, decimal)

public RewardInfo(int itemId, int rate = 0, StakeRegularRewardSheet.StakeRewardType type = StakeRewardType.Item, string currencyTicker = null, int? currencyDecimalPlaces = null, decimal decimalRate = 0)

Parameters

itemId int
rate int
type StakeRegularRewardSheet.StakeRewardType
currencyTicker string
currencyDecimalPlaces int?
decimalRate decimal

RewardInfo(params string[])

public RewardInfo(params string[] fields)

Parameters

fields string[]

Fields

CurrencyDecimalPlaces

The decimal places of currency. This field is only used when Type is Currency.

public readonly int? CurrencyDecimalPlaces

Field Value

int?

CurrencyTicker

The ticker of currency. This field is only used when Type is Currency.

public readonly string CurrencyTicker

Field Value

string

DecimalRate

The decimal rate of reward. This field is used from V3(in blockchain state) or later. This field is set to Rate when ClaimStakeReward.V2 or earlier.

public readonly decimal DecimalRate

Field Value

decimal

ItemId

public readonly int ItemId

Field Value

int

Rate

The rate of reward.

[Obsolete("This field is used from `ClaimStakeReward.V2` or earlier. Use `DecimalRate` instead. Deprecated this field because we need to support decimal rate.")]
public readonly int Rate

Field Value

int

Tradable

public readonly bool Tradable

Field Value

bool

Type

public readonly StakeRegularRewardSheet.StakeRewardType Type

Field Value

StakeRegularRewardSheet.StakeRewardType

Methods

Equals(RewardInfo)

protected bool Equals(StakeRegularRewardSheet.RewardInfo other)

Parameters

other StakeRegularRewardSheet.RewardInfo

Returns

bool

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.