HobbyProject/Source Code/TeamHobby.HobbyProjectGenerator.Archive/Contracts/IDataSource.cs
Lunastra 1828f5acbb Added a main to test stuffs
Change return type for Datasource interface.
Add file compression method.
2021-12-04 18:23:15 -08:00

25 lines
677 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//namespace TeamHobby.HobbyProjectGenerator.Archive.Contracts
namespace TeamHobby.HobbyProjectGenerator.Archive
{
public interface IDataSource
{
// Method for reading data, return 0 for sucessful operation
Object ReadData(string cmd);
// Method for Writing data to a data source
bool WriteData(string cmd);
//Method for deleteing data from a data source, 0 for successful
bool DeleteData();
// Method for updating data from a data source, 0 for sucessful
bool UpdateData();
}
}