Exemple #1
0
        /// <summary>
        /// Obtiene datos en formato JSON.
        /// </summary>
        /// <returns>JSON.</returns>
        public string GetJSON()
        {
            // JSON
            string j = "{";

            // Añado datos
            j += JSONManager.GetFormat("nombre", Nombre) + ",";
            j += JSONManager.GetFormat("apellidos", Apellidos) + ",";
            j += JSONManager.GetFormat("telefono", Telefono) + ",";
            j += JSONManager.GetFormat("id_direccion", Direccion.ID_Direccion);

            // Cierro y devuelvo JSON
            return(j += "}");
        }
Exemple #2
0
        /// <summary>
        /// Obtiene datos en formato JSON.
        /// </summary>
        /// <returns>JSON.</returns>
        public string GetJSON()
        {
            // JSON
            string j = "{";

            // Añado datos
            j += JSONManager.GetFormat("id_cliente", Cliente.ID_Cliente) + ",";
            j += JSONManager.GetFormat("tipo", Tipo) + ",";
            j += JSONManager.GetFormat("id_direccion", Cliente.Direccion.ID_Direccion) + ",";
            j += JSONManager.GetFormat("urgente", Urgente) + ",";
            j += JSONManager.GetFormat("op2", OP2) + ",";
            j += JSONManager.GetFormat("notas", Notas);

            // Cierro y devuelvo JSON
            return(j += "}");
        }
Exemple #3
0
        /// <summary>
        /// Obtiene datos en formato JSON.
        /// </summary>
        /// <returns>JSON.</returns>
        public string GetJSON()
        {
            // JSON
            string j = "{";

            // Añado datos
            j += JSONManager.GetFormat("nombre_pais", Nombre_Pais) + ",";
            j += JSONManager.GetFormat("nombre_provincia", Nombre_Provincia) + ",";
            j += JSONManager.GetFormat("nombre_ciudad", Nombre_Ciudad) + ",";
            j += JSONManager.GetFormat("nombre", Nombre_Direccion) + ",";
            j += JSONManager.GetFormat("direccion", Calle) + ",";
            j += JSONManager.GetFormat("numero", Numero) + ",";
            j += JSONManager.GetFormat("lat", Coords.Latitud) + ",";
            j += JSONManager.GetFormat("lng", Coords.Longitud);

            // Cierro y devuelvo JSON
            return(j += "}");
        }