add header in profile page

This commit is contained in:
2024-10-30 23:28:47 +01:00
Unverified
parent 017b3ac185
commit 2f6eb33518
17 changed files with 213 additions and 31 deletions

View File

@@ -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