[2.14.0] remove unuse code
This commit is contained in:
@@ -3,23 +3,16 @@ package com.mogo.eagle.core.function.v2x
|
||||
import android.content.Context
|
||||
import android.util.Log
|
||||
import com.mogo.cloud.passport.MoGoAiCloudClientConfig
|
||||
import com.mogo.commons.constants.HostConst
|
||||
import com.mogo.commons.constants.HostConst.DATA_CENTER_HOST
|
||||
import com.mogo.commons.debug.DebugConfig
|
||||
import com.mogo.eagle.core.data.BaseResponse
|
||||
import com.mogo.eagle.core.data.v2x.LineUploadData
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager
|
||||
import com.mogo.eagle.core.function.v2x.events.network.V2XRefreshModel
|
||||
import com.mogo.eagle.core.function.v2x.road.V2XEventServiceApi
|
||||
import com.mogo.eagle.core.network.MoGoRetrofitFactory
|
||||
import com.mogo.eagle.core.network.apiCall
|
||||
import com.mogo.eagle.core.network.request
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import io.reactivex.android.schedulers.AndroidSchedulers
|
||||
import io.reactivex.disposables.Disposable
|
||||
import io.reactivex.schedulers.Schedulers
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
class LineUploadManager private constructor(context: Context) : IMoGoAutopilotStatusListener {
|
||||
|
||||
@@ -50,19 +43,11 @@ class LineUploadManager private constructor(context: Context) : IMoGoAutopilotSt
|
||||
mContext = context
|
||||
}
|
||||
|
||||
fun init(){
|
||||
Log.d("emArrow","LineUploadManager addListener")
|
||||
fun init() {
|
||||
Log.d("emArrow", "LineUploadManager addListener")
|
||||
CallerAutoPilotStatusListenerManager.addListener(TAG, this)
|
||||
}
|
||||
|
||||
private fun getHost(): String {
|
||||
return when (DebugConfig.getNetMode()) {
|
||||
DebugConfig.NET_MODE_DEV, DebugConfig.NET_MODE_QA -> "http://dzt-test.zhidaozhixing.com/"
|
||||
DebugConfig.NET_MODE_RELEASE -> "http://dzt.zhidaozhixing.com/"
|
||||
else -> "http://dzt.zhidaozhixing.com/"
|
||||
}
|
||||
}
|
||||
|
||||
override fun onAutopilotRouteLineId(lineId: Long) {
|
||||
super.onAutopilotRouteLineId(lineId)
|
||||
if (lineId > 0) {
|
||||
@@ -77,9 +62,9 @@ class LineUploadManager private constructor(context: Context) : IMoGoAutopilotSt
|
||||
.uploadLineId(lineUploadData)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe ({ data ->
|
||||
.subscribe({ data ->
|
||||
Log.d("emArrow", " uploadLine : $data")
|
||||
},{
|
||||
}, {
|
||||
Log.d("emArrow", "e : ${it.message}")
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user