2024-04-01 01:07:44 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace RouteGuideDataModels.Models
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Интерфейс для модели маршрута
|
|
|
|
|
/// </summary>
|
2024-04-23 19:38:25 +04:00
|
|
|
|
public interface IRouteModel<T> : IId<T>
|
2024-04-01 01:07:44 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Название маршрута
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Name { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-04-01 02:43:20 +04:00
|
|
|
|
/// Идентификатор транспорта
|
2024-04-01 01:07:44 +04:00
|
|
|
|
/// </summary>
|
2024-04-23 19:38:25 +04:00
|
|
|
|
T TransportId { get; }
|
2024-04-01 01:07:44 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-04-01 02:43:20 +04:00
|
|
|
|
/// Коллекция остановок маршрута
|
2024-04-01 01:07:44 +04:00
|
|
|
|
/// </summary>
|
2024-04-23 19:38:25 +04:00
|
|
|
|
Dictionary<T, (IStopModel<T>, int)> RouteStops { get; }
|
2024-04-01 01:07:44 +04:00
|
|
|
|
}
|
|
|
|
|
}
|