using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using WorkerService.Process;
namespace WorkerService.Models
{
///
/// Database update configuration
///
public class DataSourceConfig
{
///
/// Name of source data system
///
public string SourceSystem { get; set; }
///
/// Name of source data set
///
public string SourceData { get; set; }
///
/// Name of table being updated
///
public string TableName { get; set; }
///
/// Whether or not the data source is enabled
///
public bool IsEnabled { get; set; }
///
/// Source data fetch function
///
[JsonConverter(typeof(FunctionConverter>))]
public Func> DataFetchFunction { get; set; }
///
/// Post data update processing action
///
[JsonConverter(typeof(ActionConverter))]
public Action PostProcessingAction { get; set; }
///
/// Data update entry for mass update typ
///
public DataUpdateConfig MassUpdateConfig { get; set; }
///
/// Data update entry for daily update typ
///
public DataUpdateConfig DailyUpdateConfig { get; set; }
///
/// Data update entry for hourly update typ
///
public DataUpdateConfig HourlyUpdateConfig { get; set; }
}
}