Class OrderFactory
- Namespace
- Lib9c.Model.Order
- Assembly
- Lib9c.dll
public static class OrderFactory
- Inheritance
-
OrderFactory
- Inherited Members
-
Methods
Create(Address, Address, Guid, FungibleAssetValue, Guid, long, ItemSubType, int)
public static Order Create(Address agentAddress, Address avatarAddress, Guid orderId, FungibleAssetValue price, Guid tradableId, long startedIndex, ItemSubType itemSubType, int count)
Parameters
agentAddress Address
avatarAddress Address
orderId Guid
price FungibleAssetValue
tradableId Guid
startedIndex long
itemSubType ItemSubType
count int
Returns
- Order
CreateFungibleOrder(Address, Address, Guid, FungibleAssetValue, Guid, long, int, ItemSubType)
public static FungibleOrder CreateFungibleOrder(Address sellerAgentAddress, Address sellerAvatarAddress, Guid orderId, FungibleAssetValue price, Guid itemId, long startedBlockIndex, int count, ItemSubType itemSubType)
Parameters
sellerAgentAddress Address
sellerAvatarAddress Address
orderId Guid
price FungibleAssetValue
itemId Guid
startedBlockIndex long
count int
itemSubType ItemSubType
Returns
- FungibleOrder
CreateNonFungibleOrder(Address, Address, Guid, FungibleAssetValue, Guid, long, ItemSubType)
public static NonFungibleOrder CreateNonFungibleOrder(Address sellerAgentAddress, Address sellerAvatarAddress, Guid orderId, FungibleAssetValue price, Guid itemId, long startedBlockIndex, ItemSubType itemSubType)
Parameters
sellerAgentAddress Address
sellerAvatarAddress Address
orderId Guid
price FungibleAssetValue
itemId Guid
startedBlockIndex long
itemSubType ItemSubType
Returns
- NonFungibleOrder
Deserialize(Dictionary)
public static Order Deserialize(Dictionary dictionary)
Parameters
dictionary Dictionary
Returns
- Order