Web API for the bulk printing desktop application.

User.cs 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Runtime.Serialization;
  5. namespace MAX.Models
  6. {
  7. public class User
  8. {
  9. public enum UserLevel
  10. {
  11. Unknown = 0,
  12. Administrator = 4,
  13. CustomUser = 6
  14. }
  15. [DatabaseGenerated(DatabaseGeneratedOption.None)]
  16. public int Id { get; set; }
  17. [Required, MaxLength(50)]
  18. public string Username { get; set; }
  19. [Required, MaxLength(50)]
  20. public string FirstName { get; set; }
  21. [Required, MaxLength(50)]
  22. public string Surname { get; set; }
  23. [IgnoreDataMember]
  24. public int AccountId { get; set; }
  25. public Account Account { get; set; }
  26. public bool Enabled { get; set; }
  27. public UserLevel Level { get; set; }
  28. public int System { get; set; }
  29. public DateTimeOffset LastLogin { get; set; }
  30. public bool CanPrintOnline { get; set; }
  31. public decimal OnlinePrintValue { get; set; }
  32. public bool CanReprintOnline { get; set; }
  33. public decimal OnlineReprintValue { get; set; }
  34. public bool CanPrintOffline { get; set; }
  35. public decimal OfflinePrintValue { get; set; }
  36. public bool CanReprintOffline { get; set; }
  37. public decimal OfflineReprintValue { get; set; }
  38. public bool BulkExport { get; set; }
  39. public decimal BulkExportMaxValue { get; set; }
  40. public bool BulkOrder { get; set; }
  41. public decimal BulkOrderMaxValue { get; set; }
  42. public bool BulkViewPins { get; set; }
  43. }
  44. }