-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSampleData.cs
More file actions
35 lines (33 loc) · 1000 Bytes
/
SampleData.cs
File metadata and controls
35 lines (33 loc) · 1000 Bytes
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
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace FredAPI
{
public class SampleData
{
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
public class Observation
{
public string realtime_start { get; set; }
public string realtime_end { get; set; }
public string date { get; set; }
public string value { get; set; }
}
public class Root
{
public string realtime_start { get; set; }
public string realtime_end { get; set; }
public string observation_start { get; set; }
public string observation_end { get; set; }
public string units { get; set; }
public int output_type { get; set; }
public string file_type { get; set; }
public string order_by { get; set; }
public string sort_order { get; set; }
public int count { get; set; }
public int offset { get; set; }
public int limit { get; set; }
public List<Observation> observations { get; set; }
}
}
}