using System; using Volo.Abp.Data; using Volo.Abp.Identity; namespace Sozsoft.Platform.Extensions; public static class AbpIdentityUserExtensions { public static string GetFullName(this IdentityUser user) { return $"{user.Name} {user.Surname}".Trim(); } //IsVerified public static void SetIsVerified(this IdentityUser user, bool isVerified) { user.SetProperty(PlatformConsts.AbpIdentity.User.IsVerified, isVerified); } public static bool GetIsVerified(this IdentityUser user) { return user.GetProperty(PlatformConsts.AbpIdentity.User.IsVerified); } //Login End Date public static void SetLoginEndDate(this IdentityUser user, DateTime? value) { user.SetProperty(PlatformConsts.AbpIdentity.User.LoginEndDate, value); } public static DateTime? GetLoginEndDate(this IdentityUser user) { return user.GetProperty(PlatformConsts.AbpIdentity.User.LoginEndDate); } //Rocket Username public static void SetRocketUsername(this IdentityUser user, string rocketUsername) { user.SetProperty(PlatformConsts.AbpIdentity.User.RocketUsername, rocketUsername); } public static string GetRocketUsername(this IdentityUser user) { return user.GetProperty(PlatformConsts.AbpIdentity.User.RocketUsername); } }