123456789101112131415161718192021222324 |
- using InABox.Core;
- namespace Comal.Classes
- {
- public class GPSBatteryFormulaModel : IExpressionModel<double>
- {
- public double BatteryLevel { get; set; }
- }
- [UserTracking(typeof(GPSTracker))]
- public class GPSTrackerType : Entity, IGPSTrackerType, IRemotable, IPersistent, ILicense<GPSTrackerLicense>, IExportable, IImportable
- {
- [TextBoxEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
- public string Description { get; set; }
- /// <summary>
- /// An expression (see <see cref="CoreExpression"/>) that should always return a percentage battery level remaining.
- /// <br/><br/>
- /// If null, fills the battery level on GPS Tracker Location with either a voltage or a battery level - whatever OEM returns.
- /// </summary>
- [ExpressionEditor(typeof(GPSBatteryFormulaModel), Visible = Visible.Optional)]
- public string? BatteryFormula { get; set; }
- }
- }
|