Add project to update Patrons.yml from a csv file containing Patreon webhooks, add missing Patrons (#20942)
This commit is contained in:
19
Content.PatreonParser/Row.cs
Normal file
19
Content.PatreonParser/Row.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using CsvHelper.Configuration.Attributes;
|
||||
|
||||
namespace Content.PatreonParser;
|
||||
|
||||
// These need to be properties or CSVHelper will not find them
|
||||
public sealed class Row
|
||||
{
|
||||
[Name("Id"), Index(0)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Name("Trigger"), Index(1)]
|
||||
public string Trigger { get; set; } = default!;
|
||||
|
||||
[Name("Time"), Index(2)]
|
||||
public DateTime Time { get; set; }
|
||||
|
||||
[Name("Content"), Index(3)]
|
||||
public string ContentJson { get; set; } = default!;
|
||||
}
|
||||
Reference in New Issue
Block a user