MobilePhotoSettings.cs 694 B

1234567891011121314151617181920212223242526
  1. using InABox.Configuration;
  2. using InABox.Core;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace Comal.Classes
  7. {
  8. public class MobilePhotoSettings : IGlobalConfigurationSettings
  9. {
  10. [Caption("Maximum photo width (px)")]
  11. [IntegerEditor]
  12. [EditorSequence(1)]
  13. public int MaxPhotoWidth { get; set; } = 1024;
  14. [Caption("Maximum photo height (px)")]
  15. [IntegerEditor]
  16. [EditorSequence(2)]
  17. public int MaxPhotoHeight { get; set; } = 1024;
  18. [Caption("Photo compression amount (%)")]
  19. [IntegerEditor]
  20. [EditorSequence(3)]
  21. public int PhotoCompression { get; set; } = 60;
  22. }
  23. }