diff options
| author | ivar <i@oiee.no> | 2025-10-19 23:41:23 +0200 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2025-10-19 23:41:23 +0200 |
| commit | 3f4c0720e1e3421431e7baa20882a4a4512a7fab (patch) | |
| tree | 734ca81d7d0841d8863e3f523ebba14c282dc681 /src/Data/DTOs | |
| download | fagprove-3f4c0720e1e3421431e7baa20882a4a4512a7fab.tar.xz fagprove-3f4c0720e1e3421431e7baa20882a4a4512a7fab.zip | |
Diffstat (limited to 'src/Data/DTOs')
| -rw-r--r-- | src/Data/DTOs/CabinDto.cs | 16 | ||||
| -rw-r--r-- | src/Data/DTOs/LoginDto.cs | 8 | ||||
| -rw-r--r-- | src/Data/DTOs/ReservationDto.cs | 15 | ||||
| -rw-r--r-- | src/Data/DTOs/UpdatePasswordDto.cs | 8 | ||||
| -rw-r--r-- | src/Data/DTOs/UserDto.cs | 13 |
5 files changed, 60 insertions, 0 deletions
diff --git a/src/Data/DTOs/CabinDto.cs b/src/Data/DTOs/CabinDto.cs new file mode 100644 index 0000000..d1c1f8a --- /dev/null +++ b/src/Data/DTOs/CabinDto.cs @@ -0,0 +1,16 @@ +using System; + +namespace IOL.Fagprove.Data.DTOs +{ + public class CabinDto + { + public Guid Id { get; set; } + public string CategoryName { get; set; } + public Guid CategoryId { get; set; } + public string Name { get; set; } + public int? Capacity { get; set; } + public string Price { get; set; } + public string Description { get; set; } + public string Size { get; set; } + } +}
\ No newline at end of file diff --git a/src/Data/DTOs/LoginDto.cs b/src/Data/DTOs/LoginDto.cs new file mode 100644 index 0000000..1b0a4cb --- /dev/null +++ b/src/Data/DTOs/LoginDto.cs @@ -0,0 +1,8 @@ +namespace IOL.Fagprove.Data.DTOs +{ + public class LoginDto + { + public string Username { get; set; } + public string Password { get; set; } + } +}
\ No newline at end of file diff --git a/src/Data/DTOs/ReservationDto.cs b/src/Data/DTOs/ReservationDto.cs new file mode 100644 index 0000000..c3b1480 --- /dev/null +++ b/src/Data/DTOs/ReservationDto.cs @@ -0,0 +1,15 @@ +using System; +using IOL.Fagprove.Data.Enums; + +namespace IOL.Fagprove.Data.DTOs +{ + public class ReservationDto + { + public Guid Id { get; set; } + public string Name { get; set; } + public string From { get; set; } + public string To { get; set; } + public string Cabin { get; set; } + public ReservationStatus Status { get; set; } + } +}
\ No newline at end of file diff --git a/src/Data/DTOs/UpdatePasswordDto.cs b/src/Data/DTOs/UpdatePasswordDto.cs new file mode 100644 index 0000000..40ebd01 --- /dev/null +++ b/src/Data/DTOs/UpdatePasswordDto.cs @@ -0,0 +1,8 @@ +namespace IOL.Fagprove.Data.DTOs +{ + public class UpdatePasswordDto + { + public string Password { get; set; } + public string PasswordOnceMore { get; set; } + } +}
\ No newline at end of file diff --git a/src/Data/DTOs/UserDto.cs b/src/Data/DTOs/UserDto.cs new file mode 100644 index 0000000..26733d5 --- /dev/null +++ b/src/Data/DTOs/UserDto.cs @@ -0,0 +1,13 @@ +using System; +using IOL.Fagprove.Data.Enums; + +namespace IOL.Fagprove.Data.DTOs +{ + public class UserDto + { + public Guid Id { get; set; } + public string Name { get; set; } + public string Email { get; set; } + public UserRole Role { get; set; } + } +}
\ No newline at end of file |
