C# Class MvvmFramework.Samples.Uwp.Repositories.TodoListItemsRepository

Represents a simple in-memory repository for the TodoListItems.
Afficher le fichier Open project: lecode-official/mvvm-framework Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

CreateTodoListItem() public méthode

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.
Résultat MvvmFramework.Samples.Uwp.Models.TodoListItem

GetTodoListItem() public méthode

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.
Résultat MvvmFramework.Samples.Uwp.Models.TodoListItem

GetTodoListItems() public méthode

Gets all available todo list items.
public GetTodoListItems ( ) : IEnumerable
Résultat IEnumerable

MarkTodoListItemAsFinished() public méthode

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.
Résultat void

RemoveTodoListItem() public méthode

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.
Résultat void