aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Models/Post/ReadPostWebModel.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-01-30 11:31:21 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-01-30 11:31:21 +0200
commitff91162eb83dcf19402240ae8fa06f70cbf2b9e0 (patch)
tree2948559f7326c8221f799d4aaf794c5e00c06bd9 /src/DevHive.Web/Models/Post/ReadPostWebModel.cs
parentdde27f48caf455f9b342d68b0a4a5c95f302b9f7 (diff)
downloadDevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.tar
DevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.tar.gz
DevHive-ff91162eb83dcf19402240ae8fa06f70cbf2b9e0.zip
Separated comment models, controler and service from post's
Diffstat (limited to 'src/DevHive.Web/Models/Post/ReadPostWebModel.cs')
-rw-r--r--src/DevHive.Web/Models/Post/ReadPostWebModel.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/DevHive.Web/Models/Post/ReadPostWebModel.cs b/src/DevHive.Web/Models/Post/ReadPostWebModel.cs
new file mode 100644
index 0000000..1d2669e
--- /dev/null
+++ b/src/DevHive.Web/Models/Post/ReadPostWebModel.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using DevHive.Web.Models.Comment;
+using Microsoft.AspNetCore.Http;
+
+namespace DevHive.Web.Models.Post
+{
+ public class ReadPostWebModel
+ {
+ public Guid PostId { get; set; }
+
+ public string CreatorFirstName { get; set; }
+
+ public string CreatorLastName { get; set; }
+
+ public string CreatorUsername { get; set; }
+
+ public string Message { get; set; }
+
+ public DateTime TimeCreated { get; set; }
+
+ public List<ReadCommentWebModel> Comments { get; set; }
+
+ public List<IFormFile> Files { get; set; }
+ }
+}