Files

13 lines
495 B
C#
Raw Permalink Normal View History

using MongoDB.Entities;
namespace PrivaPub.Models.Federation
{
// a thread's collection on another server as we last read it whole: its ETag, sent back as If-None-Match so an unchanged
// thread costs its server one 304 (NodeBB's context carries a digest of its posts)
public class ThreadCollection : Entity
{
public string URI { get; set; }
public string ETag { get; set; }
public DateTime ReadAt { get; set; } = DateTime.UtcNow;//expires after Indexes.ThreadCollectionLifetime
}
}