PIbd-21_MasenkinMS_SUBD_Rou.../RouteGuide/RouteGuideContracts/BindingModels/TransportBindingModel.cs
2024-04-01 02:43:20 +04:00

43 lines
1.3 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using RouteGuideDataModels.Enums;
using RouteGuideDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RouteGuideContracts.BindingModels
{
/// <summary>
/// Модель для передачи данных пользователя
/// в методы для сохранения данных для транспорта
/// </summary>
public class TransportBindingModel : ITransportModel
{
/// <summary>
/// Идентификатор
/// </summary>
public int Id { get; set; }
/// <summary>
/// Номерной знак
/// </summary>
public string License { get; set; } = string.Empty;
/// <summary>
/// Тип транспортного средства
/// </summary>
public TransportType Type { get; set; } = TransportType.Автобус;
/// <summary>
/// Вместимость (количество пассажиров)
/// </summary>
public int Capacity { get; set; }
/// <summary>
/// Идентификатор водителя
/// </summary>
public int DriverId { get; set; }
}
}