aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http/HttpTimeline.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-13 16:01:20 +0800
committerGitHub <noreply@github.com>2021-02-13 16:01:20 +0800
commit6a1495dc98f5ae5f89de58ed0ff0b500fc71ff5a (patch)
tree60cc46ed16a3d84b654cce4b3f364f5eccce52b0 /BackEnd/Timeline/Models/Http/HttpTimeline.cs
parentc3d0a5f88de0fbdf6bc584548832017087ab1248 (diff)
parentfd5f842e807ecf0d3a4c385fd0e5e3a52b0a79b2 (diff)
downloadtimeline-6a1495dc98f5ae5f89de58ed0ff0b500fc71ff5a.tar.gz
timeline-6a1495dc98f5ae5f89de58ed0ff0b500fc71ff5a.tar.bz2
timeline-6a1495dc98f5ae5f89de58ed0ff0b500fc71ff5a.zip
Merge pull request #273 from crupest/backend
User permission related field in http.
Diffstat (limited to 'BackEnd/Timeline/Models/Http/HttpTimeline.cs')
-rw-r--r--BackEnd/Timeline/Models/Http/HttpTimeline.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/BackEnd/Timeline/Models/Http/HttpTimeline.cs b/BackEnd/Timeline/Models/Http/HttpTimeline.cs
index 87ebf0bb..e3e46bd5 100644
--- a/BackEnd/Timeline/Models/Http/HttpTimeline.cs
+++ b/BackEnd/Timeline/Models/Http/HttpTimeline.cs
@@ -10,7 +10,7 @@ namespace Timeline.Models.Http
{
public HttpTimeline() { }
- public HttpTimeline(string uniqueId, string title, string name, DateTime nameLastModifed, string description, HttpUser owner, TimelineVisibility visibility, List<HttpUser> members, string? color, DateTime createTime, DateTime lastModified, bool isHighlight, bool isBookmark, HttpTimelineLinks links)
+ public HttpTimeline(string uniqueId, string title, string name, DateTime nameLastModifed, string description, HttpUser owner, TimelineVisibility visibility, List<HttpUser> members, string? color, DateTime createTime, DateTime lastModified, bool isHighlight, bool isBookmark, bool manageable, bool postable, HttpTimelineLinks links)
{
UniqueId = uniqueId;
Title = title;
@@ -25,6 +25,8 @@ namespace Timeline.Models.Http
LastModified = lastModified;
IsHighlight = isHighlight;
IsBookmark = isBookmark;
+ Manageable = manageable;
+ Postable = postable;
_links = links;
}
@@ -78,6 +80,8 @@ namespace Timeline.Models.Http
public bool IsHighlight { get; set; }
public bool IsBookmark { get; set; }
+ public bool Manageable { get; set; }
+ public bool Postable { get; set; }
#pragma warning disable CA1707 // Identifiers should not contain underscores
/// <summary>