* Maintain FaKrosno api to handle Hangfire
* Added checking of missing EdiCo based on EdiCoTranslate and send email every 30 minutes * Added Admin Scheduler view
This commit is contained in:
11
FaKrosnoApi/Models/EmailSettingsModel.cs
Normal file
11
FaKrosnoApi/Models/EmailSettingsModel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace FaKrosnoApi.Models;
|
||||
|
||||
public class EmailSettingsModel
|
||||
{
|
||||
public string SmtpServer { get; set; }
|
||||
public int Port { get; set; }
|
||||
public string SenderEmail { get; set; }
|
||||
public string SenderPassword { get; set; }
|
||||
public string RecipientEmail { get; set; }
|
||||
public bool UseSsl { get; set; }
|
||||
}
|
||||
19
FaKrosnoApi/Models/JobModel.cs
Normal file
19
FaKrosnoApi/Models/JobModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Hangfire.Common;
|
||||
|
||||
namespace FaKrosnoApi.Models;
|
||||
|
||||
public class JobModel(
|
||||
string jobId,
|
||||
string cron,
|
||||
string path,
|
||||
DateTime? lastExecution,
|
||||
DateTime? nextExecution,
|
||||
Job jobDetails)
|
||||
{
|
||||
public string JobId { get; set; } = jobId;
|
||||
public string Cron { get; set; } = cron;
|
||||
public string Path { get; set; } = path;
|
||||
public DateTime? LastExecution { get; set; } = lastExecution;
|
||||
public DateTime? NextExecution { get; set; } = nextExecution;
|
||||
public Job JobDetails { get; set; } = jobDetails;
|
||||
}
|
||||
6
FaKrosnoApi/Models/JobSettingsModel.cs
Normal file
6
FaKrosnoApi/Models/JobSettingsModel.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace FaKrosnoApi.Models;
|
||||
|
||||
public class JobSettingsModel
|
||||
{
|
||||
public int QueryIntervalMinutes { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user