using System; using Comal.Classes; using InABox.Mobile; using String = System.String; namespace PRS.Mobile { public class GPSTrackerShell : Shell { protected override void ConfigureColumns(ShellColumns 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(); public String Description => Get(); public double Latitude => Get(); public double Longitude => Get(); public DateTime Timestamp => Get(); public String Address => Get(); public InABox.Core.Location Location => new InABox.Core.Location() { Latitude = this.Latitude, Longitude = this.Longitude, Address = this.Address, Timestamp = this.Timestamp }; } }