-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWikiSection.cs
47 lines (35 loc) · 1.05 KB
/
WikiSection.cs
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
using System.Collections.Generic;
using System.Text.Json.Serialization;
class WikiSection
{
[JsonPropertyName("parse")]
public SectionParse SectionParse { get; set; }
}
class SectionParse
{
[JsonPropertyName("title")]
public string Title { get; set; }
[JsonPropertyName("pageid")]
public int PageId { get; set; }
[JsonPropertyName("sections")]
public List<Section> Sections { get; set; }
}
public class Section
{
[JsonPropertyName("toclevel")]
public int TocLevel { get; set; }
[JsonPropertyName("level")]
public string Level { get; set; }
[JsonPropertyName("line")]
public string Line { get; set; }
[JsonPropertyName("number")]
public string Number { get; set; }
[JsonPropertyName("index")]
public string Index { get; set; }
[JsonPropertyName("fromtitle")]
public string fromtitle { get; set; }
[JsonPropertyName("byteoffset")]
public int ByteOffSet { get; set; }
[JsonPropertyName("anchor")]
public string Anchor { get; set; }
}