forked from ksu-cis/bleakwind-buffet
-
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.
- Loading branch information
1 parent
db14327
commit f78e44f
Showing
39 changed files
with
1,257 additions
and
162 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
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
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,35 @@ | ||
using BleakwindBuffet.Data.Enums; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace BleakwindBuffet.Data.Drinks | ||
{ | ||
/// <summary> | ||
/// A base class representing common properities of drinks | ||
/// </summary> | ||
public abstract class Drink | ||
{ | ||
/// <summary> | ||
/// Size of a drink, all drinks have same size options (so virtual) | ||
/// </summary> | ||
protected Size size = Size.Small; | ||
public virtual Size Size { get { return size; } set { size = value; } } | ||
|
||
/// <summary> | ||
/// Price of a drink, always overriding these (so abstract) | ||
/// </summary> | ||
/// <value>In US Dollars</value> | ||
public abstract double Price { get; } | ||
|
||
/// <summary> | ||
/// Calories of a drink, always overriding these (so abstract) | ||
/// </summary> | ||
public abstract uint Calories { get; } | ||
|
||
/// <summary> | ||
/// Special instructions for a drink, always overriding these (so abstract) | ||
/// </summary> | ||
public abstract List<string> SpecialInstructions { get; } | ||
} | ||
} |
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
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
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
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
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
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,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace BleakwindBuffet.Data.Entrees | ||
{ | ||
/// <summary> | ||
/// A base class representing common properities of entrees | ||
/// </summary> | ||
public abstract class Entree | ||
{ | ||
/// <summary> | ||
/// Price of an entree | ||
/// </summary> | ||
/// <value>In US Dollars</value> | ||
public abstract double Price { get; } | ||
|
||
/// <summary> | ||
/// Calories of an entree | ||
/// </summary> | ||
public abstract uint Calories { get; } | ||
|
||
/// <summary> | ||
/// Special instructions for an entree | ||
/// </summary> | ||
public abstract List<string> SpecialInstructions { get; } | ||
} | ||
} |
Oops, something went wrong.