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.

UploadViewModel.cs 1011B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using Teknik.Utilities;
  6. using Teknik.ViewModels;
  7. namespace Teknik.Areas.Upload.ViewModels
  8. {
  9. public class UploadViewModel : ViewModelBase
  10. {
  11. public string CurrentSub { get; set; }
  12. public bool Encrypt { get; set; }
  13. public int ExpirationLength { get; set; }
  14. public ExpirationUnit ExpirationUnit { get; set; }
  15. public List<Vault.Models.Vault> Vaults { get; set; }
  16. public long MaxUploadSize { get; set; }
  17. public long MaxTotalSize { get; set; }
  18. public long CurrentTotalSize { get; set; }
  19. public UploadViewModel()
  20. {
  21. CurrentSub = string.Empty;
  22. Encrypt = false;
  23. ExpirationLength = 1;
  24. ExpirationUnit = ExpirationUnit.Never;
  25. Vaults = new List<Vault.Models.Vault>();
  26. MaxUploadSize = 0;
  27. MaxTotalSize = -1;
  28. CurrentTotalSize = 0;
  29. }
  30. }
  31. }