Skip to content

Commit

Permalink
Added menu and menu item classes, semi-defined their properties and a…
Browse files Browse the repository at this point in the history
…ccessors.
  • Loading branch information
Evan Langlais authored and Evan Langlais committed Mar 28, 2017
1 parent 513f0ab commit 228bf11
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
16 changes: 16 additions & 0 deletions EnigmaX/Classes/Menu.cs
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;

}
}
42 changes: 42 additions & 0 deletions EnigmaX/Classes/MenuItem.cs
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;
}
}

}
}
2 changes: 2 additions & 0 deletions EnigmaX/EnigmaX.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
<Compile Include="Classes\Employee.cs" />
<Compile Include="Classes\ICMessage.cs" />
<Compile Include="Classes\Intercom.cs" />
<Compile Include="Classes\Menu.cs" />
<Compile Include="Classes\MenuItem.cs" />
<Compile Include="Classes\Party.cs" />
<Compile Include="Classes\Station.cs" />
<Compile Include="Classes\Table.cs" />
Expand Down

0 comments on commit 228bf11

Please sign in to comment.