summaryrefslogtreecommitdiff
path: root/src/MVPtoMVVM/views/ITodoItemView.cs
blob: 4813ddd9f61b8170084d66211688b74fe458b5eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using MVPtoMVVM.domain;
using MVPtoMVVM.presenters;

namespace MVPtoMVVM.views
{
    public interface ITodoItemView
    {
        int Id { get; set; }
        string Description { get; set; }
        DateTime DueDate { get; set; }
        bool SaveButtonEnabled { get; set; }
        ITodoItemPresenter Presenter { get; }
        bool DescriptionHasValidationErrors { set; }
        bool DueDateHasValidationErrors { set; }
        bool IsDueSoon { set; }
        void Remove(int itemId);
    }
}