Add method CheckTagValue

This commit is contained in:
lastvoidtemplar
2021-07-07 10:10:48 +03:00
parent adb17a1430
commit 4bb7251d06

View File

@@ -28,41 +28,9 @@ namespace BoerseDataConvert
} }
return xlmRecord; return xlmRecord;
} }
private string ConvertTag(string tag) private string CheckTagValue(string tag, string value)
{ {
switch (tag) return "";
{
default:
break;
}
}
static void CheckValues(string tag, string value)
{
switch (tag)
{
//case:
}
}
static void ChechValueRange(string rangeType, string value)
{
List<string> posibleValues = new List<string>();
switch (rangeType)
{
case "A01":
posibleValues = new List<string>() { "J", "N" };
break;
case "001":
posibleValues = new List<string>() { "WAR", "KO", "EXO","AZE","AKA","BSK","IND","Warrant", "Exotic products" };
break;
case "002":
posibleValues = new List<string>() { "BND", "BSK", "COM", "CUR", "FI", "FON" , "FUT", "IND", "KOB", "MUL" , "STO", "DER" , "ETC", "PRC" };
break;
case "001":
posibleValues = new List<string>() { "J", "N" };
break;
}
if (!posibleValues.Contains(value)) throw new ArgumentException("Invalid value!");
} }
} }
} }