diff --git a/SharpRss/Core/IDbAccess.cs b/SharpRss/Core/IDbAccess.cs new file mode 100644 index 0000000..cb49276 --- /dev/null +++ b/SharpRss/Core/IDbAccess.cs @@ -0,0 +1,9 @@ + +namespace SharpRss.Core +{ + // Interface for implementing the database endpoints. + public interface IDbAccess + { + + } +} \ No newline at end of file diff --git a/SharpRss/FetchState.cs b/SharpRss/FetchState.cs new file mode 100644 index 0000000..2fe408c --- /dev/null +++ b/SharpRss/FetchState.cs @@ -0,0 +1,13 @@ +using System; + +namespace SharpRss +{ + // To keep a state at fetching item from the database. + public class FetchState + { + public int TakeAmount { get; set; } = 20; + public int TotalFetched { get; internal set; } + public string DbTableName { get; internal set; } = string.Empty; + public DateTime LastFetchTime { get; internal set; } + } +} \ No newline at end of file