Advertisement
Guest User

Untitled

a guest
May 16th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public static Users Login(String userName,String password){
  2. String url = "http://192.168.0.12:58352/api/user/login?userName="+userName+"&password="+password;
  3. GsonRequest gsonRequest = new GsonRequest(Request.Method.GET,url,Users.class,null,null,new Response.Listener<Users>(){
  4. public <Users> onResponse(Users response) {
  5. return response;
  6. }
  7. },new Response.ErrorListener(){
  8. public void onErrorResponse(VolleyError error) {
  9. // Do whatever you want to do with error.getMessage();
  10. }
  11. });
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement