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

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

Public Methods

Method 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 method

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.
return MvvmFramework.Samples.Uwp.Models.TodoListItem

GetTodoListItem() public method

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.
return MvvmFramework.Samples.Uwp.Models.TodoListItem

GetTodoListItems() public method

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

MarkTodoListItemAsFinished() public method

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.
return void

RemoveTodoListItem() public method

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.
return void