Web API for the bulk printing desktop application.

User.cs 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. public bool BulkReExport { get; set; }
  44. }
  45. }