D2Multi/D2AccountPersisted.cs
2026-03-22 19:54:19 -07:00

35 lines
946 B
C#

using System.Collections.Generic;
using System.Xml.Serialization;
namespace D2Multi
{
/// <summary>XML shape only; encryption is applied in <see cref="D2AccountsXmlStore"/> when saving.</summary>
public class D2AccountPersisted
{
public string Name { get; set; }
public string Email { get; set; }
[XmlElement("EncryptedPassword")]
public string EncryptedPassword { get; set; }
[XmlElement("Character")]
public List<D2CharacterPersisted> Characters { get; set; }
}
public class D2CharacterPersisted
{
public string Name { get; set; }
public string Class { get; set; }
[XmlElement("Mission")]
public List<D2MissionPersisted> Missions { get; set; }
}
public class D2MissionPersisted
{
public D2Level Level { get; set; }
public bool A1_Enpowered { get; set; }
public bool A5_Socket { get; set; }
}
}