Create Inventory.java
This commit is contained in:
@@ -0,0 +1,66 @@
|
|||||||
|
package com.example.petstoremobile.models;
|
||||||
|
|
||||||
|
|
||||||
|
public class Inventory {
|
||||||
|
private int inventoryId;
|
||||||
|
private String itemName;
|
||||||
|
private String category;
|
||||||
|
private int quantity;
|
||||||
|
private double unitPrice;
|
||||||
|
private String supplier;
|
||||||
|
|
||||||
|
// Constructor
|
||||||
|
public Inventory(int inventoryId, String itemName, String category, int quantity, double unitPrice, String supplier) {
|
||||||
|
this.inventoryId = inventoryId;
|
||||||
|
this.itemName = itemName;
|
||||||
|
this.category = category;
|
||||||
|
this.quantity = quantity;
|
||||||
|
this.unitPrice = unitPrice;
|
||||||
|
this.supplier = supplier;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Getters and setters
|
||||||
|
public int getInventoryId() {
|
||||||
|
return inventoryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getItemName() {
|
||||||
|
return itemName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setItemName(String itemName) {
|
||||||
|
this.itemName = itemName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCategory() {
|
||||||
|
return category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategory(String category) {
|
||||||
|
this.category = category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getQuantity() {
|
||||||
|
return quantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQuantity(int quantity) {
|
||||||
|
this.quantity = quantity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getUnitPrice() {
|
||||||
|
return unitPrice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnitPrice(double unitPrice) {
|
||||||
|
this.unitPrice = unitPrice;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSupplier() {
|
||||||
|
return supplier;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSupplier(String supplier) {
|
||||||
|
this.supplier = supplier;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user