C# Класс MvvmFramework.Samples.Uwp.Repositories.TodoListItemsRepository

Represents a simple in-memory repository for the TodoListItems.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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