mirror of
https://github.com/hmaxnl/SharpRSS.git
synced 2025-01-18 12:54:20 +01:00
Reworking db access to make it 'Future proof'.
This commit is contained in:
parent
abc45c9543
commit
e312ffc017
9
SharpRss/Core/IDbAccess.cs
Normal file
9
SharpRss/Core/IDbAccess.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
namespace SharpRss.Core
|
||||
{
|
||||
// Interface for implementing the database endpoints.
|
||||
public interface IDbAccess
|
||||
{
|
||||
|
||||
}
|
||||
}
|
13
SharpRss/FetchState.cs
Normal file
13
SharpRss/FetchState.cs
Normal file
|
@ -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; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user