Skip to content

Commit

Permalink
BinaryInform: hardcode some parameters to fetch EUX and EUY
Browse files Browse the repository at this point in the history
  • Loading branch information
corsicanu authored Dec 11, 2023
1 parent d168f73 commit 8174748
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Xml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,34 @@ public static string GetXmlBinaryInform(
xelement.Element((XName) "BINARY_NATURE").Element((XName) "Data").Value = Convert.ToInt32(BinaryNature).ToString();
//xelement.Element((XName) "LOGIC_CHECK").Element((XName) "Data").Value = Utility.GetLogicCheck(pdaver + "/" + cscver + "/" + phonever + "/" + dataver, Web.Nonce);
xelement.Element((XName) "LOGIC_CHECK").Element((XName) "Data").Value = Utility.GetLogicCheck(pdaver + "/" + cscver + "/" + phonever + "/" + dataver, Web.Nonce);

//hardcode EUX as Germany and EUY as Republic of Serbia
if (region == "EUX")
{
xelement.Add(
new XElement("DEVICE_AID_CODE",
new XElement("Data", region)),
new XElement("DEVICE_CC_CODE",
new XElement("Data", "DE")),
new XElement("MCC_NUM",
new XElement("Data", "262")),
new XElement("MNC_NUM",
new XElement("Data", "01"))
);
}
else if (region == "EUY")
{
xelement.Add(
new XElement("DEVICE_AID_CODE",
new XElement("Data", region)),
new XElement("DEVICE_CC_CODE",
new XElement("Data", "RS")),
new XElement("MCC_NUM",
new XElement("Data", "220")),
new XElement("MNC_NUM",
new XElement("Data", "01"))
);
}
return xdocument.ToString();
}

Expand Down

0 comments on commit 8174748

Please sign in to comment.