Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Users Login(String userName,String password){
- String url = "http://192.168.0.12:58352/api/user/login?userName="+userName+"&password="+password;
- GsonRequest gsonRequest = new GsonRequest(Request.Method.GET,url,Users.class,null,null,new Response.Listener<Users>(){
- public <Users> onResponse(Users response) {
- return response;
- }
- },new Response.ErrorListener(){
- public void onErrorResponse(VolleyError error) {
- // Do whatever you want to do with error.getMessage();
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement