32 lines
1.2 KiB
C#
32 lines
1.2 KiB
C#
namespace OF_DL.Services;
|
|
|
|
public interface IDbService
|
|
{
|
|
Task AddMessage(string folder, long postId, string messageText, string price, bool isPaid, bool isArchived,
|
|
DateTime createdAt, long userId);
|
|
|
|
Task AddPost(string folder, long postId, string messageText, string price, bool isPaid, bool isArchived,
|
|
DateTime createdAt);
|
|
|
|
Task AddStory(string folder, long postId, string messageText, string price, bool isPaid, bool isArchived,
|
|
DateTime createdAt);
|
|
|
|
Task CreateDb(string folder);
|
|
|
|
Task CreateUsersDb(Dictionary<string, long> users);
|
|
|
|
Task CheckUsername(KeyValuePair<string, long> user, string path);
|
|
|
|
Task AddMedia(string folder, long mediaId, long postId, string link, string? directory, string? filename,
|
|
long? size, string apiType, string mediaType, bool preview, bool downloaded, DateTime? createdAt);
|
|
|
|
Task UpdateMedia(string folder, long mediaId, string apiType, string directory, string filename, long size,
|
|
bool downloaded, DateTime createdAt);
|
|
|
|
Task<long> GetStoredFileSize(string folder, long mediaId, string apiType);
|
|
|
|
Task<bool> CheckDownloaded(string folder, long mediaId, string apiType);
|
|
|
|
Task<DateTime?> GetMostRecentPostDate(string folder);
|
|
}
|