mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
// ==========================================================================
|
|
// HistoryEventDto.cs
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex Group
|
|
// All rights reserved.
|
|
// ==========================================================================
|
|
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using NodaTime;
|
|
|
|
namespace Squidex.Areas.Api.Controllers.History.Models
|
|
{
|
|
public sealed class HistoryEventDto
|
|
{
|
|
/// <summary>
|
|
/// The message of the event.
|
|
/// </summary>
|
|
[Required]
|
|
public string Message { get; set; }
|
|
|
|
/// <summary>
|
|
/// The user who called the action.
|
|
/// </summary>
|
|
[Required]
|
|
public string Actor { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets a unique id for the event.
|
|
/// </summary>
|
|
public Guid EventId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The time when the event happened.
|
|
/// </summary>
|
|
public Instant Created { get; set; }
|
|
|
|
/// <summary>
|
|
/// The version identifier.
|
|
/// </summary>
|
|
public long Version { get; set; }
|
|
}
|
|
}
|
|
|