예제 #1
0
 public TodoRepoServiceApi(HttpClient http, SiteState siteState)
 {
     TodoLists = new TodoRepoService <TodoList>(http, siteState, nameof(TodoLists));
     TodoTasks = new TodoRepoService <TodoTask>(http, siteState, nameof(TodoTasks));
     TodoUsers = new TodoRepoService <TodoUser>(http, siteState, nameof(TodoUsers));
     Steps     = new TodoRepoService <Step>(http, siteState, nameof(Steps));
 }
예제 #2
0
 public TodoItemsViewModel(ITodoRepoService repoService, int todoId, string title) : base(repoService, todoId)
 {
     AddEditText = "What would you like to call this item?";
     EmptyText   = "You haven't added any items to this list yet. Tap \"Add Item\" in the top right corner to add your first item.";
     ListTitle   = title;
 }