mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-16 10:20:46 +02:00
22 lines
669 B
C#
22 lines
669 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace API.Schema.ActionsContext.Actions;
|
|
|
|
public sealed class DataMovedActionRecord(string action, DateTime performedAt, string from, string to) : ActionRecord(action, performedAt)
|
|
{
|
|
public DataMovedActionRecord(string from, string to) : this(DataMovedAction, DateTime.UtcNow, from, to) { }
|
|
|
|
/// <summary>
|
|
/// From path
|
|
/// </summary>
|
|
[StringLength(2048)]
|
|
public string From { get; init; } = from;
|
|
|
|
/// <summary>
|
|
/// To path
|
|
/// </summary>
|
|
[StringLength(2048)]
|
|
public string To { get; init; } = to;
|
|
|
|
public const string DataMovedAction = "Tranga.DataMoved";
|
|
} |