From 7e414fb4a09e6d35fa32d48fdba38a537ffe1d23 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 31 Aug 2020 22:39:18 +0800 Subject: Post info now contain data etag. --- Timeline/Models/Http/Timeline.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Timeline/Models/Http/Timeline.cs') diff --git a/Timeline/Models/Http/Timeline.cs b/Timeline/Models/Http/Timeline.cs index 3596af18..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. /// public string? Url { get; set; } + /// + /// If post has data (currently it means it's a image post), this is the data etag. + /// + public string? ETag { get; set; } } /// @@ -192,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 -- cgit v1.2.3