AppSettingsConfiguration.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MTWorkHR.Core.Global
  7. {
  8. public class AppSettingsConfiguration
  9. {
  10. public ConnectionStrings ConnectionStrings { get; set; }
  11. public JwtSettings JwtSettings { get; set; }
  12. public AttachmentSettings AttachmentSettings { get; set; }
  13. public EnvironmentSettings EnvironmentSettings { get; set; }
  14. public EmailSettings MailSettings { get; set; }
  15. public OTPSettings OTPSettings { get; set; }
  16. public CaptchaSettings CaptchaSettings { get; set; }
  17. public LoginSettings LoginSettings { get; set; }
  18. public IntegrationHttp IntegrationHttp { get; set; }
  19. }
  20. public class ConnectionStrings
  21. {
  22. public string MTWorkHRConnectionString { get; set; }
  23. }
  24. public class AttachmentSettings
  25. {
  26. public string TempAttachment { get; set; }
  27. public string ActualAttachment { get; set; }
  28. }
  29. public class EnvironmentSettings
  30. {
  31. public bool EnableSwagger { get; set; }
  32. }
  33. public class JwtSettings
  34. {
  35. public string Audience { get; set; }
  36. public string Issuer { get; set; }
  37. public string SecretKey { get; set; }
  38. public int DurationInMinutes { get; set; }
  39. }
  40. public class EmailSettings
  41. {
  42. public string ApiKey { get; set; }
  43. public string FromAddress { get; set; }
  44. public string FromName { get; set; }
  45. public string Password { get; set; }
  46. public string Host { get; set; }
  47. public string TemplatePath { get; set; }
  48. public int Port { get; set; }
  49. }
  50. public class OTPSettings
  51. {
  52. public int Length { get; set; }
  53. public int ExpirePeriodInMinutes { get; set; }
  54. public string MessageSubject { get; set; }
  55. public string MessageBody { get; set; }
  56. public bool SendEmail { get; set; }
  57. public bool SendSMS { get; set; }
  58. public bool AllowZeros { get; set; }
  59. }
  60. public class CaptchaSettings
  61. {
  62. public int Length { get; set; }
  63. public int ExpirePeriodInSeconds { get; set; }
  64. }
  65. public class LoginSettings
  66. {
  67. public int MaxFailedAccessAttempts { get; set; }
  68. public int DefaultLockoutTimeSpanInDays { get; set; }
  69. }
  70. public class IntegrationHttp
  71. {
  72. public Financial Financial { get; set; }
  73. }
  74. public class Financial
  75. {
  76. public string BaseUrl { get; set; }
  77. public bool IsIntegrated { get; set; }
  78. //public JournalVoucher JournalVoucher { get; set; }
  79. public Account Account { get; set; }
  80. }
  81. //public class JournalVoucher
  82. //{
  83. // public string CreateAutoVoucher { get; set; }
  84. // public string DeleteVoucher { get; set; }
  85. // public string CreateExgratiaVoucher { get; set; }
  86. // public string CreateLoungeVoucher { get; set; }
  87. //}
  88. public class Account
  89. {
  90. public string CreateAccount { get; set; }
  91. public string DeleteAccount { get; set; }
  92. }
  93. }