C# 클래스 MvvmFramework.Samples.Uwp.Repositories.TodoListItemsRepository

Represents a simple in-memory repository for the TodoListItems.
파일 보기 프로젝트 열기: lecode-official/mvvm-framework 1 사용 예제들

공개 메소드들

메소드 설명
CreateTodoListItem ( string title, string description ) : TodoListItem

Adds a new item to the todo list.

GetTodoListItem ( string id ) : TodoListItem

Gets the specified todo list item.

GetTodoListItems ( ) : IEnumerable

Gets all available todo list items.

MarkTodoListItemAsFinished ( string id ) : void

Marks the specified todo list item as finished.

RemoveTodoListItem ( string id ) : void

Removes the specified item from the todo list.

메소드 상세

CreateTodoListItem() 공개 메소드

Adds a new item to the todo list.
public CreateTodoListItem ( string title, string description ) : TodoListItem
title string The title of the new todo list item.
description string The description of the new todo list item.
리턴 MvvmFramework.Samples.Uwp.Models.TodoListItem

GetTodoListItem() 공개 메소드

Gets the specified todo list item.
public GetTodoListItem ( string id ) : TodoListItem
id string The ID of the todo list item that is to be retrieved.
리턴 MvvmFramework.Samples.Uwp.Models.TodoListItem

GetTodoListItems() 공개 메소드

Gets all available todo list items.
public GetTodoListItems ( ) : IEnumerable
리턴 IEnumerable

MarkTodoListItemAsFinished() 공개 메소드

Marks the specified todo list item as finished.
public MarkTodoListItemAsFinished ( string id ) : void
id string The ID of the todo list item that is to be marked as finished.
리턴 void

RemoveTodoListItem() 공개 메소드

Removes the specified item from the todo list.
public RemoveTodoListItem ( string id ) : void
id string The ID of the todo item that is to be removed.
리턴 void