| 123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using Comal.Classes;
- using InABox.Mobile;
- using String = System.String;
- namespace PRS.Mobile
- {
- public class GPSTrackerShell : Shell<GPSTrackerModel, GPSTracker>
- {
- protected override void ConfigureColumns(ShellColumns<GPSTrackerModel, GPSTracker> columns)
- {
- columns
- .Map(nameof(DeviceID), x => x.DeviceID)
- .Map(nameof(Description), x => x.Description)
- .Map(nameof(Latitude), x => x.Location.Latitude)
- .Map(nameof(Longitude), x => x.Location.Longitude)
- .Map(nameof(Timestamp), x => x.Location.Timestamp)
- .Map(nameof(Address), x => x.Location.Address);
- }
- public String DeviceID => Get<String>();
- public String Description => Get<String>();
- public double Latitude => Get<double>();
- public double Longitude => Get<double>();
- public DateTime Timestamp => Get<DateTime>();
- public String Address => Get<String>();
- public InABox.Core.Location Location => new InABox.Core.Location()
- {
- Latitude = this.Latitude,
- Longitude = this.Longitude,
- Address = this.Address,
- Timestamp = this.Timestamp
- };
- }
- }
|