about page finished
This commit is contained in:
@@ -6,6 +6,9 @@ namespace VDownload.Services.Data.Configuration
|
||||
{
|
||||
public class CommonConfiguration
|
||||
{
|
||||
[ConfigurationKeyName("about")]
|
||||
public About About { get; set; }
|
||||
|
||||
[ConfigurationKeyName("filename_templates")]
|
||||
public IEnumerable<FilenameTemplate> FilenameTemplates { get; set; }
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
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 About
|
||||
{
|
||||
[ConfigurationKeyName("repository_url")]
|
||||
public string RepositoryUrl { get; set; }
|
||||
|
||||
[ConfigurationKeyName("donation_url")]
|
||||
public string DonationUrl { get; set; }
|
||||
|
||||
[ConfigurationKeyName("developers")]
|
||||
public IEnumerable<Person> Developers { get; set; }
|
||||
|
||||
[ConfigurationKeyName("translation")]
|
||||
public IEnumerable<Language> Translation { 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 Language
|
||||
{
|
||||
[ConfigurationKeyName("code")]
|
||||
public string Code { get; set; }
|
||||
|
||||
[ConfigurationKeyName("translators")]
|
||||
public IEnumerable<Person> Translators { 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 Person
|
||||
{
|
||||
[ConfigurationKeyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[ConfigurationKeyName("url")]
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user