|
@@ -4,8 +4,9 @@
|
|
|
package kr.co.zumo.app.lifeplus.network.api;
|
|
package kr.co.zumo.app.lifeplus.network.api;
|
|
|
|
|
|
|
|
import io.reactivex.Single;
|
|
import io.reactivex.Single;
|
|
|
-import io.reactivex.schedulers.Schedulers;
|
|
|
|
|
-import kr.co.zumo.app.lifeplus.bean.LifeplusAuthBean;
|
|
|
|
|
|
|
+import kr.co.zumo.app.lifeplus.bean.api.LifeplusAPIBean;
|
|
|
|
|
+import kr.co.zumo.app.lifeplus.bean.api.MobileAuthorizationBean;
|
|
|
|
|
+import kr.co.zumo.app.lifeplus.bean.api.MobileAuthorizationConfirmBean;
|
|
|
import kr.co.zumo.app.lifeplus.config.NetworkConfig;
|
|
import kr.co.zumo.app.lifeplus.config.NetworkConfig;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -28,13 +29,22 @@ public class LifeplusAPIService extends RetrofitService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 핀 인증 api
|
|
|
|
|
|
|
+ * 모바일 인증 번호 요청
|
|
|
*
|
|
*
|
|
|
- * @param uuid 장치 고유 번호
|
|
|
|
|
- * @param encryptedPin 암호화된 핀
|
|
|
|
|
- * @return rx single with LifeplusAuthBean
|
|
|
|
|
|
|
+ * @param bean MobileAuthorizationBean
|
|
|
|
|
+ * @return rx single with LifeplusAPIBean
|
|
|
*/
|
|
*/
|
|
|
- public static Single<LifeplusAuthBean> verifyPin(String uuid, String encryptedPin) {
|
|
|
|
|
- return api(AUTH_URL).verifyPin(uuid, encryptedPin).subscribeOn(Schedulers.io());
|
|
|
|
|
|
|
+ public static Single<LifeplusAPIBean> requestMobileAuthorizationNumber(MobileAuthorizationBean bean) {
|
|
|
|
|
+ return api(AUTH_URL).requestMobileAuthorizationNumber(bean);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 인증 번호 확인 요청
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param bean MobileAuthorizationConfirmBean
|
|
|
|
|
+ * @return rx single with LifeplusAPIBean
|
|
|
|
|
+ */
|
|
|
|
|
+ public static Single<LifeplusAPIBean> requestMobileAuthorization(MobileAuthorizationConfirmBean bean) {
|
|
|
|
|
+ return api(AUTH_URL).requestMobileAuthorization(bean);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|