You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
564 B
15 lines
564 B
namespace StabilityMatrix.Core.Models.Api.Lykos; |
|
|
|
public record GetUserResponse |
|
{ |
|
public required string Id { get; init; } |
|
public required LykosAccount Account { get; init; } |
|
public required HashSet<LykosRole> UserRoles { get; init; } |
|
public string? PatreonId { get; init; } |
|
public bool IsEmailVerified { get; init; } |
|
|
|
public bool IsActiveSupporter => |
|
UserRoles.Contains(LykosRole.PatreonSupporter) |
|
|| UserRoles.Contains(LykosRole.Insider) |
|
|| (UserRoles.Contains(LykosRole.Developer) && PatreonId is not null); |
|
}
|
|
|