2024-04-01 02:43:20 +04:00
|
|
|
|
using RouteGuideDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace RouteGuideContracts.BindingModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Модель для передачи данных пользователя
|
|
|
|
|
/// в методы для сохранения данных для маршрутов
|
|
|
|
|
/// </summary>
|
2024-04-23 19:38:25 +04:00
|
|
|
|
public class RouteBindingModel : IRouteModel<object>
|
2024-04-01 02:43:20 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификатор
|
|
|
|
|
/// </summary>
|
2024-04-23 19:38:25 +04:00
|
|
|
|
public object Id { get; set; }
|
2024-04-01 02:43:20 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Название маршрута
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификатор транспорта
|
|
|
|
|
/// </summary>
|
2024-04-23 19:38:25 +04:00
|
|
|
|
public object TransportId { get; set; }
|
2024-04-01 02:43:20 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Коллекция остановок маршрута
|
|
|
|
|
/// </summary>
|
2024-04-23 19:38:25 +04:00
|
|
|
|
public Dictionary<object, (IStopModel<object>, int)> RouteStops
|
2024-04-01 02:43:20 +04:00
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
}
|
|
|
|
|
}
|