mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-23 07:19:50 -04:00
20 lines
410 B
C#
20 lines
410 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace DynamicBible.DataPreparation.Models;
|
|
|
|
public class Index : List<IndexItem>
|
|
{
|
|
public IndexItem? GetItem(string word)
|
|
{
|
|
return Find(i => i.Word == word);
|
|
}
|
|
}
|
|
|
|
public class IndexItem
|
|
{
|
|
[JsonPropertyName("w")]
|
|
public string Word { get; set; } = "";
|
|
|
|
[JsonPropertyName("r")]
|
|
public List<string> References { get; set; } = [];
|
|
} |