[feat:] added KasPersonError.GetString()
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user