Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions Src/Core/F14/BusinessLogic/F14Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,17 @@ CancellationToken ct
Body = new()
{
TodoTasks = foundTodoTasks.Select(
model => new F14AppResponseModel.BodyModel.TodoTaskModel
taskDetail => new F14AppResponseModel.BodyModel.TodoTaskModel
{
Id = model.Id,
Content = model.Content,
DueDate = model.DueDate,
IsImportant = model.IsImportant,
IsInMyDay = model.IsInMyDay,
HasNote = model.HasNote,
HasSteps = model.HasSteps,
IsRecurring = model.IsRecurring,
Id = taskDetail.Id,
Content = taskDetail.Content,
IsCompleted = taskDetail.IsCompleted,
DueDate = taskDetail.DueDate,
IsImportant = taskDetail.IsImportant,
IsInMyDay = taskDetail.IsInMyDay,
HasNote = taskDetail.HasNote,
HasSteps = taskDetail.HasSteps,
IsRecurring = taskDetail.IsRecurring,
}
),
NextCursor = 0,
Expand All @@ -90,6 +91,7 @@ CancellationToken ct
{
Id = taskDetail.Id,
Content = taskDetail.Content,
IsCompleted = taskDetail.IsCompleted,
DueDate = taskDetail.DueDate,
IsImportant = taskDetail.IsImportant,
IsInMyDay = taskDetail.IsInMyDay,
Expand Down
1 change: 1 addition & 0 deletions Src/Core/F14/DataAccess/F14Repository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ CancellationToken ct
{
Id = entity.Id,
Content = entity.Content,
IsCompleted = entity.IsFinished,
DueDate = entity.DueDate,
IsImportant = entity.IsImportant,
IsInMyDay = entity.IsInMyDay,
Expand Down
19 changes: 10 additions & 9 deletions Src/Core/F14/Mapper/F14HttpResponseMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,17 @@ private static void Init()
Body = new()
{
TodoTasks = appResponse.Body.TodoTasks.Select(
model => new F14Response.BodyDto.TodoTaskDto
taskDetail => new F14Response.BodyDto.TodoTaskDto
{
Id = model.Id,
Content = model.Content,
DueDate = model.DueDate,
IsImportant = model.IsImportant,
IsInMyDay = model.IsInMyDay,
HasNote = model.HasNote,
HasSteps = model.HasSteps,
IsRecurring = model.IsRecurring,
Id = taskDetail.Id,
Content = taskDetail.Content,
IsCompleted = taskDetail.IsCompleted,
DueDate = taskDetail.DueDate,
IsImportant = taskDetail.IsImportant,
IsInMyDay = taskDetail.IsInMyDay,
HasNote = taskDetail.HasNote,
HasSteps = taskDetail.HasSteps,
IsRecurring = taskDetail.IsRecurring,
}
),
NextCursor = appResponse.Body.NextCursor,
Expand Down
2 changes: 2 additions & 0 deletions Src/Core/F14/Models/F14AppResponseModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public sealed class TodoTaskModel

public string Content { get; set; }

public bool IsCompleted { get; set; }

public DateTime DueDate { get; set; }

public bool IsImportant { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions Src/Core/F14/Models/F14TodoTaskModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ public sealed class F14TodoTaskModel

public string Content { get; set; }

public bool IsCompleted { get; set; }

public DateTime DueDate { get; set; }

public bool IsImportant { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions Src/Core/F14/Presentation/F14Response.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public sealed class TodoTaskDto

public string Content { get; set; }

public bool IsCompleted { get; set; }

public DateTime DueDate { get; set; }

public bool IsImportant { get; set; }
Expand Down
Loading