BluetoothGateShell.cs 1.0 KB

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using Comal.Classes;
  3. namespace comal.timesheets
  4. {
  5. public class BluetoothGateShell : Shell<BluetoothGateModel, JobTracker>
  6. {
  7. static BluetoothGateShell()
  8. {
  9. Columns.Map(nameof(ID), x => x.ID)
  10. .Map(nameof(JobID), x => x.JobLink.ID)
  11. .Map(nameof(JobNumber), x => x.JobLink.JobNumber)
  12. .Map(nameof(JobName), x => x.JobLink.Name)
  13. .Map(nameof(TrackerID), x => x.TrackerLink.ID)
  14. .Map(nameof(DeviceID), x => x.TrackerLink.DeviceID)
  15. .Map(nameof(Gate), x => x.Gate)
  16. .Map(nameof(IsJobSite), x => x.IsJobSite);
  17. }
  18. public Guid ID => Get<Guid>();
  19. public Guid JobID => Get<Guid>();
  20. public String JobNumber => Get<String>();
  21. public String JobName => Get<String>();
  22. public Guid TrackerID => Get<Guid>();
  23. public String DeviceID => Get<String>();
  24. public String Gate => Get<String>();
  25. public bool IsJobSite => Get<bool>();
  26. }
  27. }