Add starter and complete projects for ch 7

This commit is contained in:
Alvin Ashcraft
2023-07-15 14:15:37 -04:00
parent 7d9fe9fb0f
commit 82078fd081
64 changed files with 2946 additions and 0 deletions
@@ -0,0 +1,22 @@
using MyMediaCollection.Enums;
using MyMediaCollection.Model;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace MyMediaCollection.Interfaces
{
public interface IDataService
{
Task<IList<MediaItem>> GetItemsAsync();
Task<MediaItem> GetItemAsync(int id);
Task<int> AddItemAsync(MediaItem item);
Task UpdateItemAsync(MediaItem item);
Task DeleteItemAsync(MediaItem item);
IList<ItemType> GetItemTypes();
Medium GetMedium(string name);
IList<Medium> GetMediums();
IList<Medium> GetMediums(ItemType itemType);
IList<LocationType> GetLocationTypes();
Task InitializeDataAsync();
}
}
@@ -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();
}
}
@@ -0,0 +1,7 @@
namespace MyMediaCollection.Interfaces
{
public interface IValidatable
{
void Validate(string memberName, object value);
}
}