diff --git a/CarCenter/CarCenterDataModels/CarCenterDataModels.csproj b/CarCenter/CarCenterDataModels/CarCenterDataModels.csproj index 7264f69..132c02c 100644 --- a/CarCenter/CarCenterDataModels/CarCenterDataModels.csproj +++ b/CarCenter/CarCenterDataModels/CarCenterDataModels.csproj @@ -6,9 +6,4 @@ enable - - - - - diff --git a/CarCenter/CarCenterDataModels/Enums/CarBrand.cs b/CarCenter/CarCenterDataModels/Enums/CarBrand.cs new file mode 100644 index 0000000..72f1daa --- /dev/null +++ b/CarCenter/CarCenterDataModels/Enums/CarBrand.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterDataModels.Enums +{ + public enum CarBrand + { + Лада = 0, + Тойота = 1, + Опель = 2, + Митсубиси = 3, + Субару = 4, + Форд = 5, + Лексус = 6, + Шевроле = 7, + } +} diff --git a/CarCenter/CarCenterDataModels/Enums/CarClass.cs b/CarCenter/CarCenterDataModels/Enums/CarClass.cs new file mode 100644 index 0000000..632d8f8 --- /dev/null +++ b/CarCenter/CarCenterDataModels/Enums/CarClass.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterDataModels.Enums +{ + public enum CarClass + { + Седан = 0, + Хетчбек = 1, + Универсал = 2, + Кроссовер = 3, + Внедорожник = 4, + Купе = 5, + Кабриолет = 6, + } +} diff --git a/CarCenter/CarCenterDataModels/Enums/DriveTypes.cs b/CarCenter/CarCenterDataModels/Enums/DriveTypes.cs new file mode 100644 index 0000000..4cc547c --- /dev/null +++ b/CarCenter/CarCenterDataModels/Enums/DriveTypes.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterDataModels.Enums +{ + public enum DriveTypes + { + Полный = 0, + Передний = 1, + Задний = 2, + } +} diff --git a/CarCenter/CarCenterDataModels/Enums/EquipmentPackage.cs b/CarCenter/CarCenterDataModels/Enums/EquipmentPackage.cs new file mode 100644 index 0000000..5a89855 --- /dev/null +++ b/CarCenter/CarCenterDataModels/Enums/EquipmentPackage.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterDataModels.Enums +{ + public enum EquipmentPackage + { + УлучшенныеТормоза = 0, + ТурбоНабор = 1, + Компрессор = 2, + ДвигательV12 = 3, + ДвигательV16 = 4, + } +} diff --git a/CarCenter/CarCenterDataModels/Enums/HelpDevices.cs b/CarCenter/CarCenterDataModels/Enums/HelpDevices.cs new file mode 100644 index 0000000..da5ee1d --- /dev/null +++ b/CarCenter/CarCenterDataModels/Enums/HelpDevices.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterDataModels.Enums +{ + public enum HelpDevices + { + ABS = 0, + ECS = 1, + ПодушкиБезопасноти = 2, + GPS = 3, + Магнитола = 4, + } +} diff --git a/CarCenter/CarCenterDataModels/Enums/TirePackage.cs b/CarCenter/CarCenterDataModels/Enums/TirePackage.cs new file mode 100644 index 0000000..377f7fb --- /dev/null +++ b/CarCenter/CarCenterDataModels/Enums/TirePackage.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterDataModels.Enums +{ + public enum TirePackage + { + ЗимнийШипы = 0, + ЗимнийЛипучка = 1, + Летний = 2, + Демисезон = 3, + } +} diff --git a/CarCenter/CarCenterDataModels/Enums/ToolKit.cs b/CarCenter/CarCenterDataModels/Enums/ToolKit.cs new file mode 100644 index 0000000..6bc1bb5 --- /dev/null +++ b/CarCenter/CarCenterDataModels/Enums/ToolKit.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterDataModels.Enums +{ + public enum ToolKit + { + Чемоданчик = 0, + ЧемоданчикПро = 1, + Наборчик = 2, + НаборчикПро = 3, + ГаечныйНабор = 4, + ОтверточныйНабор = 5, + } +} diff --git a/CarCenter/CarCenterDataModels/Models/IBundlingModel.cs b/CarCenter/CarCenterDataModels/Models/IBundlingModel.cs new file mode 100644 index 0000000..b1b5d4f --- /dev/null +++ b/CarCenter/CarCenterDataModels/Models/IBundlingModel.cs @@ -0,0 +1,17 @@ +using CarCenterDataModels.Enums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterDataModels.Models +{ + public interface IBundlingModel : IId + { + EquipmentPackage EquipmentPackage { get; } + TirePackage TirePackage { get; } + ToolKit ToolKit { get; } + double Price { get; } + } +} diff --git a/CarCenter/CarCenterDataModels/Models/ICarModel.cs b/CarCenter/CarCenterDataModels/Models/ICarModel.cs new file mode 100644 index 0000000..fd7cc10 --- /dev/null +++ b/CarCenter/CarCenterDataModels/Models/ICarModel.cs @@ -0,0 +1,20 @@ +using CarCenterDataModels.Enums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterDataModels.Models +{ + public interface ICarModel : IId + { + CarBrand CarBrand { get; } + string Model { get; } + CarClass CarClass { get; } + int Year { get; } + double Price { get; } + int VINnumber { get; } + Dictionary CarBundlings { get; } + } +} diff --git a/CarCenter/CarCenterDataModels/Models/IFeatureModel.cs b/CarCenter/CarCenterDataModels/Models/IFeatureModel.cs new file mode 100644 index 0000000..f472138 --- /dev/null +++ b/CarCenter/CarCenterDataModels/Models/IFeatureModel.cs @@ -0,0 +1,17 @@ +using CarCenterDataModels.Enums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterDataModels.Models +{ + public interface IFeatureModel : IId + { + HelpDevices HelpDevice { get; } + string CabinColor { get; } + DriveTypes DriveType { get; } + double Price { get; } + } +} diff --git a/CarCenter/CarCenterDataModels/Models/IStorekeeperModel.cs b/CarCenter/CarCenterDataModels/Models/IStorekeeperModel.cs new file mode 100644 index 0000000..66a6db7 --- /dev/null +++ b/CarCenter/CarCenterDataModels/Models/IStorekeeperModel.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CarCenterDataModels.Models +{ + public interface IStorekeeperModel : IId + { + string Name { get; } + string Surname { get; } + string? Patronymic { get; } + string Password { get; } + string Email { get; } + int PhoneNumber { get; } + + } +}