14 lines
500 B
C#
14 lines
500 B
C#
namespace PluginBuilder.ViewModels.Plugin;
|
|
|
|
public class PluginOwnersPageViewModel
|
|
{
|
|
public string PluginSlug { get; set; } = string.Empty;
|
|
public string CurrentUserId { get; set; } = string.Empty;
|
|
public bool IsPrimaryOwner { get; set; }
|
|
public List<OwnerVm> Owners { get; set; } = new();
|
|
|
|
public OwnerVm? PrimaryOwner => Owners.FirstOrDefault(o => o.IsPrimary);
|
|
}
|
|
|
|
public record OwnerVm(string UserId, bool IsPrimary, string? Email, string? AccountDetail, bool EmailConfirmed);
|