filename templates added
This commit is contained in:
@@ -6,6 +6,9 @@ namespace VDownload.Services.Data.Configuration
|
||||
{
|
||||
public class CommonConfiguration
|
||||
{
|
||||
[ConfigurationKeyName("filename_templates")]
|
||||
public IEnumerable<FilenameTemplate> FilenameTemplates { get; set; }
|
||||
|
||||
[ConfigurationKeyName("path")]
|
||||
public Models.Path Path { get; set; }
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace VDownload.Services.Data.Configuration.Models
|
||||
{
|
||||
public class FilenameTemplate
|
||||
{
|
||||
[ConfigurationKeyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[ConfigurationKeyName("wildcard")]
|
||||
public string Wildcard { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user