danbergeron3 / Le-Shop

Sahara eCommerce App Project
2 stars 0 forks source link

Create Database Class Stub #12

Closed DannyMacha25 closed 11 months ago

DannyMacha25 commented 12 months ago

This will be a class that interfaces with our Database to get item information

Some Functions

These Get Single Item Info

String getName(int itemId) float getPrice(int itemId) Bitmap getImage(int itemId) String getDescription(int itemId)

ItemUIElement createItemUIElement(int itemId) - Instead of calling this class from ItemUIElement, use this class to create an ItemUIElement

List createListItemUIElement(List ids) - Creates whole lotta elements

These Get Multiple Items (Probably return list of ids)

List getItemsPriceLowHigh() List getItemsPriceHighLow()

List getAllSmalls() List getAllMediums() List getAllLargers()