| | |
| | | package com.okgoincar.netUtls |
| | | |
| | | import android.content.Context |
| | | import android.content.Intent |
| | | import android.os.CountDownTimer |
| | | import android.os.Handler |
| | | import android.os.Looper |
| | |
| | | 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() |
| | | } |
| | | }) |
| | | } |
| | |
| | | }) |
| | | } |
| | | |
| | | fun sendAudio(context: Context,s: String?) { |
| | | val intent = Intent() |
| | | intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK |
| | | intent.action = "com.wisdom.gps.action.tts" |
| | | intent.putExtra("msg", s) |
| | | context.sendBroadcast(intent) |
| | | } |
| | | |
| | | |
| | | fun MySlabBaseActivity.callNet( |
| | | api: String, |
| | |
| | | |
| | | 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) |
| | | } |
| | | }) |
| | |
| | | override fun success(responseString: String?) { |
| | | clickAction(responseString) |
| | | } |
| | | |
| | | override fun onError(code: Int, msg: String?, resposeString: String?) { |
| | | super.onError(code, msg, resposeString) |
| | | } |
| | | }) |
| | | } |
| | | |