Compare commits

...

4 Commits

12 changed files with 196 additions and 5 deletions

View File

@ -6,9 +6,4 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Folder Include="Enums\" />
<Folder Include="Models\" />
</ItemGroup>
</Project>

View 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,
}
}

View 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,
}
}

View 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,
}
}

View 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,
}
}

View 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,
}
}

View 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,
}
}

View 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,
}
}

View 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; }
}
}

View 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; }
}
}

View File

@ -0,0 +1,18 @@
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; }
int CarID { get; }
}
}

View 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; }
}
}