From 0c473d4484603021d651613d2d57d66ea80633df Mon Sep 17 00:00:00 2001 From: Viltskaa Date: Thu, 6 Apr 2023 17:38:35 +0400 Subject: [PATCH] Add data models --- Hotel/HotelDataModels/IId.cs | 6 ++++++ Hotel/HotelDataModels/Models/ICleaning.cs | 7 +++++++ Hotel/HotelDataModels/Models/ICleaningInstruments.cs | 6 ++++++ Hotel/HotelDataModels/Models/IGuest.cs | 8 ++++++++ Hotel/HotelDataModels/Models/IMaitre.cs | 10 ++++++++++ Hotel/HotelDataModels/Models/IReservation.cs | 9 +++++++++ Hotel/HotelDataModels/Models/IRoom.cs | 7 +++++++ README.md | 2 ++ 8 files changed, 55 insertions(+) create mode 100644 Hotel/HotelDataModels/IId.cs create mode 100644 Hotel/HotelDataModels/Models/ICleaning.cs create mode 100644 Hotel/HotelDataModels/Models/ICleaningInstruments.cs create mode 100644 Hotel/HotelDataModels/Models/IGuest.cs create mode 100644 Hotel/HotelDataModels/Models/IMaitre.cs create mode 100644 Hotel/HotelDataModels/Models/IReservation.cs create mode 100644 Hotel/HotelDataModels/Models/IRoom.cs diff --git a/Hotel/HotelDataModels/IId.cs b/Hotel/HotelDataModels/IId.cs new file mode 100644 index 0000000..65d325b --- /dev/null +++ b/Hotel/HotelDataModels/IId.cs @@ -0,0 +1,6 @@ +namespace HotelDataModels; + +public interface IId +{ + int Id { get; } +} \ No newline at end of file diff --git a/Hotel/HotelDataModels/Models/ICleaning.cs b/Hotel/HotelDataModels/Models/ICleaning.cs new file mode 100644 index 0000000..1a0a170 --- /dev/null +++ b/Hotel/HotelDataModels/Models/ICleaning.cs @@ -0,0 +1,7 @@ +namespace HotelDataModels.Models; + +public interface ICleaning : IId +{ + DateTime Date { get; } + int RoomId { get; } +} \ No newline at end of file diff --git a/Hotel/HotelDataModels/Models/ICleaningInstruments.cs b/Hotel/HotelDataModels/Models/ICleaningInstruments.cs new file mode 100644 index 0000000..47ed313 --- /dev/null +++ b/Hotel/HotelDataModels/Models/ICleaningInstruments.cs @@ -0,0 +1,6 @@ +namespace HotelDataModels.Models; + +public interface ICleaningInstruments : IId +{ + string Type { get; } +} \ No newline at end of file diff --git a/Hotel/HotelDataModels/Models/IGuest.cs b/Hotel/HotelDataModels/Models/IGuest.cs new file mode 100644 index 0000000..55ecf63 --- /dev/null +++ b/Hotel/HotelDataModels/Models/IGuest.cs @@ -0,0 +1,8 @@ +namespace HotelDataModels.Models; + +public interface IGuest : IId +{ + string Name { get; } + string SecondName { get; } + string LastName { get; } +} \ No newline at end of file diff --git a/Hotel/HotelDataModels/Models/IMaitre.cs b/Hotel/HotelDataModels/Models/IMaitre.cs new file mode 100644 index 0000000..84be2f8 --- /dev/null +++ b/Hotel/HotelDataModels/Models/IMaitre.cs @@ -0,0 +1,10 @@ +namespace HotelDataModels.Models; + +public interface IMaitre : IId +{ + string Name { get; } + string SecondName { get; } + string LastName { get; } + string Login { get; } + string Password { get; } +} \ No newline at end of file diff --git a/Hotel/HotelDataModels/Models/IReservation.cs b/Hotel/HotelDataModels/Models/IReservation.cs new file mode 100644 index 0000000..c2ddd42 --- /dev/null +++ b/Hotel/HotelDataModels/Models/IReservation.cs @@ -0,0 +1,9 @@ +namespace HotelDataModels.Models; + +public interface IReservation : IId +{ + DateTime StartDate { get; } + DateTime EndDate { get; } + int GuestId { get; } + int MaitreId { get; } +} \ No newline at end of file diff --git a/Hotel/HotelDataModels/Models/IRoom.cs b/Hotel/HotelDataModels/Models/IRoom.cs new file mode 100644 index 0000000..5e0b70a --- /dev/null +++ b/Hotel/HotelDataModels/Models/IRoom.cs @@ -0,0 +1,7 @@ +namespace HotelDataModels.Models; + +public interface IRoom : IId +{ + string Type { get; } + int Cost { get; } +} \ No newline at end of file diff --git a/README.md b/README.md index d86b0ed..9018c61 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # PIbd-22_Bazunov_AI_Hotel +Курсовая работа по дисциплине "Разработка профессиональных приложений". +Студент: Базунов А.И.