|
|
@ -2,7 +2,7 @@ package de.hs_fulda.ciip.projjpn; |
|
|
|
|
|
|
|
public class Item { |
|
|
|
|
|
|
|
private int price; |
|
|
|
private float price; |
|
|
|
// customerReview |
|
|
|
// productTitle |
|
|
|
// description |
|
|
@ -17,11 +17,11 @@ public class Item { |
|
|
|
availability = newAmount; |
|
|
|
} |
|
|
|
|
|
|
|
public void updatePrice(int price) { |
|
|
|
public void updatePrice(float price) { |
|
|
|
this.price = price; |
|
|
|
} |
|
|
|
|
|
|
|
public int getCurrentPrice() { |
|
|
|
public float getCurrentPrice() { |
|
|
|
return price; |
|
|
|
} |
|
|
|
} |