refact.
This commit is contained in:
6
Yavsc.Server/Settings/CompanyInfoSettings.cs
Normal file
6
Yavsc.Server/Settings/CompanyInfoSettings.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace Yavsc
|
||||
{
|
||||
public class CompanyInfoSettings {
|
||||
public string ApiKey { get; set; }
|
||||
}
|
||||
}
|
14
Yavsc.Server/Settings/EmailEntry.cs
Normal file
14
Yavsc.Server/Settings/EmailEntry.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using Yavsc.Models.Relationship;
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public class Contact
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string EMail { get; set; }
|
||||
|
||||
public PostalAddress PostalAddress { get; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
26
Yavsc.Server/Settings/GoogleAuthSettings.cs
Normal file
26
Yavsc.Server/Settings/GoogleAuthSettings.cs
Normal file
@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public class GoogleAuthSettings
|
||||
{
|
||||
public string ApiKey { get; set; }
|
||||
public string ClientSecret { get; set; }
|
||||
public string ClientId { get; set; }
|
||||
public string BrowserApiKey { get; set; }
|
||||
public class ServiceAccount
|
||||
{
|
||||
public string project_id { get; set; }
|
||||
public string private_key_id { get; set; }
|
||||
public string private_key { get; set; }
|
||||
public string client_email { get; set; }
|
||||
public string client_id { get; set; }
|
||||
public string auth_uri { get; set; }
|
||||
public string token_uri { get; set; }
|
||||
public string auth_provider_x509_cert_url { get; set; }
|
||||
public string client_x509_cert_url { get; set; }
|
||||
|
||||
}
|
||||
public ServiceAccount Account { get; set; }
|
||||
}
|
||||
}
|
21
Yavsc.Server/Settings/OAuth2AppSettings.cs
Normal file
21
Yavsc.Server/Settings/OAuth2AppSettings.cs
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
/// <summary>
|
||||
/// OAuth2 client application sensitive settings.
|
||||
/// </summary>
|
||||
public class OAuth2AppSettings {
|
||||
public string ClientId { get; set; }
|
||||
public string ClientSecret { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Facebook's class, so class
|
||||
/// </summary>
|
||||
public class FacebookOAuth2AppSettings : OAuth2AppSettings {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
57
Yavsc.Server/Settings/PayPalSettings.cs
Normal file
57
Yavsc.Server/Settings/PayPalSettings.cs
Normal file
@ -0,0 +1,57 @@
|
||||
namespace Yavsc
|
||||
{
|
||||
/// <summary>
|
||||
/// PayPal NV/SOAP API Credentials
|
||||
/// </summary>
|
||||
public class PayPalSettings {
|
||||
/// <summary>
|
||||
/// supported values: <c>sandbox</c> or <c>production</c>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Mode { get; set; }
|
||||
/// <summary>
|
||||
/// Client Id using the REST API
|
||||
/// </summary>
|
||||
public string ClientId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Client Secret using the REST API
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string ClientSecret { get; set; }
|
||||
/// <summary>
|
||||
/// Application Id using the REST API
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string ApplicationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Get it from your PayPal Business profile settings
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string MerchantAccountId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Merchant PayPal Classic Api user name
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string MerchantAccountUserName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PayPal Classic Api credentials model
|
||||
/// </summary>
|
||||
public class ClassicPayPalAccountApiCredential {
|
||||
public string Signature { get; set; }
|
||||
public string ApiUsername { get; set; }
|
||||
public string ApiPassword { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Live access is configured at:
|
||||
/// https://www.paypal.com/businessprofile/mytools/apiaccess
|
||||
/// </summary>
|
||||
public ClassicPayPalAccountApiCredential[] Accounts { get; set; }
|
||||
|
||||
}
|
||||
}
|
67
Yavsc.Server/Settings/SiteSettings.cs
Normal file
67
Yavsc.Server/Settings/SiteSettings.cs
Normal file
@ -0,0 +1,67 @@
|
||||
namespace Yavsc
|
||||
{
|
||||
public class SiteSettings
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Slogan { get; set; }
|
||||
|
||||
public string Banner { get; set; }
|
||||
public string FavIcon { get; set; }
|
||||
public string Icon { get; set; }
|
||||
/// <summary>
|
||||
/// Conceptually,
|
||||
/// This authorisation server only has this present site as unique audience.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Audience { get; set; }
|
||||
/// <summary>
|
||||
/// it's a very small company, with one domaine name only,
|
||||
/// so let it be the same as in the Audience field.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Authority { get; set; }
|
||||
/// <summary>
|
||||
/// Owner's email
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Contact Owner { get; set; }
|
||||
/// <summary>
|
||||
/// Administrator's email
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public Contact Admin { get; set; }
|
||||
|
||||
public string DataDir { get; set; }
|
||||
/// <summary>
|
||||
/// User's files directory
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public ThirdPartyFiles UserFiles { get; set; }
|
||||
|
||||
public string BusinessName { get; set; }
|
||||
public string Street { get; set; }
|
||||
public string PostalCode { get; set; }
|
||||
public string CountryCode { get; set; }
|
||||
|
||||
public string HomeViewName { get; set; }
|
||||
/// <summary>
|
||||
/// Specifies the directory where should be
|
||||
/// generated pdf files using pandoc
|
||||
/// </summary>
|
||||
/// <returns>The temporary directory to use</returns>
|
||||
public string TempDir { get; set; } = "Temp";
|
||||
|
||||
/// <summary>
|
||||
/// Only one performer will capture payments
|
||||
/// </summary>
|
||||
/// <returns>user capturing payments id</returns>
|
||||
public string OnlyOnePerformerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Only one activity will be supported
|
||||
/// </summary>
|
||||
/// <returns>the supported activity code</returns>
|
||||
public string OnlyOneActivityCode { get; set; }
|
||||
|
||||
}
|
||||
}
|
12
Yavsc.Server/Settings/SmtpSettings.cs
Normal file
12
Yavsc.Server/Settings/SmtpSettings.cs
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public class SmtpSettings
|
||||
{
|
||||
public string Host { get; set; }
|
||||
public int Port { get; set; }
|
||||
|
||||
public bool EnableSSL { get; set; }
|
||||
}
|
||||
|
||||
}
|
11
Yavsc.Server/Settings/ThirdPartyFiles.cs
Normal file
11
Yavsc.Server/Settings/ThirdPartyFiles.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace Yavsc
|
||||
{
|
||||
|
||||
public class ThirdPartyFiles {
|
||||
public string Avatars { get; set; }
|
||||
public long Quota { get; set; }
|
||||
public string Blog { get; set; }
|
||||
public string Bills { get; set; }
|
||||
|
||||
}
|
||||
}
|
10
Yavsc.Server/Settings/TwilioSettings.cs
Normal file
10
Yavsc.Server/Settings/TwilioSettings.cs
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
namespace Yavsc
|
||||
{
|
||||
public class TwilioSettings {
|
||||
public string AccountSID { get; set; }
|
||||
public string Token { get; set; }
|
||||
public string SMSAccountFrom { get; set; }
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user