aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <marcin@zelent.net>2021-02-21 14:13:49 +0100
committermarcinzelent <marcin@zelent.net>2019-12-20 14:21:37 +0100
commitb1eb36d3fbc5012b07489454a7452e8488507f6a (patch)
treef6a9e6e561eabde5b06366a6aeac78df123ca917 /Models/Topping.cs
Initial commitHEADmaster
Diffstat (limited to 'Models/Topping.cs')
-rw-r--r--Models/Topping.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/Models/Topping.cs b/Models/Topping.cs
new file mode 100644
index 0000000..ab273e3
--- /dev/null
+++ b/Models/Topping.cs
@@ -0,0 +1,29 @@
+namespace KukaPizza.Models
+{
+ public enum ToppingCategory
+ {
+ Vegetable,
+ Meat,
+ Spice,
+ Cheese,
+ SeaFood,
+ Sauce
+ }
+
+ public class Topping
+ {
+ private string _name;
+ private ToppingCategory _category;
+ private double _price;
+ public Topping(string name, ToppingCategory category, double price)
+ {
+ _name = name;
+ _category = category;
+ _price = price;
+ }
+
+ public string Name { get { return _name; } }
+ public ToppingCategory Category { get { return _category; } }
+ public double Price { get { return _price; } }
+ }
+} \ No newline at end of file