Add chapter 6 samples

This commit is contained in:
Alvin Ashcraft
2023-07-02 12:49:25 -04:00
parent 370d8a52b8
commit 7d9fe9fb0f
62 changed files with 2566 additions and 0 deletions
@@ -0,0 +1,19 @@
using MyMediaCollection.Enums;
using MyMediaCollection.Model;
using System.Collections.Generic;
namespace MyMediaCollection.Interfaces
{
public interface IDataService
{
IList<MediaItem> GetItems();
MediaItem GetItem(int id);
int AddItem(MediaItem item);
void UpdateItem(MediaItem item);
IList<ItemType> GetItemTypes();
Medium GetMedium(string name);
IList<Medium> GetMediums();
IList<Medium> GetMediums(ItemType itemType);
IList<LocationType> GetLocationTypes();
}
}
@@ -0,0 +1,12 @@
using System;
namespace MyMediaCollection.Interfaces
{
public interface INavigationService
{
string CurrentPage { get; }
void NavigateTo(string page);
void NavigateTo(string page, object parameter);
void GoBack();
}
}