using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.PMR.Diagnostics;
namespace Tango.FSE.Common.Diagnostics
{
public class DiagnosticsFrame
{
///
/// Diagnostics frame data.
///
public StartDiagnosticsResponse Data { get; set; }
///
/// The calculated local date and time by the first diagnostics response and elapsed Milli.
///
public DateTime DiagnosticsTime { get; set; }
///
/// The reported elapsed time from the previous diagnostics frame (reported by the embedded device).
///
public TimeSpan Delta { get; set; }
///
/// The average interval of diagnostics frame rate reported by the embedded device.
///
public uint Interval { get; set; }
///
/// Creates a diagnostics package from this frame.
///
///
public DiagnosticsPackage ToPackage()
{
return new DiagnosticsPackage(this);
}
}
}