java.lang.Object
com.shr4pnel.schemas.BuyStockHelper
A schema, used to serialize JSON. This serializes GET requests which are used by the backdoor client when adding new items to the database.
- Since:
- v0.1.0
- Author:
- shrapnelnet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetpNum()Getter for the fieldpNum.intGetter for the fieldquantity.voidSetter for the fieldpNum.voidsetQuantity(int quantity) Setter for the fieldquantity.
-
Field Details
-
pNum
-
quantity
public int quantity
-
-
Constructor Details
-
BuyStockHelper
Constructor for BuyStockHelper.
- Parameters:
pNum- aStringobjectquantity- a int
-
-
Method Details
-
getpNum
Getter for the field
pNum.- Returns:
- a
Stringobject
-
setpNum
Setter for the field
pNum.- Parameters:
pNum- aStringobject
-
getQuantity
public int getQuantity()Getter for the field
quantity.- Returns:
- a int
-
setQuantity
public void setQuantity(int quantity) Setter for the field
quantity.- Parameters:
quantity- a int
-