Esempio n. 1
0
        public static async Task <dynamic> DiagnosticResult(Aparelho ap, String guid)
        {
            //get the result
            String result = await GalaxyDiagnosticApi.GetDiagnosticResult(guid, ap);

            if (result == null)
            {
                return(null);
            }
            //parse the result
            dynamic content = await GalaxyDiagnosticService.DiagnosticFormatter(result.ToString());

            return(content);

            //var a = await GDApi.GetManufactureInfo(guid);
        }
Esempio n. 2
0
        public async Task StartDiagnostico()
        {
            GDApi = new GalaxyDiagnosticApi();

            List <Aparelho> aparelhos = (await SearchAparelhoSerial(false, false));

            if (aparelhos == null)
            {
                return;
            }

            Guid g = Guid.NewGuid();

            //var a = await GalaxyDiagnosticApi.CheckDiagnosticModel(aparelho);
            //var a = await WebApi.GetManufactureInfo("6dba7eea-6ef5-0880-6632-82ca8fbb7f0m");

            ProcessHelper.StartProcess("gdlauncher2:OpenForm?GD_REGION_CODE=AM" +
                                       "&GD_COMP_CODE=C820" +
                                       "&GD_ASC_CODE=6082028015" +
                                       "&GD_USER_ID=GRAVATAISHOP18" +
                                       "&GD_PROC_TYPE=TA" +
                                       "&GD_SESS_ID=" + g.ToString() +
                                       "&GD_SERIAL_NO=" + aparelhos[0].RN +
                                       "&GD_IMEI=" + aparelhos[0].Imei +
                                       "&GD_LATEST_VER=;;" +
                                       "&GD_SW_VER=99" +
                                       "&GD_SES_FLAG=S" +
                                       "&GD_TR_NO=" +
                                       "&GD_BASE_URL=http://gspngd6.samsungcsportal.com/" +
                                       "&GD_LANG_SAP=P" +
                                       "&GD_LANG_WEB=ptl" +
                                       "&GD_CUST_SYMP=FAL");

            var diags = await GalaxyDiagnosticService.LoadDiagnostics();

            diags.Add(new Diagnostico()
            {
                guid = g, imei = aparelhos[0].Imei
            });

            GalaxyDiagnosticService.SaveFile(diags);
        }