|
@ -1,15 +1,25 @@ |
|
|
package de.hs_fulda.ciip.projjpn; |
|
|
package de.hs_fulda.ciip.projjpn; |
|
|
|
|
|
|
|
|
public class Item { |
|
|
public class Item { |
|
|
// @ToDo: customerReview |
|
|
|
|
|
|
|
|
|
|
|
private String productTitle; |
|
|
private String productTitle; |
|
|
private String description; |
|
|
private String description; |
|
|
private int availability = 0; |
|
|
private int availability = 0; |
|
|
private float price; |
|
|
private float price; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Creation of blank Item. |
|
|
|
|
|
*/ |
|
|
public Item() { |
|
|
public Item() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Creation of Item. |
|
|
|
|
|
* @param titel |
|
|
|
|
|
* @param description |
|
|
|
|
|
* @param quantity |
|
|
|
|
|
* @param price |
|
|
|
|
|
*/ |
|
|
public Item(String titel, |
|
|
public Item(String titel, |
|
|
String description, |
|
|
String description, |
|
|
int quantity, |
|
|
int quantity, |
|
@ -32,6 +42,7 @@ public class Item { |
|
|
availability = newAmount; |
|
|
availability = newAmount; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void updatePrice(float price) { |
|
|
public void updatePrice(float price) { |
|
|
this.price = price; |
|
|
this.price = price; |
|
|
} |
|
|
} |
|
|