Table of Contents

Class TradableMaterial

Namespace
Nekoyume.Model.Item
Assembly
Lib9c.dll
[Serializable]
public class TradableMaterial : Material, ISerializable, ITradableFungibleItem, ITradableItem, IFungibleItem, IItem, IState, ICloneable
Inheritance
TradableMaterial
Implements
Inherited Members

Constructors

TradableMaterial(Dictionary)

public TradableMaterial(Dictionary serialized)

Parameters

serialized Dictionary

TradableMaterial(Row)

public TradableMaterial(MaterialItemSheet.Row data)

Parameters

data MaterialItemSheet.Row

TradableMaterial(SerializationInfo, StreamingContext)

protected TradableMaterial(SerializationInfo info, StreamingContext _)

Parameters

info SerializationInfo
_ StreamingContext

Properties

RequiredBlockIndex

public long RequiredBlockIndex { get; set; }

Property Value

long

TradableId

public Guid TradableId { get; }

Property Value

Guid

Methods

Clone()

Creates a new object that is a copy of the current instance.

public object Clone()

Returns

object

A new object that is a copy of this instance.

DeriveTradableId(HashDigest<SHA256>)

public static Guid DeriveTradableId(HashDigest<SHA256> fungibleId)

Parameters

fungibleId HashDigest<SHA256>

Returns

Guid

Equals(TradableMaterial)

protected bool Equals(TradableMaterial other)

Parameters

other TradableMaterial

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.

Serialize()

public override IValue Serialize()

Returns

IValue

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.