📅  最后修改于: 2022-03-11 14:52:15.299000             🧑  作者: Mango
public class LoginRequest extends Request {
// ... other methods go here
private Map mParams;
public LoginRequest(String param1, String param2, Listener listener, ErrorListener errorListener) {
super(Method.POST, "http://test.url", errorListener);
mListener = listener;
mParams = new HashMap();
mParams.put("paramOne", param1);
mParams.put("paramTwo", param2);
}
@Override
public Map getParams() {
return mParams;
}
}