类 ItemOrder
java.lang.Object
top.expli.schoolfish.ItemOrder
- 所有已实现的接口:
Order
常规物品的交易订单类.
-
构造器概要
-
方法概要
修饰符和类型方法说明Gets the buyer's ID for this order.Gets the item's ID for this order.void
Gets the snapshot of the ordered item.获取字符串形式的订单号int
Gets the order status for this item order.Gets the seller's ID for this order.void
setOrderStatus
(int orderStatus)
-
构造器详细资料
-
ItemOrder
Constructs an ItemOrder with the provided seller ID, buyer ID, item ID, and item snapshot.- 参数:
sellerID
- The seller's ID.buyerID
- The buyer's ID.itemID
- The ID of the item in the order. // * @param itemSnapshot The snapshot of the ordered item.
-
ItemOrder
protected ItemOrder()
-
-
方法详细资料
-
setOrderStatus
public void setOrderStatus(int orderStatus) - 指定者:
setOrderStatus
在接口中Order
-
getSellerID
Gets the seller's ID for this order.- 指定者:
getSellerID
在接口中Order
- 返回:
- The seller's ID.
-
getOrderID
获取字符串形式的订单号- 指定者:
getOrderID
在接口中Order
- 返回:
- 字符串形式的订单号,最后的 @ 之后的数字代表订单类型
-
getBuyerID
Gets the buyer's ID for this order.- 指定者:
getBuyerID
在接口中Order
- 返回:
- The buyer's ID.
-
getItemID
Gets the item's ID for this order. -
getItemSnapshot
public void getItemSnapshot()Gets the snapshot of the ordered item.- 指定者:
getItemSnapshot
在接口中Order
-
getOrderStat
public int getOrderStat()Gets the order status for this item order.- 指定者:
getOrderStat
在接口中Order
- 返回:
- The order status.
-