From e53f659b0256d76ba8b1d4973ec9d97f6f96628a Mon Sep 17 00:00:00 2001 From: VictoriaPresnyakova Date: Wed, 3 May 2023 18:27:37 +0400 Subject: [PATCH] models done --- .../Models/{n_route.cs => INrouteModel.cs} | 8 ++++++-- .../Models/{IStop.cs => IStopModel.cs} | 2 +- .../Models/{ITransportType.cs => ITransportTypeModel.cs} | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) rename TransportGuideDataModels/Models/{n_route.cs => INrouteModel.cs} (63%) rename TransportGuideDataModels/Models/{IStop.cs => IStopModel.cs} (86%) rename TransportGuideDataModels/Models/{ITransportType.cs => ITransportTypeModel.cs} (85%) diff --git a/TransportGuideDataModels/Models/n_route.cs b/TransportGuideDataModels/Models/INrouteModel.cs similarity index 63% rename from TransportGuideDataModels/Models/n_route.cs rename to TransportGuideDataModels/Models/INrouteModel.cs index 1d7ddf7..237f423 100644 --- a/TransportGuideDataModels/Models/n_route.cs +++ b/TransportGuideDataModels/Models/INrouteModel.cs @@ -6,10 +6,14 @@ using System.Threading.Tasks; namespace TransportGuideDataModels.Models { - public interface n_route + public interface INrouteModel { string Name { get;} string IP { get;} - } + int TransportTypeId { get;} + + Dictionary? StopNRoute { get; } + + } } diff --git a/TransportGuideDataModels/Models/IStop.cs b/TransportGuideDataModels/Models/IStopModel.cs similarity index 86% rename from TransportGuideDataModels/Models/IStop.cs rename to TransportGuideDataModels/Models/IStopModel.cs index a1f2c97..e25f1ab 100644 --- a/TransportGuideDataModels/Models/IStop.cs +++ b/TransportGuideDataModels/Models/IStopModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace TransportGuideDataModels.Models { - public interface IStop + public interface IStopModel { string Name { get; } } diff --git a/TransportGuideDataModels/Models/ITransportType.cs b/TransportGuideDataModels/Models/ITransportTypeModel.cs similarity index 85% rename from TransportGuideDataModels/Models/ITransportType.cs rename to TransportGuideDataModels/Models/ITransportTypeModel.cs index 106a399..fe956f3 100644 --- a/TransportGuideDataModels/Models/ITransportType.cs +++ b/TransportGuideDataModels/Models/ITransportTypeModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace TransportGuideDataModels.Models { - public interface ITransportType + public interface ITransportTypeModel { double price { get;} string name { get;}