Closed xooder closed 9 years ago
public void verificationCode(String tel, String code, Callback cb) { Map<String, String> param = new HashMap<>(); param.put("userTel", tel); param.put("smsCode", code); request("aam_user_reg_sms_validate_req", param, cb); }
public void sendCode(String tel, Callback cb) { Map<String, String> param = new HashMap<>(); param.put("userTel", tel); request("aam_user_reg_sms_apply_req", param, cb); }
Callback is already generic. I think you want to ask this question on StackOverflow with the 'retrofit' tag since it's a usage question and not a feature request or bug report.
public void verificationCode(String tel, String code, Callback cb) {
Map<String, String> param = new HashMap<>();
param.put("userTel", tel);
param.put("smsCode", code);
request("aam_user_reg_sms_validate_req", param, cb);
}
public void sendCode(String tel, Callback cb) {
Map<String, String> param = new HashMap<>();
param.put("userTel", tel);
request("aam_user_reg_sms_apply_req", param, cb);
}