Ejemplo n.º 1
0
        public Resultado <VVResultado_Usuario> GetByToken(string token)
        {
            var resultado = new Resultado <VVResultado_Usuario>();

            try
            {
                var url = baseUrl + "/v1/Usuario?token=" + token;
                var resultadoUsuario = RestCall.Call <VVResultado_Usuario>(url, RestSharp.Portable.Method.GET);
                if (!resultadoUsuario.Ok)
                {
                    resultado.Error = resultadoUsuario.Error;
                    return(resultado);
                }

                resultado.Return = resultadoUsuario.Return;
            }
            catch (Exception e)
            {
                resultado.SetError(e);
            }

            return(resultado);
        }
Ejemplo n.º 2
0
 public Result <ResultadoWS_Pregunta> Insertar(ComandoWS_PreguntaNueva comando)
 {
     return(RestCall.Call <ResultadoWS_Pregunta>(Request, comando));
 }
Ejemplo n.º 3
0
 public ResultadoServicio <string> IniciarSesion(ComandoApp_IniciarSesion comando)
 {
     return(RestCall.Call <string>(Request, comando));
 }
Ejemplo n.º 4
0
 public ResultadoServicio <string> IniciarSesion(ComandoApp_IniciarSesion comando)
 {
     return(RestCall.Call <string>("v1/Usuario/IniciarSesion", Method.PUT, comando));
 }
Ejemplo n.º 5
0
 public Result <ResultadoWS_MuniOnlineUsuario> GetUsuario()
 {
     return(RestCall.Call <ResultadoWS_MuniOnlineUsuario>(Request));
 }
Ejemplo n.º 6
0
 public Result <bool> ValidadoRenaper()
 {
     return(RestCall.Call <bool>(Request));
 }
Ejemplo n.º 7
0
 public Result <bool> CerrarSesion()
 {
     return(RestCall.Call <bool>(Request));
 }
Ejemplo n.º 8
0
 public Result <List <ResultadoWS_Aplicacion> > GetAplicacionesEnCascada()
 {
     return(RestCall.Call <List <ResultadoWS_Aplicacion> >(Request));
 }
Ejemplo n.º 9
0
 public ResultadoServicio <JObject> GetAppData()
 {
     return(RestCall.Call <JObject>(Request));
 }
Ejemplo n.º 10
0
 public ResultadoServicio <bool> AplicacionBloqueada()
 {
     return(RestCall.Call <bool>(Request));
 }
Ejemplo n.º 11
0
 public ResultadoServicio <bool> ValidarToken()
 {
     return(RestCall.Call <bool>(Request));
 }
Ejemplo n.º 12
0
 public ResultadoServicio <ResultadoApp_Usuario> GetUsuario()
 {
     return(RestCall.Call <ResultadoApp_Usuario>(Request));
 }
Ejemplo n.º 13
0
 public ResultadoServicio <int> GetIdUsuario()
 {
     return(RestCall.Call <int>(Request));
 }
Ejemplo n.º 14
0
 public ResultadoServicio <bool> CerrarSesion()
 {
     return(RestCall.Call <bool>(Request));
 }
Ejemplo n.º 15
0
 public Result <ResultadoWS_Pregunta> Actualizar(ComandoWS_PreguntaActualizar comando)
 {
     return(RestCall.Call <ResultadoWS_Pregunta>(Request, comando));
 }
Ejemplo n.º 16
0
 public Result <bool> Borrar(int id)
 {
     return(RestCall.Call <bool>(Request));
 }
Ejemplo n.º 17
0
 public Result <List <ResultadoWS_Tema> > GetTemas(int?idAplicacion = null)
 {
     return(RestCall.Call <List <ResultadoWS_Tema> >(Request));
 }
Ejemplo n.º 18
0
 public Result <string> IniciarSesion(v1.Entities.Comandos.ComandoWS_IniciarSesion comando)
 {
     return(RestCall.Call <string>(Request, comando));
 }
Ejemplo n.º 19
0
 public Result <List <ResultadoWS_Pregunta> > BuscarPublico(string busqueda)
 {
     return(RestCall.Call <List <ResultadoWS_Pregunta> >(Request));
 }
Ejemplo n.º 20
0
 public Result <bool> ValidarToken()
 {
     return(RestCall.Call <bool>(Request));
 }
Ejemplo n.º 21
0
 public Result <ResultadoWS_Pregunta> GetDetalle(int id)
 {
     return(RestCall.Call <ResultadoWS_Pregunta>(Request));
 }
Ejemplo n.º 22
0
 public Result <bool> EsOperador()
 {
     return(RestCall.Call <bool>(Request));
 }
Ejemplo n.º 23
0
 public Result <List <ResultadoWS_Pregunta> > GetAll()
 {
     return(RestCall.Call <List <ResultadoWS_Pregunta> >(Request));
 }
Ejemplo n.º 24
0
 public ResultadoServicio <object> GetCuitConsulta(string cuit)
 {
     return(RestCall.Call <object>(Request));
 }
Ejemplo n.º 25
0
 public Result <List <ResultadoWS_Pregunta> > Buscar(Consulta_PreguntaPaginada consulta)
 {
     return(RestCall.Call <List <ResultadoWS_Pregunta> >(Request, consulta));
 }
Ejemplo n.º 26
0
 public Result <List <ResultadoWS_Pregunta> > Top(int?cantidad = null, string app = null)
 {
     return(RestCall.Call <List <ResultadoWS_Pregunta> >(Request));
 }
Ejemplo n.º 27
0
 public ResultadoServicio <object> GetCuitConsulta(string cuit)
 {
     return(RestCall.Call <object>("v1/Tributario/GetCuitConsulta?cuit=" + cuit, Method.GET, null));
 }