JOBot/JOBot.TClient/Infrastructure/Extensions/GRpcModelsExtensions.cs
Lisoveliy a526dbf6c6 feat: implemented registration stage of preparation on PrepareUserState
implemented auth, added auth tools AcceptNotPreparedAttribute.cs, IAuthorizedTelegramCommand.cs
2025-07-12 01:52:16 +03:00

9 lines
321 B
C#

using JOBot.Proto;
namespace JOBot.TClient.Infrastructure.Extensions;
public static class GRpcModelsExtensions
{
public static bool IsPrepared(this GetUserResponse user) => user is { Eula: true, IsLogged: true } &&
!string.IsNullOrEmpty(user.CVUrl);
}