mirror of https://github.com/Squidex/squidex.git
24 changed files with 248 additions and 120 deletions
@ -0,0 +1,33 @@ |
|||
// ==========================================================================
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|||
// All rights reserved. Licensed under the MIT license.
|
|||
// ==========================================================================
|
|||
|
|||
using System; |
|||
using NodaTime; |
|||
using Squidex.Domain.Apps.Core.Contents; |
|||
using Squidex.Infrastructure; |
|||
|
|||
namespace Squidex.Domain.Apps.Entities.Contents |
|||
{ |
|||
public sealed class ScheduleJob |
|||
{ |
|||
public Guid Id { get; } |
|||
|
|||
public Status Status { get; } |
|||
|
|||
public RefToken ScheduledBy { get; } |
|||
|
|||
public Instant DueTime { get; } |
|||
|
|||
public ScheduleJob(Guid id, Status status, RefToken scheduledBy, Instant dueTime) |
|||
{ |
|||
Id = id; |
|||
ScheduledBy = scheduledBy; |
|||
Status = status; |
|||
DueTime = dueTime; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
// ==========================================================================
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|||
// All rights reserved. Licensed under the MIT license.
|
|||
// ==========================================================================
|
|||
|
|||
using Squidex.Infrastructure.EventSourcing; |
|||
|
|||
namespace Squidex.Domain.Apps.Events.Contents |
|||
{ |
|||
[EventType(nameof(ContentSchedulingCancelled))] |
|||
public sealed class ContentSchedulingCancelled : ContentEvent |
|||
{ |
|||
} |
|||
} |
|||
@ -0,0 +1,37 @@ |
|||
// ==========================================================================
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|||
// All rights reserved. Licensed under the MIT license.
|
|||
// ==========================================================================
|
|||
|
|||
using System; |
|||
using NodaTime; |
|||
using Squidex.Domain.Apps.Core.Contents; |
|||
using Squidex.Infrastructure; |
|||
|
|||
namespace Squidex.Areas.Api.Controllers.Contents.Models |
|||
{ |
|||
public sealed class ScheduleJobDto |
|||
{ |
|||
/// <summary>
|
|||
/// The id of the schedule job.
|
|||
/// </summary>
|
|||
public Guid Id { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// The new status.
|
|||
/// </summary>
|
|||
public Status Status { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// The user who schedule the content.
|
|||
/// </summary>
|
|||
public RefToken ScheduledBy { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// The target date and time when the content should be scheduled.
|
|||
/// </summary>
|
|||
public Instant DueTime { get; set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue