diff options
author | TrueDoctor <d-kobert@web.de> | 2018-09-29 23:59:42 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-09-29 23:59:42 +0200 |
commit | 632781d1adf54287ecfe7cbcbc17074e14a769b2 (patch) | |
tree | ed8d27601fa4ccfa5552af9ef104d1467a05d8e8 /DSACore/Models/Database/CharSpell.cs | |
parent | 33dc613fffad69c1c608e21eac6fcd3f2954ead8 (diff) |
added database methods
Diffstat (limited to 'DSACore/Models/Database/CharSpell.cs')
-rw-r--r-- | DSACore/Models/Database/CharSpell.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/DSACore/Models/Database/CharSpell.cs b/DSACore/Models/Database/CharSpell.cs index cdb5447..670488c 100644 --- a/DSACore/Models/Database/CharSpell.cs +++ b/DSACore/Models/Database/CharSpell.cs @@ -7,7 +7,13 @@ namespace DSACore.Models.Database { public class CharSpell { - private string representation { get; set; } - private int value { get; set; } + public CharSpell(string representation, int value) + { + this.representation = representation ?? throw new ArgumentNullException(nameof(representation)); + this.value = value; + } + + public string representation { get; set; } + public int value { get; set; } } } |