Headless CMS and Content Managment Hub
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.
 
 
 
 
 

55 lines
1.6 KiB

// ==========================================================================
// ContentDto.cs
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex Group
// All rights reserved.
// ==========================================================================
using System;
using System.ComponentModel.DataAnnotations;
using Squidex.Infrastructure;
namespace Squidex.Controllers.ContentApi.Models
{
public sealed class ContentDto
{
/// <summary>
/// The if of the content element.
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// The user that has created the content element.
/// </summary>
[Required]
public RefToken CreatedBy { get; set; }
/// <summary>
/// The user that has updated the content element.
/// </summary>
[Required]
public RefToken LastModifiedBy { get; set; }
/// <summary>
/// The data of the content item.
/// </summary>
[Required]
public object Data { get; set; }
/// <summary>
/// The date and time when the content element has been created.
/// </summary>
public DateTime Created { get; set; }
/// <summary>
/// The date and time when the content element has been modified last.
/// </summary>
public DateTime LastModified { get; set; }
/// <summary>
/// Indicates if the content element is publihed.
/// </summary>
public bool IsPublished { get; set; }
}
}