2023-07-17 10:20:00 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace TaikoSoundEditor.Data
|
|
|
|
|
{
|
2023-07-28 21:28:05 +02:00
|
|
|
|
public class WordList
|
2023-07-17 10:20:00 +02:00
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("items")]
|
|
|
|
|
public List<Word> Items { get; set; } = new List<Word>();
|
|
|
|
|
|
|
|
|
|
public Word GetBySong(string song) => Items.Find(i => i.Key == $"song_{song}");
|
|
|
|
|
public Word GetBySongSub(string song) => Items.Find(i => i.Key == $"song_sub_{song}");
|
|
|
|
|
public Word GetBySongDetail(string song) => Items.Find(i => i.Key == $"song_detail_{song}");
|
|
|
|
|
}
|
|
|
|
|
}
|