-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added menu and menu item classes, semi-defined their properties and a…
…ccessors.
- Loading branch information
Evan Langlais
authored and
Evan Langlais
committed
Mar 28, 2017
1 parent
513f0ab
commit 228bf11
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace EnigmaX.Classes | ||
{ | ||
public class Menu | ||
{ | ||
|
||
private string _title; | ||
private List<MenuItem> _items; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace EnigmaX.Classes | ||
{ | ||
|
||
public enum MenuItemType { appitizer, entre, dessert, drink, other }; | ||
public enum PrintingStationType { hot, cold }; | ||
|
||
public class MenuItem | ||
{ | ||
|
||
private int _id = 0; | ||
private string _title = ""; | ||
private string _description = ""; | ||
private float _price; | ||
private MenuItemType _itemType; | ||
private PrintingStationType _printingType; | ||
|
||
public MenuItem(int id, string title, string description, float price, MenuItemType itemType, PrintingStationType printingType) { | ||
_id = id; | ||
_title = title; | ||
_description = description; | ||
_price = price; | ||
_itemType = itemType; | ||
_printingType = printingType; | ||
} | ||
|
||
public string Title { | ||
get { | ||
return _title; | ||
} | ||
set { | ||
_title = value; | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters