diff --git a/FoodOrders/FoodOrdersDataModels/Class1.cs b/FoodOrders/FoodOrdersDataModels/Class1.cs deleted file mode 100644 index fdd344c..0000000 --- a/FoodOrders/FoodOrdersDataModels/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace FoodOrdersDataModels -{ - public class Class1 - { - - } -} \ No newline at end of file diff --git a/FoodOrders/FoodOrdersDataModels/IComponentModel.cs b/FoodOrders/FoodOrdersDataModels/IComponentModel.cs new file mode 100644 index 0000000..2e2e443 --- /dev/null +++ b/FoodOrders/FoodOrdersDataModels/IComponentModel.cs @@ -0,0 +1,9 @@ + +namespace FoodOrdersDataModels.Models +{ + public interface IComponentModel : IId + { + string ComponentName { get; } + double Cost { get; } + } +} diff --git a/FoodOrders/FoodOrdersDataModels/IId.cs b/FoodOrders/FoodOrdersDataModels/IId.cs new file mode 100644 index 0000000..19763e1 --- /dev/null +++ b/FoodOrders/FoodOrdersDataModels/IId.cs @@ -0,0 +1,8 @@ + +namespace FoodOrdersDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/FoodOrders/FoodOrdersDataModels/IOrderModel.cs b/FoodOrders/FoodOrdersDataModels/IOrderModel.cs new file mode 100644 index 0000000..084cb40 --- /dev/null +++ b/FoodOrders/FoodOrdersDataModels/IOrderModel.cs @@ -0,0 +1,14 @@ +using FoodOrdersDataModels.Enums; + +namespace FoodOrdersDataModels.Models +{ + public interface IOrderModel : IId + { + int ProductId { get; } + int Count { get; } + double Sum { get; } + OrderStatus Status { get; } + DateTime DateCreate { get; } + DateTime? DateImplement { get; } + } +} diff --git a/FoodOrders/FoodOrdersDataModels/IProductModel.cs b/FoodOrders/FoodOrdersDataModels/IProductModel.cs new file mode 100644 index 0000000..ba632eb --- /dev/null +++ b/FoodOrders/FoodOrdersDataModels/IProductModel.cs @@ -0,0 +1,10 @@ + +namespace FoodOrdersDataModels.Models +{ + public interface IProductModel : IId + { + string ProductName { get; } + double Price { get; } + Dictionary ProductComponents { get; } + } +} diff --git a/FoodOrders/FoodOrdersDataModels/OrderStatus.cs b/FoodOrders/FoodOrdersDataModels/OrderStatus.cs new file mode 100644 index 0000000..1d9b0ed --- /dev/null +++ b/FoodOrders/FoodOrdersDataModels/OrderStatus.cs @@ -0,0 +1,11 @@ +namespace FoodOrdersDataModels.Enums +{ + public enum OrderStatus + { + Неизвестен = -1, + Принят = 0, + Выполняется = 1, + Готов = 2, + Выдан = 3 + } +} \ No newline at end of file