Files
hrynco-notification-service/HrynCo.NotificationService.Web/Controllers/Admin/ViewModels/PushChannelEditViewModel.cs
T
agrynco 1631786ce2 feat(push): add service-owned firebase channels and delivery
Add push contracts, provider delivery and channel diagnostics. Link email channels to services and document migration and validation.

Ref: IT-1074
2026-10-24 12:31:35 +03:00

22 lines
777 B
C#

using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace HrynCo.NotificationService.Web.Controllers.Admin.ViewModels;
public sealed class PushChannelEditViewModel
{
public Guid Id { get; set; }
[Required]
public Guid? ServiceId { get; set; }
[Required, StringLength(30)]
public string FirebaseProjectId { get; set; } = string.Empty;
[StringLength(32768)]
public string? CredentialsJson { get; set; }
public bool IsActive { get; set; } = true;
[BindNever]
public IReadOnlyList<SelectListItem> Services { get; set; } = [];
public bool IsNew => Id == Guid.Empty;
public string PageTitle => IsNew ? "Create Push Channel" : "Edit Push Channel";
}