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