Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

35 edit command #40

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 1 addition & 3 deletions BusyList/Handlers/NextHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ public void Run(NextCommand command)

foreach (var item in tasks)
{
Console.WriteLine($"Task id: {item.Id}");
Console.WriteLine($"Description: {item.Description}");
Console.WriteLine($"Status: {item.Status}");
Console.WriteLine(item.Print());
Console.WriteLine(SEPERATOR);
}
}
Expand Down
10 changes: 6 additions & 4 deletions BusyList/TaskItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,23 @@ public TaskItem(int id, string description, PriorityEnum priority = PriorityEnum
{
Id = id;
Description = description;
Status = status;
TaskStatus = status;
Priority = priority;
}
public int Id { get; }

public string Description { get; set; }

public TaskStatus Status { get; set; }
public TaskStatus TaskStatus { get; set; }
public PriorityEnum Priority { get; set; }
unbekanntunity marked this conversation as resolved.
Show resolved Hide resolved

public string Print()
{
var sb = new StringBuilder();

sb.AppendLine($"Id {Id}");
sb.AppendLine($"Description {Description}");
sb.AppendLine($"Status {Status}");
sb.AppendLine($"Priority {Priority}");
sb.AppendLine($"Status {TaskStatus}");

return sb.ToString();
}
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.