예제 #1
0
        public string GetModelosString(string id)
        {
            string modelos;

            url += id;
            var response = RequestWS.SendGetRequest(url);

            try
            {
                if (response.statusCode.Equals("OK"))
                {
                    modelos = response.data;
                }
                else
                {
                    modelos = "";
                }
            }
            catch (Exception e)
            {
                modelos = "";
            }

            return(modelos);
        }
예제 #2
0
        public string GetVersoesString(string id)
        {
            string versoes;

            url += id;
            var response = RequestWS.SendGetRequest(url);

            try
            {
                if (response.statusCode.Equals("OK"))
                {
                    versoes = response.data;
                }
                else
                {
                    versoes = "";
                }
            }
            catch (Exception e)
            {
                versoes = "";
            }

            return(versoes);
        }
예제 #3
0
        public string GetMarcasString()
        {
            string marcas;

            var response = RequestWS.SendGetRequest(url);

            try
            {
                if (response.statusCode.Equals("OK"))
                {
                    marcas = response.data;
                }
                else
                {
                    marcas = "";
                }
            }
            catch (Exception e)
            {
                marcas = "";
            }

            return(marcas);
        }