12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace VaporRecoveryOnlineWatchHubApp.UnversalApiModels
- {
- public class VRBoardAlarmRecord
- {
- public DateTime? AlarmTime { get; set; } = DateTime.Now;
- public int SiteLevelNozzleId { get; set; }
- public VRBoardAlarmType AlarmType { get; set; }
- public string AlarmDescription { get; set; }
- public string AlarmDetails { get; set; }
- public int RecordCount { get; set; }
- public int AlarmCount { get; set; }
- public double AlarmPercentage { get; set; }
- public double AverageVaporLiquidRatio { get; set; }
- public double TimeInterval { get; set; }
- public int Acknowledged { get; set; } = 0;
- public override string ToString()
- {
- return GetType().GetProperties().Aggregate(string.Empty,
- (result, next) => result + $"{next.Name} : {(next.GetValue(this)?.ToString()) ?? string.Empty} ");
- }
- }
- }
|