| | |
| | | clickAction(responseString) |
| | | } |
| | | |
| | | override fun onError(code: Int, msg: String?, resposeString: String?) { |
| | | super.onError(code, msg, resposeString) |
| | | if (showDialog) |
| | | dismissDialog() |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | |
| | | override fun success(responseString: String?) { |
| | | dismissDialog() |
| | | clickAction(responseString) |
| | | } |
| | | |
| | | override fun onError(code: Int, msg: String?, resposeString: String?) { |
| | | super.onError(code, msg, resposeString) |
| | | dismissDialog() |
| | | } |
| | | }) |
| | | } |
| | |
| | | |
| | | override fun onError(code: Int, msg: String?, resposeString: String?) { |
| | | super.onError(code, msg, resposeString) |
| | | dismissDialog() |
| | | clickActionError(msg) |
| | | } |
| | | }) |
| | |
| | | clickAction(responseString) |
| | | } |
| | | |
| | | override fun onError(code: Int, msg: String?, resposeString: String?) { |
| | | super.onError(code, msg, resposeString) |
| | | if (showDialog) |
| | | dismissDialog() |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | override fun onError(code: Int, msg: String?, resposeString: String?) { |
| | | dismissDialog() |
| | | clickActionError(resposeString) |
| | | } |
| | | }) |
| | |
| | | |
| | | override fun onError(code: Int, msg: String?, resposeString: String?) { |
| | | super.onError(code, msg, resposeString) |
| | | |
| | | dismissDialog() |
| | | clickActionError(msg) |
| | | } |
| | | }) |
| | |
| | | HttpManager.getInstance().post(api, map, object : MyObserver(context) { |
| | | override fun success(responseString: String?) { |
| | | clickAction(responseString) |
| | | } |
| | | |
| | | override fun onError(code: Int, msg: String?, resposeString: String?) { |
| | | super.onError(code, msg, resposeString) |
| | | } |
| | | }) |
| | | } |
| | |
| | | val timer by lazy { |
| | | object : CountDownTimer(timeDown, 1000) { |
| | | override fun onFinish() { |
| | | click(0) |
| | | } |
| | | |
| | | override fun onTick(millisUntilFinished: Long) { |