123456789101112131415161718192021222324252627282930 |
- using System;
- using Comal.Classes;
- namespace comal.timesheets
- {
- public class BluetoothGateShell : Shell<BluetoothGateModel, JobTracker>
- {
-
- static BluetoothGateShell()
- {
- Columns.Map(nameof(ID), x => x.ID)
- .Map(nameof(JobID), x => x.JobLink.ID)
- .Map(nameof(JobNumber), x => x.JobLink.JobNumber)
- .Map(nameof(JobName), x => x.JobLink.Name)
- .Map(nameof(TrackerID), x => x.TrackerLink.ID)
- .Map(nameof(DeviceID), x => x.TrackerLink.DeviceID)
- .Map(nameof(Gate), x => x.Gate)
- .Map(nameof(IsJobSite), x => x.IsJobSite);
- }
-
- public Guid ID => Get<Guid>();
- public Guid JobID => Get<Guid>();
- public String JobNumber => Get<String>();
- public String JobName => Get<String>();
- public Guid TrackerID => Get<Guid>();
- public String DeviceID => Get<String>();
- public String Gate => Get<String>();
- public bool IsJobSite => Get<bool>();
- }
- }
|