add header in profile page
This commit is contained in:
@@ -14,6 +14,15 @@ public class AccountResponse : Account
|
||||
[JsonPropertyName("gender")]
|
||||
public GenderResponse? Gender { get; set; }
|
||||
|
||||
[JsonPropertyName("last_active")]
|
||||
public DateTime LastActive { get; set; }
|
||||
|
||||
[JsonPropertyName("creation_date")]
|
||||
public DateTime CreationDate { get; set; }
|
||||
|
||||
[JsonPropertyName("is_admin")]
|
||||
public bool IsAdmin { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -31,6 +40,9 @@ public class AccountResponse : Account
|
||||
Email = account.Email;
|
||||
Description = account.Description;
|
||||
Gender = account.Gender is not null ? new GenderResponse(account.Gender) : null;
|
||||
LastActive = account.LastActive;
|
||||
CreationDate = account.CreationDate;
|
||||
IsAdmin = account.IsAdmin;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user