Table of Contents

Class ShopItem

Namespace
Nekoyume.Model.Item
Assembly
Lib9c.dll
[Serializable]
public class ShopItem
Inheritance
ShopItem
Inherited Members

Constructors

ShopItem(Dictionary)

public ShopItem(Dictionary serialized)

Parameters

serialized Dictionary

ShopItem(Address, Address, Guid, FungibleAssetValue, ITradableItem)

public ShopItem(Address sellerAgentAddress, Address sellerAvatarAddress, Guid productId, FungibleAssetValue price, ITradableItem tradableItem)

Parameters

sellerAgentAddress Address
sellerAvatarAddress Address
productId Guid
price FungibleAssetValue
tradableItem ITradableItem

ShopItem(Address, Address, Guid, FungibleAssetValue, long, ITradableItem, int)

public ShopItem(Address sellerAgentAddress, Address sellerAvatarAddress, Guid productId, FungibleAssetValue price, long expiredBlockIndex, ITradableItem tradableItem, int tradableItemCount = 1)

Parameters

sellerAgentAddress Address
sellerAvatarAddress Address
productId Guid
price FungibleAssetValue
expiredBlockIndex long
tradableItem ITradableItem
tradableItemCount int

ShopItem(SerializationInfo, StreamingContext)

protected ShopItem(SerializationInfo info, StreamingContext _)

Parameters

info SerializationInfo
_ StreamingContext

Fields

Codec

protected static readonly Codec Codec

Field Value

Codec

Costume

public readonly Costume Costume

Field Value

Costume

ExpiredBlockIndexKey

public const string ExpiredBlockIndexKey = "ebi"

Field Value

string

ItemUsable

public readonly ItemUsable ItemUsable

Field Value

ItemUsable

Price

public readonly FungibleAssetValue Price

Field Value

FungibleAssetValue

ProductId

public readonly Guid ProductId

Field Value

Guid

SellerAgentAddress

public readonly Address SellerAgentAddress

Field Value

Address

SellerAvatarAddress

public readonly Address SellerAvatarAddress

Field Value

Address

TradableFungibleItem

public readonly ITradableFungibleItem TradableFungibleItem

Field Value

ITradableFungibleItem

TradableFungibleItemCount

public readonly int TradableFungibleItemCount

Field Value

int

Properties

ExpiredBlockIndex

public long ExpiredBlockIndex { get; }

Property Value

long

Methods

Equals(ShopItem)

protected bool Equals(ShopItem other)

Parameters

other ShopItem

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.

GetObjectData(SerializationInfo, StreamingContext)

public void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

Serialize()

public IValue Serialize()

Returns

IValue

SerializeBackup1()

public IValue SerializeBackup1()

Returns

IValue