Add real name col / citizen name prop (#12)

Still need to work on allowing the column to be edited
This commit is contained in:
2021-02-06 21:43:16 -05:00
parent 21ba35408e
commit 1b2540e5d2
10 changed files with 31 additions and 19 deletions

View File

@@ -8,8 +8,15 @@ namespace JobsJobsJobs.Shared
public record Citizen(
CitizenId Id,
string NaUser,
string DisplayName,
string? DisplayName,
string? RealName,
string ProfileUrl,
Instant JoinedOn,
Instant LastSeenOn);
Instant LastSeenOn)
{
/// <summary>
/// The user's name by which they should be known
/// </summary>
public string CitizenName => RealName ?? DisplayName ?? NaUser;
}
}