Enums + Models
This commit is contained in:
parent
9d8ba7153c
commit
2c424c021d
@ -6,9 +6,4 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Enums\" />
|
||||
<Folder Include="Models\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
20
CarCenter/CarCenterDataModels/Enums/CarBrand.cs
Normal file
20
CarCenter/CarCenterDataModels/Enums/CarBrand.cs
Normal file
@ -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,
|
||||
}
|
||||
}
|
19
CarCenter/CarCenterDataModels/Enums/CarClass.cs
Normal file
19
CarCenter/CarCenterDataModels/Enums/CarClass.cs
Normal file
@ -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,
|
||||
}
|
||||
}
|
15
CarCenter/CarCenterDataModels/Enums/DriveTypes.cs
Normal file
15
CarCenter/CarCenterDataModels/Enums/DriveTypes.cs
Normal file
@ -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,
|
||||
}
|
||||
}
|
17
CarCenter/CarCenterDataModels/Enums/EquipmentPackage.cs
Normal file
17
CarCenter/CarCenterDataModels/Enums/EquipmentPackage.cs
Normal file
@ -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,
|
||||
}
|
||||
}
|
17
CarCenter/CarCenterDataModels/Enums/HelpDevices.cs
Normal file
17
CarCenter/CarCenterDataModels/Enums/HelpDevices.cs
Normal file
@ -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,
|
||||
}
|
||||
}
|
16
CarCenter/CarCenterDataModels/Enums/TirePackage.cs
Normal file
16
CarCenter/CarCenterDataModels/Enums/TirePackage.cs
Normal file
@ -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,
|
||||
}
|
||||
}
|
18
CarCenter/CarCenterDataModels/Enums/ToolKit.cs
Normal file
18
CarCenter/CarCenterDataModels/Enums/ToolKit.cs
Normal file
@ -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,
|
||||
}
|
||||
}
|
17
CarCenter/CarCenterDataModels/Models/IBundlingModel.cs
Normal file
17
CarCenter/CarCenterDataModels/Models/IBundlingModel.cs
Normal file
@ -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; }
|
||||
}
|
||||
}
|
20
CarCenter/CarCenterDataModels/Models/ICarModel.cs
Normal file
20
CarCenter/CarCenterDataModels/Models/ICarModel.cs
Normal file
@ -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<int, IBundlingModel> CarBundlings { get; }
|
||||
}
|
||||
}
|
17
CarCenter/CarCenterDataModels/Models/IFeatureModel.cs
Normal file
17
CarCenter/CarCenterDataModels/Models/IFeatureModel.cs
Normal file
@ -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; }
|
||||
}
|
||||
}
|
19
CarCenter/CarCenterDataModels/Models/IStorekeeperModel.cs
Normal file
19
CarCenter/CarCenterDataModels/Models/IStorekeeperModel.cs
Normal file
@ -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; }
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user