diff --git a/Forum/ForumContracts/ForumContracts.csproj b/Forum/ForumContracts/ForumContracts.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/Forum/ForumContracts/ForumContracts.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/Forum/ForumDataModels/ICategoryModel.cs b/Forum/ForumDataModels/ICategoryModel.cs new file mode 100644 index 0000000..64a9363 --- /dev/null +++ b/Forum/ForumDataModels/ICategoryModel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ForumDataModels +{ + public interface ICategoryModel : IId + { + string Name { get; } + } +} diff --git a/Forum/ForumDataModels/IId.cs b/Forum/ForumDataModels/IId.cs new file mode 100644 index 0000000..34c0a00 --- /dev/null +++ b/Forum/ForumDataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ForumDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/Forum/ForumDataModels/IMessageModel.cs b/Forum/ForumDataModels/IMessageModel.cs new file mode 100644 index 0000000..5c4046e --- /dev/null +++ b/Forum/ForumDataModels/IMessageModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ForumDataModels +{ + public interface IMessageModel : IId + { + string Text { get; } + DateTime Date { get; } + } +} diff --git a/Forum/ForumDataModels/IRoleModel.cs b/Forum/ForumDataModels/IRoleModel.cs new file mode 100644 index 0000000..43ea585 --- /dev/null +++ b/Forum/ForumDataModels/IRoleModel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ForumDataModels +{ + public interface IRoleModel : IId + { + string Name { get; } + } +} diff --git a/Forum/ForumDataModels/ITopicModel.cs b/Forum/ForumDataModels/ITopicModel.cs new file mode 100644 index 0000000..ab60620 --- /dev/null +++ b/Forum/ForumDataModels/ITopicModel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ForumDataModels +{ + public interface ITopicModel : IId + { + string Name { get; } + } +} diff --git a/Forum/ForumDataModels/IUserModel.cs b/Forum/ForumDataModels/IUserModel.cs new file mode 100644 index 0000000..f79625b --- /dev/null +++ b/Forum/ForumDataModels/IUserModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ForumDataModels +{ + public interface IUserModel : IId + { + string Username { get; } + string Email { get; } + string Password { get; } + DateTime RegistrationDate { get; } + } +}