Class RedeemCodeState
- Namespace
- Nekoyume.Model.State
- Assembly
- Lib9c.dll
[Serializable]
public class RedeemCodeState : State, IState
- Inheritance
-
RedeemCodeState
- Implements
-
- Inherited Members
-
Constructors
RedeemCodeState(Dictionary)
public RedeemCodeState(Dictionary serialized)
Parameters
serialized
Dictionary
RedeemCodeState(RedeemCodeListSheet)
public RedeemCodeState(RedeemCodeListSheet sheet)
Parameters
sheet
RedeemCodeListSheet
RedeemCodeState(Dictionary<PublicKey, Reward>)
public RedeemCodeState(Dictionary<PublicKey, RedeemCodeState.Reward> rewardMap)
Parameters
rewardMap
Dictionary<PublicKey, RedeemCodeState.Reward>
Fields
Address
public static readonly Address Address
Field Value
- Address
Properties
Map
public IReadOnlyDictionary<PublicKey, RedeemCodeState.Reward> Map { get; }
Property Value
- IReadOnlyDictionary<PublicKey, RedeemCodeState.Reward>
Methods
Redeem(string, Address)
public int Redeem(string code, Address userAddress)
Parameters
code
string
userAddress
Address
Returns
- int
Serialize()
public override IValue Serialize()
Returns
- IValue
Update(RedeemCodeListSheet)
public void Update(RedeemCodeListSheet sheet)
Parameters
sheet
RedeemCodeListSheet