mirror of
https://github.com/skoelle/focusapp.git
synced 2026-09-17 20:10:25 +00:00
28 lines
634 B
C#
28 lines
634 B
C#
// Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de)
|
|
// Licensed under the MIT License. See LICENSE file in project root for details.
|
|
namespace FocusApp.Models;
|
|
|
|
public class CreateTaskDto
|
|
{
|
|
public string Title { get; set; } = string.Empty;
|
|
public string? Description { get; set; }
|
|
}
|
|
|
|
public class UpdateTaskDto
|
|
{
|
|
public string? Title { get; set; }
|
|
public string? Description { get; set; }
|
|
public int? Order { get; set; }
|
|
}
|
|
|
|
public class ReorderDto
|
|
{
|
|
public List<OrderItem> Orders { get; set; } = new();
|
|
}
|
|
|
|
public class OrderItem
|
|
{
|
|
public int Id { get; set; }
|
|
public int Order { get; set; }
|
|
}
|