44 lines
1.9 KiB
C#
44 lines
1.9 KiB
C#
using FsToolbox.Cli.Tasks;
|
|
|
|
namespace FsToolbox.Cli
|
|
{
|
|
public partial class CustomTasks
|
|
{
|
|
#region Record AldiMember
|
|
|
|
/// <summary>
|
|
/// Aggregates store and member information for ALDI membership analysis.
|
|
/// </summary>
|
|
/// <param name="Store">The store participating in the membership relation.</param>
|
|
/// <param name="Member">The member associated with the store.</param>
|
|
private record AldiMember(RegionTasks.Store Store, StoreTasks.Member Member);
|
|
|
|
#endregion
|
|
|
|
#region Record StoreLogIntervalEntry
|
|
|
|
/// <summary>
|
|
/// Aggregates store log entry with computed time difference versus calendar interval.
|
|
/// </summary>
|
|
/// <param name="Store">The store for which the log entry applies.</param>
|
|
/// <param name="Entry">The store log entry.</param>
|
|
/// <param name="SecondsDifference">Seconds from performedAt to referenceDate.</param>
|
|
/// <param name="CalendarIntervalSeconds">Calendar interval in seconds.</param>
|
|
/// <param name="ExceedsInterval">Indicates whether the difference exceeds the calendar interval.</param>
|
|
private record StoreLogIntervalEntry(RegionTasks.Store Store, StoreTasks.StoreLogEntry Entry, double SecondsDifference, int CalendarIntervalSeconds, bool ExceedsInterval);
|
|
|
|
#endregion
|
|
|
|
#region Record StoreLogProfileEntry
|
|
|
|
/// <summary>
|
|
/// Aggregates store log information by profile and store.
|
|
/// </summary>
|
|
/// <param name="Profile">The foodsaver profile that performed the action.</param>
|
|
/// <param name="Store">The store for which the log entry applies.</param>
|
|
/// <param name="DateReference">The log entry date reference.</param>
|
|
private record StoreLogProfileEntry(StoreTasks.FoodsaverProfile Profile, RegionTasks.Store Store, DateTime? DateReference, DateTime? PerformedAt);
|
|
|
|
#endregion
|
|
}
|
|
} |