feat: add a wait before a notice can be accepted
This commit is contained in:
@@ -83,6 +83,7 @@ public class HeraldController : ControllerBase
|
||||
Title = n.Title,
|
||||
Body = n.Body,
|
||||
RequireAccept = n.RequireAccept,
|
||||
AcceptDelaySeconds = n.AcceptDelaySeconds,
|
||||
Revision = n.Revision
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -27,6 +27,11 @@ public class PendingNotice
|
||||
/// </summary>
|
||||
public bool RequireAccept { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the number of seconds the notice has to be on screen before it can be accepted.
|
||||
/// </summary>
|
||||
public int AcceptDelaySeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the revision to send back with the response.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user