19 lines
590 B
C#
19 lines
590 B
C#
using System;
|
|
|
|
namespace Svrnty.Sample.Projections;
|
|
|
|
/// <summary>
|
|
/// Read model for user statistics.
|
|
/// Built and maintained by UserStatisticsProjection.
|
|
/// </summary>
|
|
public sealed class UserStatistics
|
|
{
|
|
public int TotalUsersAdded { get; set; }
|
|
public int TotalUsersRemoved { get; set; }
|
|
public int CurrentUserCount => TotalUsersAdded - TotalUsersRemoved;
|
|
public DateTimeOffset LastUpdated { get; set; }
|
|
public int LastUserId { get; set; }
|
|
public string LastUserName { get; set; } = string.Empty;
|
|
public string LastUserEmail { get; set; } = string.Empty;
|
|
}
|