Class ShopItem
[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
AddresssellerAvatarAddress
AddressproductId
Guidprice
FungibleAssetValuetradableItem
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
AddresssellerAvatarAddress
AddressproductId
Guidprice
FungibleAssetValueexpiredBlockIndex
longtradableItem
ITradableItemtradableItemCount
int
ShopItem(SerializationInfo, StreamingContext)
protected ShopItem(SerializationInfo info, StreamingContext _)
Parameters
Fields
Codec
protected static readonly Codec Codec
Field Value
- Codec
Costume
public readonly Costume Costume
Field Value
ExpiredBlockIndexKey
public const string ExpiredBlockIndexKey = "ebi"
Field Value
ItemUsable
public readonly ItemUsable ItemUsable
Field Value
Price
public readonly FungibleAssetValue Price
Field Value
- FungibleAssetValue
ProductId
public readonly Guid ProductId
Field Value
SellerAgentAddress
public readonly Address SellerAgentAddress
Field Value
- Address
SellerAvatarAddress
public readonly Address SellerAvatarAddress
Field Value
- Address
TradableFungibleItem
public readonly ITradableFungibleItem TradableFungibleItem
Field Value
TradableFungibleItemCount
public readonly int TradableFungibleItemCount
Field Value
Properties
ExpiredBlockIndex
public long ExpiredBlockIndex { get; }
Property Value
Methods
Equals(ShopItem)
protected bool Equals(ShopItem other)
Parameters
other
ShopItem
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.
GetObjectData(SerializationInfo, StreamingContext)
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfocontext
StreamingContext
Serialize()
public IValue Serialize()
Returns
- IValue
SerializeBackup1()
public IValue SerializeBackup1()
Returns
- IValue