The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UploadSettings.cs 745B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Teknik.Utilities;
  9. namespace Teknik.Areas.Users.Models
  10. {
  11. public class UploadSettings
  12. {
  13. [Column("Encrypt")]
  14. public bool Encrypt { get; set; }
  15. [Column("ExpirationLength")]
  16. public int ExpirationLength { get; set; }
  17. [Column("ExpirationUnit")]
  18. public ExpirationUnit ExpirationUnit { get; set; }
  19. public UploadSettings()
  20. {
  21. Encrypt = false;
  22. ExpirationLength = 1;
  23. ExpirationUnit = ExpirationUnit.Never;
  24. }
  25. }
  26. }