public static async Task <List <AvailableTrapApiResult> > ListAvailableTraps() { List <AvailableTrapApiResult> result = null; try { result = await HttpController.GetData <List <AvailableTrapApiResult> >(ApiMethods.AvailableTraps()); } catch (Exception) { result = null; } return(result); }
public static async Task <UserApiResult> Get() { UserApiResult result = null; try { result = await HttpController.GetData <UserApiResult>(ApiMethods.GetUser()); if (ResponseValidator.Validate(result)) { SaveUserLogged(result); } } catch (Exception) { result = null; } return(result); }