29 lines
721 B
C#
29 lines
721 B
C#
using ChaosBot.Attribute;
|
|
using ChaosBot.Lodestone;
|
|
|
|
namespace ChaosBot.Database.Entity
|
|
{
|
|
[DBEntity("LodestoneCharacter")]
|
|
public class LodestoneCharacter
|
|
{
|
|
[DBUnique]
|
|
[DBPrimaryKey]
|
|
public int id { get; }
|
|
public string name { get; }
|
|
public string avatar { get; }
|
|
|
|
public LodestoneCharacter(int id, string name, string avatar)
|
|
{
|
|
this.id = id;
|
|
this.name = name;
|
|
this.avatar = avatar;
|
|
}
|
|
|
|
public LodestoneCharacter(Character character)
|
|
{
|
|
this.id = (int)character.ID;
|
|
this.name = character.Name;
|
|
this.avatar = character.Avatar;
|
|
}
|
|
}
|
|
} |