Class ShopState
This is a model class of shop state.
[Serializable]
public class ShopState : State, IState
- Inheritance
-
ShopState
- Implements
- Inherited Members
Constructors
ShopState()
public ShopState()
ShopState(Dictionary)
public ShopState(Dictionary serialized)
Parameters
serialized
Dictionary
Fields
Address
public static readonly Address Address
Field Value
- Address
Properties
Products
public IReadOnlyDictionary<Guid, ShopItem> Products { get; }
Property Value
Methods
Register(ShopItem)
public void Register(ShopItem shopItem)
Parameters
shopItem
ShopItem
Serialize()
public override IValue Serialize()
Returns
- IValue
TryGet(Address, Guid, out ShopItem)
public bool TryGet(Address sellerAgentAddress, Guid productId, out ShopItem shopItem)
Parameters
Returns
TryUnregister(Guid, out ShopItem)
public bool TryUnregister(Guid productId, out ShopItem unregisteredItem)
Parameters
Returns
Unregister(ShopItem)
public void Unregister(ShopItem shopItem)
Parameters
shopItem
ShopItem
Unregister(Guid)
public void Unregister(Guid productId)
Parameters
productId
Guid