DocumentShell.cs 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using InABox.Core;
  3. using InABox.Mobile;
  4. namespace PRS.Mobile
  5. {
  6. public class DocumentShell : Shell<DocumentModel,Document>
  7. {
  8. protected override void ConfigureColumns(ShellColumns<DocumentModel, Document> columns)
  9. {
  10. columns
  11. .Map(nameof(FileName), x => x.FileName)
  12. .Map(nameof(Data), x => x.Data)
  13. .Map(nameof(CRC), x => x.CRC)
  14. .Map(nameof(TimeStamp), x => x.TimeStamp);
  15. }
  16. public string FileName
  17. {
  18. get => Get<string>();
  19. set => Set(value);
  20. }
  21. public byte[] Data
  22. {
  23. get => Get<byte[]>();
  24. set => Set(value);
  25. }
  26. public string CRC
  27. {
  28. get => Get<string>();
  29. set => Set(value);
  30. }
  31. public DateTime TimeStamp
  32. {
  33. get => Get<DateTime>();
  34. set => Set(value);
  35. }
  36. }
  37. }