[chore:] added IsGermany()-function

This commit is contained in:
2026-06-08 08:52:06 +02:00
parent a4c7132756
commit 2da822e0e7
+12 -1
View File
@@ -179,7 +179,18 @@ public class KasPerson
public string funktionad { get; set; }
public string used_plz { get; set; } = "";
public bool IsGermany()
{
var trimmedLand = (land ?? "").Trim();
var trimmedLowerLand = trimmedLand.ToLower();
var isGermany = trimmedLowerLand == "germany" || trimmedLowerLand == "ger" ||
trimmedLowerLand == "" || trimmedLowerLand == "de" ||
trimmedLowerLand == "deutschland";
return isGermany;
}
public static void SetUsedPLZ(int id, string plz)
{
foreach (var set in Settings._instance.addressSets.addresses)