Skip to content

Class TodoDto

Namespace: MyApp.Application
Assembly: MyApp.Application.dll

Data-transfer shape of a todo item exposed by the application layer.

public sealed record TodoDto : IEquatable<TodoDto>

Inheritance

object ← TodoDto

Implements

IEquatable<TodoDto>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

TodoDto(Guid, string, bool)

Data-transfer shape of a todo item exposed by the application layer.

public TodoDto(Guid Id, string Title, bool IsCompleted)

Parameters

Id Guid

The stable identifier of the item.

Title string

The human-readable title of the item.

IsCompleted bool

A value indicating whether the item is done.

Properties

Id

The stable identifier of the item.

public Guid Id { get; init; }

Property Value

Guid

IsCompleted

A value indicating whether the item is done.

public bool IsCompleted { get; init; }

Property Value

bool

Title

The human-readable title of the item.

public string Title { get; init; }

Property Value

string