Table of Contents

Class ShopState

Namespace
Nekoyume.Model.State
Assembly
Lib9c.dll

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

IReadOnlyDictionary<Guid, ShopItem>

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

sellerAgentAddress Address
productId Guid
shopItem ShopItem

Returns

bool

TryUnregister(Guid, out ShopItem)

public bool TryUnregister(Guid productId, out ShopItem unregisteredItem)

Parameters

productId Guid
unregisteredItem ShopItem

Returns

bool

Unregister(ShopItem)

public void Unregister(ShopItem shopItem)

Parameters

shopItem ShopItem

Unregister(Guid)

public void Unregister(Guid productId)

Parameters

productId Guid