📌  相关文章
📜  如何使用 volley-string-request-in-android - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:15.299000             🧑  作者: Mango

代码示例2
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;
    }
}