Initial Commit ...
This commit is contained in:
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using xIdentityModels.Constants;
|
||||
using xModels.Base;
|
||||
|
||||
namespace xIdentityModels.Dtos {
|
||||
public class XUserProfileDto : XBaseDto {
|
||||
[JsonProperty (
|
||||
"userId",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public string UserId { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"userName",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public string UserName { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"email",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public string Email { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"emailConfirmed",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public bool EmailConfirmed { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"phoneNumber",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"phoneNumberConfirmed",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public bool PhoneNumberConfirmed { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"firstName",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public string FirstName { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"lastName",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public string LastName { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"dateOfBirth",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public DateTime? DateOfBirth { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"creationDate",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public DateTime? CreationDate { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"lastLogin",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public DateTime? LastLogin { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"avatar",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public string Avatar { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"gender",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public XGender Gender { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"friendshipInfo",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public XFriendshipInfoDto FriendshipInfo { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"roles",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public ICollection<string> Roles { get; set; } = new HashSet<string> ();
|
||||
|
||||
[JsonProperty (
|
||||
"avatars",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public ICollection<XProfileImageDto> Avatars { get; set; } = new HashSet<XProfileImageDto> ();
|
||||
|
||||
[JsonProperty (
|
||||
"isEnable",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public bool IsEnable { get; set; }
|
||||
|
||||
[JsonProperty (
|
||||
"isBanned",
|
||||
Required = Required.Default,
|
||||
NullValueHandling = NullValueHandling.Ignore)]
|
||||
public bool IsBanned { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user