[feat:] added KasPersonError.GetString()

This commit is contained in:
Elias Fierke
2025-12-14 14:31:20 +01:00
parent 4ebd6bc407
commit eae0568ae0

View File

@@ -177,4 +177,14 @@ public class KasPersonError
//public int refsid { get; set; } //public int refsid { get; set; }
public List<AddressCheck.ErrorTypes> errors { get; set; } = new(); public List<AddressCheck.ErrorTypes> errors { get; set; } = new();
public List<AddressCheck.WarningTypes> warnings { get; set; } = new(); public List<AddressCheck.WarningTypes> warnings { get; set; } = new();
public string GetString()
{
var output = "";
foreach (var error in errors) output += error + ", ";
foreach (var warning in warnings) output += warning + ", ";
return output;
}
} }