blob: 00c0c4f2b44b7b0e1e83dfd264046238445e3069 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
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
{
/// <summary>
/// Diagnostics frame data.
/// </summary>
public StartDiagnosticsResponse Data { get; set; }
/// <summary>
/// The calculated local date and time by the first diagnostics response and elapsed Milli.
/// </summary>
public DateTime DiagnosticsTime { get; set; }
/// <summary>
/// The reported elapsed time from the previous diagnostics frame (reported by the embedded device).
/// </summary>
public TimeSpan Delta { get; set; }
/// <summary>
/// The average interval of diagnostics frame rate reported by the embedded device.
/// </summary>
public uint Interval { get; set; }
/// <summary>
/// Creates a diagnostics package from this frame.
/// </summary>
/// <returns></returns>
public DiagnosticsPackage ToPackage()
{
return new DiagnosticsPackage(this);
}
}
}
|