diff options
author | crupest <crupest@outlook.com> | 2020-08-31 22:49:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-31 22:49:57 +0800 |
commit | 3e7e533016b04df4993df66842409cf5857983ee (patch) | |
tree | 187696f3303241177820ca65fa441655a03de257 /Timeline/Models/Http/Timeline.cs | |
parent | b2404a381178e962a09af018d3c0031f1918991a (diff) | |
parent | 7e414fb4a09e6d35fa32d48fdba38a537ffe1d23 (diff) | |
download | timeline-3e7e533016b04df4993df66842409cf5857983ee.tar.gz timeline-3e7e533016b04df4993df66842409cf5857983ee.tar.bz2 timeline-3e7e533016b04df4993df66842409cf5857983ee.zip |
Merge pull request #158 from crupest/dev
Develop new features of back end.
Diffstat (limited to 'Timeline/Models/Http/Timeline.cs')
-rw-r--r-- | Timeline/Models/Http/Timeline.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Timeline/Models/Http/Timeline.cs b/Timeline/Models/Http/Timeline.cs index 6498fa74..a81b33f5 100644 --- a/Timeline/Models/Http/Timeline.cs +++ b/Timeline/Models/Http/Timeline.cs @@ -25,6 +25,10 @@ namespace Timeline.Models.Http /// If post is of image type. This is the image url.
/// </summary>
public string? Url { get; set; }
+ /// <summary>
+ /// If post has data (currently it means it's a image post), this is the data etag.
+ /// </summary>
+ public string? ETag { get; set; }
}
/// <summary>
@@ -68,6 +72,10 @@ namespace Timeline.Models.Http /// </summary>
public string UniqueId { get; set; } = default!;
/// <summary>
+ /// Title.
+ /// </summary>
+ public string Title { get; set; } = default!;
+ /// <summary>
/// Name of timeline.
/// </summary>
public string Name { get; set; } = default!;
@@ -188,7 +196,8 @@ namespace Timeline.Models.Http Url = urlHelper.ActionLink(
action: nameof(TimelineController.PostDataGet),
controller: nameof(TimelineController)[0..^nameof(Controller).Length],
- values: new { Name = source.TimelineName, Id = source.Id })
+ values: new { Name = source.TimelineName, Id = source.Id }),
+ ETag = $"\"{imageContent.DataTag}\""
};
}
else
|