diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-20 23:57:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 23:57:47 +0800 |
commit | a585c6e35829e9f2b4b0b8ce8c6b395e5ea84f2c (patch) | |
tree | 3d20f696dd097b86eeba497baf8dc1baf966626c /Timeline/Entities/UserAvatar.cs | |
parent | 4af6c82f34dd79d7a1ca348f167e01570951e3ad (diff) | |
parent | f657105462b7a8c528b39005d81ffe6141f476a5 (diff) | |
download | timeline-a585c6e35829e9f2b4b0b8ce8c6b395e5ea84f2c.tar.gz timeline-a585c6e35829e9f2b4b0b8ce8c6b395e5ea84f2c.tar.bz2 timeline-a585c6e35829e9f2b4b0b8ce8c6b395e5ea84f2c.zip |
Merge pull request #47 from crupest/avatar-enhance
Use etag for avatar cache.
Diffstat (limited to 'Timeline/Entities/UserAvatar.cs')
-rw-r--r-- | Timeline/Entities/UserAvatar.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Timeline/Entities/UserAvatar.cs b/Timeline/Entities/UserAvatar.cs index b941445d..d549aea5 100644 --- a/Timeline/Entities/UserAvatar.cs +++ b/Timeline/Entities/UserAvatar.cs @@ -16,6 +16,9 @@ namespace Timeline.Entities [Column("type")]
public string Type { get; set; }
+ [Column("etag"), MaxLength(30)]
+ public string ETag { get; set; }
+
[Column("last_modified"), Required]
public DateTime LastModified { get; set; }
@@ -28,6 +31,7 @@ namespace Timeline.Entities Id = 0,
Data = null,
Type = null,
+ ETag = null,
LastModified = lastModified
};
}
|