Files
jobs-jobs-jobs/src/JobsJobsJobs/Shared/Domain/Citizen.cs
Daniel J. Summers 1b2540e5d2 Add real name col / citizen name prop (#12)
Still need to work on allowing the column to be edited
2021-02-06 21:43:16 -05:00

23 lines
521 B
C#

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