mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-17 10:50:45 +02:00
20 lines
613 B
C#
20 lines
613 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace API.Schema.ActionsContext.Actions;
|
|
|
|
public sealed class DataMovedActionRecord(ActionsEnum action, DateTime performedAt, string from, string to) : ActionRecord(action, performedAt)
|
|
{
|
|
public DataMovedActionRecord(string from, string to) : this(ActionsEnum.DataMoved, 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;
|
|
} |