mirror of https://github.com/abpframework/abp
parent
fb3a05730a
commit
9f51b41ae0
@ -1,21 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<Import Project="..\..\common.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<AssemblyName>Volo.Abp.Users</AssemblyName>
|
||||
<PackageId>Volo.Abp.Users</PackageId>
|
||||
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
|
||||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
|
||||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
|
||||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
||||
<RootNamespace />
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Volo.Abp.Security\Volo.Abp.Security.csproj" />
|
||||
<ProjectReference Include="..\Volo.Abp.Settings\Volo.Abp.Settings.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -1,2 +0,0 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp71</s:String></wpf:ResourceDictionary>
|
@ -1,22 +0,0 @@
|
||||
using System;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace Volo.Abp.Users
|
||||
{
|
||||
public interface IUserInfo
|
||||
{
|
||||
Guid Id { get; }
|
||||
|
||||
string UserName { get; }
|
||||
|
||||
[CanBeNull]
|
||||
string Email { get; }
|
||||
|
||||
bool EmailConfirmed { get; }
|
||||
|
||||
[CanBeNull]
|
||||
string PhoneNumber { get; }
|
||||
|
||||
bool PhoneNumberConfirmed { get; }
|
||||
}
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
using System;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace Volo.Abp.Users
|
||||
{
|
||||
public class UserInfo : IUserInfo
|
||||
{
|
||||
public Guid Id { get; }
|
||||
|
||||
public string UserName { get; }
|
||||
|
||||
public string Email { get; }
|
||||
|
||||
public bool EmailConfirmed { get; }
|
||||
|
||||
public string PhoneNumber { get; }
|
||||
|
||||
public bool PhoneNumberConfirmed { get; }
|
||||
|
||||
public UserInfo(
|
||||
Guid id,
|
||||
[NotNull] string userName,
|
||||
[CanBeNull] string email = null,
|
||||
bool emailConfirmed = false,
|
||||
[CanBeNull] string phoneNumber = null,
|
||||
bool phoneNumberConfirmed = false)
|
||||
{
|
||||
Check.NotNull(userName, nameof(userName));
|
||||
|
||||
Id = id;
|
||||
UserName = userName;
|
||||
Email = email;
|
||||
EmailConfirmed = emailConfirmed;
|
||||
PhoneNumber = phoneNumber;
|
||||
PhoneNumberConfirmed = phoneNumberConfirmed;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue