Billing: Add EditBillingData class

This commit is contained in:
lorenz.stechauner committed 2024-01-18 21:30:42 +01:00
1 parent 403e7723d2
commit cb541cb6e6
5 files changed
+112 -36

No files matched your search

+2 -2
View File
@@ -62,7 +62,7 @@ namespace Elwig.Helpers.Billing {
Mode = (mode == "elwig") ? CalculationMode.Elwig : CalculationMode.WgMaster;
}
public static JsonObject ParseJson(string json) {
protected static JsonObject ParseJson(string json) {
if (Schema == null) throw new InvalidOperationException("Schema has to be initialized first");
try {
var errors = Schema.Validate(json);
@@ -117,7 +117,7 @@ namespace Elwig.Helpers.Billing {
return dict;
}
public Dictionary<int, Curve> GetCurves() {
protected Dictionary<int, Curve> GetCurves() {
var dict = new Dictionary<int, Curve>();
var curves = GetCurvesEntry();
foreach (var c in curves) {