using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
///
/// Interface that define the methods of a data serializer.
///
public interface IDataManager
{
///
/// Save all the data in a file.
///
/// The data to save.
void Save(Dictionary> elements);
///
/// Load all the data from a file.
///
/// The data loaded.
Dictionary> Load();
///
/// Import an element to the collection of data.
///
/// The type of the element to impoert
/// The path containing the name of the file.
/// A pair where the key is the entry in the data and the value is the value to add on this entry.
public KeyValuePair Import(string pathToImport)
where T : class;
///
/// Export an element from the collection of data.
///
/// The type of the exported object.
/// The object to export.
/// The path containing the name of the file created.
public void Export(T obj, string pathToExport)
where T : class;
}
}