Page 248 - MDP2020-1
P. 248

|    인천전자마이스터고등학교  ·············································································································
            242



            <  회원가입  리퀘스트  >


            import  com.android.volley.AuthFailureError;

            import  com.android.volley.Response;
            import  com.android.volley.toolbox.StringRequest;


            import  java.lang.reflect.Method;

            import  java.util.HashMap;
            import  java.util.Map;


            public  class  RegisterRequest  extends  StringRequest  {


                    //서버  URL  설정(php  파일  연동)

                    final  static  private  String  URL  =  "http://mdphost.dothome.co.kr/Register.php";
                    private  Map<String,  String>  map;
                    //private  Map<String,  String>parameters;



                    public  RegisterRequest(String  userID,  String  userPassword,  String  userName,  String
            userCarNumber,  Response.Listener<String>  listener)  {
                            super(Method.POST,  URL,  listener,  null);


                            map  =  new  HashMap<>();
                            map.put("userID",  userID);

                            map.put("userPassword",  userPassword);
                            map.put("userName",  userName);
                            map.put("userCarNumber",  userCarNumber);
                    }



                    @Override
                    protected  Map<String,  String>getParams()  throws  AuthFailureError  {
                            return  map;
                    }
            }







            <  id  중복확인  >



            import  com.android.volley.AuthFailureError;
            import  com.android.volley.Request;
   243   244   245   246   247   248   249   250   251   252   253