Exemplo n.º 1
0
        private async void MiscVersionBtn_Clicked(object sender, EventArgs e)
        {
            try
            {
                Log.Debug(Globals.LogTag, "GetMiscMeVersion async call start");
                MiscVersionInformation info = await modem.GetMiscMeVersion();

                if (info != null)
                {
                    Log.Debug(Globals.LogTag, "MiscVersionInformation data is -- ");
                    Log.Debug(Globals.LogTag, "Version = " + info.VersionMask.ToString());
                    Log.Debug(Globals.LogTag, "CalculationDate = " + info.CalculationDate);
                    Log.Debug(Globals.LogTag, "Erinam = " + info.EriNam.ToString());
                    Log.Debug(Globals.LogTag, "EriVersion = " + info.EriVersion);
                    Log.Debug(Globals.LogTag, "Hwversion = " + info.HwVersion);
                    Log.Debug(Globals.LogTag, "Swversion = " + info.SwVersion);
                    Log.Debug(Globals.LogTag, "ModelId = " + info.ModelId);
                    Log.Debug(Globals.LogTag, "Prlnam = " + info.PrlNam.ToString());
                    Log.Debug(Globals.LogTag, "Prlversion = " + info.PrlVersion);
                    Log.Debug(Globals.LogTag, "Productcode = " + info.ProductCode);
                }

                Log.Debug(Globals.LogTag, "GetMiscMeVersion async call end");
                Log.Debug(Globals.LogTag, "GetMiscMeVersion sync call start");
                MiscVersionInformation infosync = modem.MiscMeVersionSync;
                if (infosync != null)
                {
                    Log.Debug(Globals.LogTag, "MiscVersionInformation data is -- ");
                    Log.Debug(Globals.LogTag, "Version = " + infosync.VersionMask.ToString());
                    Log.Debug(Globals.LogTag, "CalculationDate = " + infosync.CalculationDate);
                    Log.Debug(Globals.LogTag, "Erinam = " + infosync.EriNam.ToString());
                    Log.Debug(Globals.LogTag, "EriVersion = " + infosync.EriVersion);
                    Log.Debug(Globals.LogTag, "Hwversion = " + infosync.HwVersion);
                    Log.Debug(Globals.LogTag, "Swversion = " + infosync.SwVersion);
                    Log.Debug(Globals.LogTag, "ModelId = " + infosync.ModelId);
                    Log.Debug(Globals.LogTag, "Prlnam = " + infosync.PrlNam.ToString());
                    Log.Debug(Globals.LogTag, "Prlversion = " + infosync.PrlVersion);
                    Log.Debug(Globals.LogTag, "Productcode = " + infosync.ProductCode);
                }

                Log.Debug(Globals.LogTag, "GetMiscMeVersion sync call end");
            }

            catch (Exception ex)
            {
                Log.Debug(Globals.LogTag, "GetMiscMeVersion ,exception = " + ex.ToString());
            }
        }