1 |
202135f9
|
Pultak
|
using System.Text.Json.Serialization;
|
2 |
|
|
using Newtonsoft.Json;
|
3 |
|
|
|
4 |
|
|
namespace LDClient.network.data {
|
5 |
|
|
[JsonObject(MemberSerialization.OptIn)]
|
6 |
|
|
public class Payload {
|
7 |
|
|
|
8 |
|
|
[JsonPropertyName("username")]
|
9 |
|
|
public string UserName { get; set; }
|
10 |
|
|
|
11 |
|
|
[JsonPropertyName("hostname")]
|
12 |
|
|
public string HostName { get; set; }
|
13 |
|
|
|
14 |
|
|
[JsonPropertyName("timestamp")]
|
15 |
|
|
//[Newtonsoft.Json.JsonConverter(typeof(DateFormatConverter), "yyyy-MM-dd HH:mm:ss.ffffff")]
|
16 |
|
|
public DateTime TimeStamp { get; set; }
|
17 |
|
|
|
18 |
|
|
[JsonPropertyName("head_device")]
|
19 |
|
|
public DebuggerInfo HeadDevice { get; set; }
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
[JsonPropertyName("body_device")]
|
23 |
|
|
public DebuggerInfo BodyDevice { get; set; }
|
24 |
|
|
|
25 |
|
|
[JsonPropertyName("status")]
|
26 |
|
|
//[Newtonsoft.Json.JsonConverter(typeof(StringEnumConverter))]
|
27 |
|
|
public ConnectionStatus Status { get; set; }
|
28 |
|
|
}
|
29 |
|
|
}
|