mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-17 04:58:46 +00:00
e060b2bcbb
Keep encrypted message content out of push payloads and improve cross-platform notification data. Add token registration validation and per-session unregister support, batch and deduplicate sends, remove only confirmed unregistered tokens, and protect queued retries with leases. Add delivery tests and document the push API and Firebase setup.
13 lines
304 B
C#
13 lines
304 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Govor.Contracts.Requests;
|
|
|
|
public class RegisterPushTokenRequest
|
|
{
|
|
[Required, StringLength(512)]
|
|
public string Token { get; set; } = string.Empty;
|
|
|
|
[Required, StringLength(50)]
|
|
public string Platform { get; set; } = string.Empty;
|
|
}
|