From 61f3e523835230925c5f29f591e2bff422b20633 Mon Sep 17 00:00:00 2001 From: Nikitha Date: Thu, 12 Mar 2026 20:53:10 -0600 Subject: [PATCH] Create Inventory.java --- .../petstoremobile/models/Inventory.java | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 app/src/main/java/com/example/petstoremobile/models/Inventory.java diff --git a/app/src/main/java/com/example/petstoremobile/models/Inventory.java b/app/src/main/java/com/example/petstoremobile/models/Inventory.java new file mode 100644 index 00000000..7aacd2df --- /dev/null +++ b/app/src/main/java/com/example/petstoremobile/models/Inventory.java @@ -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; + } +}