mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
22 lines
559 B
C#
22 lines
559 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using RadicadeServer.Extensions;
|
|
|
|
namespace RadicadeServer.RecNet.Accounts.Local
|
|
{
|
|
public class PlayerSettings
|
|
{
|
|
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
|
public long AccountId { get; set; }
|
|
public string Settings { get; set; } = "[]";
|
|
|
|
public List<Setting> DeserializeSettings()
|
|
{
|
|
if (string.IsNullOrWhiteSpace(Settings))
|
|
return new List<Setting>();
|
|
|
|
return Settings.FromJson<List<Setting>>() ?? new List<Setting>();
|
|
}
|
|
}
|
|
}
|