-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCleaningRule.cs
43 lines (34 loc) · 1.05 KB
/
CleaningRule.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
// Generated by https://LastFM.ReaderCore.io
namespace LastFM.ReaderCore
{
using System;
using System.Collections.Generic;
using System.Globalization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
public partial class CleaningRule
{
[JsonProperty("rules")]
public Rules Rules { get; set; }
}
public partial class Rules
{
[JsonProperty("rule")]
public Rule[] Rule { get; set; }
}
public partial class Rule
{
[JsonProperty("sequence")]
public long Sequence { get; set; }
[JsonProperty("oldValue")]
public string OldValue { get; set; }
[JsonProperty("isRegEx")]
public bool IsRegEx { get; set; }
[JsonProperty("newValue", NullValueHandling = NullValueHandling.Ignore)]
public string NewValue { get; set; }
}
public partial class CleaningRule
{
public static CleaningRule FromJson(string json) => JsonConvert.DeserializeObject<CleaningRule>(json, LastFM.ReaderCore.Converter.Settings);
}
}