This repository was archived by the owner on Nov 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNewsMessageModel.cs
More file actions
51 lines (45 loc) · 1.77 KB
/
NewsMessageModel.cs
File metadata and controls
51 lines (45 loc) · 1.77 KB
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
42
43
44
45
46
47
48
49
50
51
namespace ClientCsharp
{
using System;
using System.Collections.Generic;
using System.Reflection;
using Newtonsoft.Json;
/// <summary>
/// The news message
/// </summary>
[Obfuscation(Feature = "preserve-name-binding")]
[Obfuscation(Feature = "preserve-identity")]
public class NewsMessageModel
{
/// <summary>
/// The culture of the message
/// </summary>
[JsonProperty(PropertyName = "cul", Required = Required.Always)]
public string Culture { get; set; }
/// <summary>
/// Headline of the message
/// </summary>
[JsonProperty(PropertyName = "head", Required = Required.Always)]
public string Headline { get; set; }
/// <summary>
/// [Optional] Body of the message
/// </summary>
[JsonProperty(PropertyName = "body", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public string Body { get; set; }
/// <summary>
/// Indication whether the body is in HTML format
/// </summary>
[JsonProperty(PropertyName = "fmt", Required = Required.Always)]
public string Format { get; set; }
/// <summary>
/// Date and time the publisher published the message
/// </summary>
[JsonProperty(PropertyName = "dt", Required = Required.Always)]
public DateTime PublishedDateTime { get; set; }
/// <summary>
/// [Optional] The instruments for which this news message contains news (if any)
/// </summary>
[JsonProperty(PropertyName = "iids", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public IEnumerable<string> Instruments { get; set; }
}
}