Class StakeRegularRewardSheet.RewardInfo
[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
intrate
inttype
StakeRegularRewardSheet.StakeRewardTypecurrencyTicker
stringcurrencyDecimalPlaces
int?decimalRate
decimal
RewardInfo(params string[])
public RewardInfo(params string[] fields)
Parameters
fields
string[]
Fields
CurrencyDecimalPlaces
public readonly int? CurrencyDecimalPlaces
Field Value
- int?
CurrencyTicker
public readonly string CurrencyTicker
Field Value
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
ItemId
public readonly int ItemId
Field Value
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
Tradable
public readonly bool Tradable
Field Value
Type
public readonly StakeRegularRewardSheet.StakeRewardType Type
Field Value
Methods
Equals(RewardInfo)
protected bool Equals(StakeRegularRewardSheet.RewardInfo other)
Parameters
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.