From 7ede95db7c93c63903966555dcf474427d8d0eda Mon Sep 17 00:00:00 2001 From: carteronm Date: Thu, 12 Mar 2026 16:09:17 +0100 Subject: [PATCH] Models --- Knots/DTO/Group/CreateGroupDto.cs | 8 ++++++++ Knots/DTO/Group/DeleteGroupDto.cs | 6 ++++++ Knots/DTO/Group/GetGroupDto.cs | 9 +++++++++ Knots/DTO/Group/UpdateGroupDto.cs | 9 +++++++++ Knots/DTO/Key/CreateKeyDto.cs | 6 ++++++ Knots/DTO/Key/DeleteKeyDto.cs | 6 ++++++ Knots/DTO/Key/GetKeyDto.cs | 7 +++++++ Knots/DTO/Message/CreateMessageDto.cs | 8 ++++++++ Knots/DTO/Message/DeleteMessageDto.cs | 6 ++++++ Knots/DTO/Message/GetMessageDto.cs | 8 ++++++++ Knots/DTO/Message/UpdateMessageDto.cs | 7 +++++++ Knots/DTO/Role/CreateRoleDto.cs | 6 ++++++ Knots/DTO/Role/DeleteRoleDto.cs | 6 ++++++ Knots/DTO/Role/GetRoleDto.cs | 6 ++++++ Knots/Knots.csproj | 4 ---- Knots/obj/Debug/net9.0/Knots.AssemblyInfo.cs | 2 +- Knots/obj/Debug/net9.0/Knots.AssemblyInfoInputs.cache | 2 +- 17 files changed, 100 insertions(+), 6 deletions(-) create mode 100644 Knots/DTO/Group/CreateGroupDto.cs create mode 100644 Knots/DTO/Group/DeleteGroupDto.cs create mode 100644 Knots/DTO/Group/GetGroupDto.cs create mode 100644 Knots/DTO/Group/UpdateGroupDto.cs create mode 100644 Knots/DTO/Key/CreateKeyDto.cs create mode 100644 Knots/DTO/Key/DeleteKeyDto.cs create mode 100644 Knots/DTO/Key/GetKeyDto.cs create mode 100644 Knots/DTO/Message/CreateMessageDto.cs create mode 100644 Knots/DTO/Message/DeleteMessageDto.cs create mode 100644 Knots/DTO/Message/GetMessageDto.cs create mode 100644 Knots/DTO/Message/UpdateMessageDto.cs create mode 100644 Knots/DTO/Role/CreateRoleDto.cs create mode 100644 Knots/DTO/Role/DeleteRoleDto.cs create mode 100644 Knots/DTO/Role/GetRoleDto.cs diff --git a/Knots/DTO/Group/CreateGroupDto.cs b/Knots/DTO/Group/CreateGroupDto.cs new file mode 100644 index 0000000..327d750 --- /dev/null +++ b/Knots/DTO/Group/CreateGroupDto.cs @@ -0,0 +1,8 @@ +namespace Knots.DTO.Group; + +public class CreateGroupDto +{ + public string? Nom { get; set; } + public int NombreMembres { get; set; } + public string? ProfilePicture { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Group/DeleteGroupDto.cs b/Knots/DTO/Group/DeleteGroupDto.cs new file mode 100644 index 0000000..5faa9c2 --- /dev/null +++ b/Knots/DTO/Group/DeleteGroupDto.cs @@ -0,0 +1,6 @@ +namespace Knots.DTO.Group; + +public class DeleteGroupDto +{ + public string? Id { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Group/GetGroupDto.cs b/Knots/DTO/Group/GetGroupDto.cs new file mode 100644 index 0000000..cc9f833 --- /dev/null +++ b/Knots/DTO/Group/GetGroupDto.cs @@ -0,0 +1,9 @@ +namespace Knots.DTO.Group; + +public class GetGroupDto +{ + public int Id { get; set; } + public string? Nom { get; set; } + public int NombreMembres { get; set; } + public string? ProfilePicture { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Group/UpdateGroupDto.cs b/Knots/DTO/Group/UpdateGroupDto.cs new file mode 100644 index 0000000..bf01672 --- /dev/null +++ b/Knots/DTO/Group/UpdateGroupDto.cs @@ -0,0 +1,9 @@ +namespace Knots.DTO.Group; + +public class UpdateGroupDto +{ + public int Id { get; set; } + public string? Nom { get; set; } + public int NombreMembres { get; set; } + public string? ProfilePicture { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Key/CreateKeyDto.cs b/Knots/DTO/Key/CreateKeyDto.cs new file mode 100644 index 0000000..0282cbb --- /dev/null +++ b/Knots/DTO/Key/CreateKeyDto.cs @@ -0,0 +1,6 @@ +namespace Knots.DTO.Key; + +public class CreateKeyDto +{ + public string? EnKey { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Key/DeleteKeyDto.cs b/Knots/DTO/Key/DeleteKeyDto.cs new file mode 100644 index 0000000..a08c83d --- /dev/null +++ b/Knots/DTO/Key/DeleteKeyDto.cs @@ -0,0 +1,6 @@ +namespace Knots.DTO.Key; + +public class DeleteKeyDto +{ + public int Id { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Key/GetKeyDto.cs b/Knots/DTO/Key/GetKeyDto.cs new file mode 100644 index 0000000..f4ffe0e --- /dev/null +++ b/Knots/DTO/Key/GetKeyDto.cs @@ -0,0 +1,7 @@ +namespace Knots.DTO.Key; + +public class GetKeyDto +{ + public int Id { get; set; } + public string? EnKey { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Message/CreateMessageDto.cs b/Knots/DTO/Message/CreateMessageDto.cs new file mode 100644 index 0000000..c07e671 --- /dev/null +++ b/Knots/DTO/Message/CreateMessageDto.cs @@ -0,0 +1,8 @@ +namespace Knots.DTO.Message; + +public class CreateMessageDto +{ + public string? Contenu { get; set; } + public DateTime Date { get; set; } + public Boolean Type { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Message/DeleteMessageDto.cs b/Knots/DTO/Message/DeleteMessageDto.cs new file mode 100644 index 0000000..4433379 --- /dev/null +++ b/Knots/DTO/Message/DeleteMessageDto.cs @@ -0,0 +1,6 @@ +namespace Knots.DTO.Message; + +public class DeleteMessageDto +{ + public int Id { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Message/GetMessageDto.cs b/Knots/DTO/Message/GetMessageDto.cs new file mode 100644 index 0000000..3348f08 --- /dev/null +++ b/Knots/DTO/Message/GetMessageDto.cs @@ -0,0 +1,8 @@ +namespace Knots.DTO.Message; + +public class GetMessageDto +{ + public string? Contenu { get; set; } + public DateTime Date { get; set; } + public Boolean Type { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Message/UpdateMessageDto.cs b/Knots/DTO/Message/UpdateMessageDto.cs new file mode 100644 index 0000000..4fbabda --- /dev/null +++ b/Knots/DTO/Message/UpdateMessageDto.cs @@ -0,0 +1,7 @@ +namespace Knots.DTO.Message; + +public class UpdateMessageDto +{ + public string? Contenu { get; set; } + public DateTime Date { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Role/CreateRoleDto.cs b/Knots/DTO/Role/CreateRoleDto.cs new file mode 100644 index 0000000..e09b100 --- /dev/null +++ b/Knots/DTO/Role/CreateRoleDto.cs @@ -0,0 +1,6 @@ +namespace Knots.DTO.Role; + +public class CreateRoleDto +{ + public string? Libelle { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Role/DeleteRoleDto.cs b/Knots/DTO/Role/DeleteRoleDto.cs new file mode 100644 index 0000000..eee1a5e --- /dev/null +++ b/Knots/DTO/Role/DeleteRoleDto.cs @@ -0,0 +1,6 @@ +namespace Knots.DTO.Role; + +public class DeleteRoleDto +{ + public int Id { get; set; } +} \ No newline at end of file diff --git a/Knots/DTO/Role/GetRoleDto.cs b/Knots/DTO/Role/GetRoleDto.cs new file mode 100644 index 0000000..4464cf2 --- /dev/null +++ b/Knots/DTO/Role/GetRoleDto.cs @@ -0,0 +1,6 @@ +namespace Knots.DTO.Role; + +public class GetRoleDto +{ + public string? Id { get; set; } +} \ No newline at end of file diff --git a/Knots/Knots.csproj b/Knots/Knots.csproj index cab13e8..f899835 100644 --- a/Knots/Knots.csproj +++ b/Knots/Knots.csproj @@ -19,10 +19,6 @@ - - - - diff --git a/Knots/obj/Debug/net9.0/Knots.AssemblyInfo.cs b/Knots/obj/Debug/net9.0/Knots.AssemblyInfo.cs index aea6c89..5d02ab2 100644 --- a/Knots/obj/Debug/net9.0/Knots.AssemblyInfo.cs +++ b/Knots/obj/Debug/net9.0/Knots.AssemblyInfo.cs @@ -13,7 +13,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Knots")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f2e4058b04fa558b746330577933ccad1a256320")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2258e5ad8e56b01ea799bd6859bf45e6499a9f5f")] [assembly: System.Reflection.AssemblyProductAttribute("Knots")] [assembly: System.Reflection.AssemblyTitleAttribute("Knots")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/Knots/obj/Debug/net9.0/Knots.AssemblyInfoInputs.cache b/Knots/obj/Debug/net9.0/Knots.AssemblyInfoInputs.cache index f110e25..f5d1813 100644 --- a/Knots/obj/Debug/net9.0/Knots.AssemblyInfoInputs.cache +++ b/Knots/obj/Debug/net9.0/Knots.AssemblyInfoInputs.cache @@ -1 +1 @@ -58ea72202b7406d81e7748acd4a38ae302713932c2e53e7a26e9bb316e982ba1 +1ec67d9f775d898443e3ca901e3936ca7eac382476d451d905e395f125dd8665