aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-18 18:14:18 +0800
committerGitHub <noreply@github.com>2020-06-18 18:14:18 +0800
commit135f47e7477bb2a72c423145dcd286ae494fd3ed (patch)
treec4e27cac4b2057c645f031be12eda896b96aa435 /Timeline/Models
parent3dc9460798798e5ba155fae7b6afe84522c2c619 (diff)
parent2f91cce1c29ac4b9b49ca389b565c66199985f2d (diff)
downloadtimeline-135f47e7477bb2a72c423145dcd286ae494fd3ed.tar.gz
timeline-135f47e7477bb2a72c423145dcd286ae494fd3ed.tar.bz2
timeline-135f47e7477bb2a72c423145dcd286ae494fd3ed.zip
Merge pull request #111 from crupest/timeline-last-modified
Timeline last modified property.
Diffstat (limited to 'Timeline/Models')
-rw-r--r--Timeline/Models/Http/Timeline.cs3
-rw-r--r--Timeline/Models/Timeline.cs3
2 files changed, 6 insertions, 0 deletions
diff --git a/Timeline/Models/Http/Timeline.cs b/Timeline/Models/Http/Timeline.cs
index a942db1e..80e6e69d 100644
--- a/Timeline/Models/Http/Timeline.cs
+++ b/Timeline/Models/Http/Timeline.cs
@@ -28,12 +28,15 @@ namespace Timeline.Models.Http
{
public string UniqueId { get; set; } = default!;
public string Name { get; set; } = default!;
+ public DateTime NameLastModifed { get; set; } = default!;
public string Description { get; set; } = default!;
public UserInfo Owner { get; set; } = default!;
public TimelineVisibility Visibility { get; set; }
#pragma warning disable CA2227 // Collection properties should be read only
public List<UserInfo> Members { get; set; } = default!;
#pragma warning restore CA2227 // Collection properties should be read only
+ public DateTime CreateTime { get; set; } = default!;
+ public DateTime LastModified { get; set; } = default!;
#pragma warning disable CA1707 // Identifiers should not contain underscores
public TimelineInfoLinks _links { get; set; } = default!;
diff --git a/Timeline/Models/Timeline.cs b/Timeline/Models/Timeline.cs
index d4b3e849..3701ed35 100644
--- a/Timeline/Models/Timeline.cs
+++ b/Timeline/Models/Timeline.cs
@@ -72,12 +72,15 @@ namespace Timeline.Models
{
public string UniqueID { get; set; } = default!;
public string Name { get; set; } = default!;
+ public DateTime NameLastModified { get; set; } = default!;
public string Description { get; set; } = default!;
public User Owner { get; set; } = default!;
public TimelineVisibility Visibility { get; set; }
#pragma warning disable CA2227 // Collection properties should be read only
public List<User> Members { get; set; } = default!;
#pragma warning restore CA2227 // Collection properties should be read only
+ public DateTime CreateTime { get; set; } = default!;
+ public DateTime LastModified { get; set; } = default!;
}
public class TimelineChangePropertyRequest