Reworking db access to make it 'Future proof'.

This commit is contained in:
Max 2023-07-08 00:17:51 +02:00
parent abc45c9543
commit e312ffc017
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,9 @@
namespace SharpRss.Core
{
// Interface for implementing the database endpoints.
public interface IDbAccess
{
}
}

13
SharpRss/FetchState.cs Normal file
View 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; }
}
}