[charter] m1司/乘结构体
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.mogo.och.common.module.bean
|
||||
|
||||
/**
|
||||
* @author: wangmingjun
|
||||
* @date: 2023/2/24
|
||||
*/
|
||||
data class ChangeDestMsg(
|
||||
var lineId: Int, //线路id
|
||||
var lineName: String, //线路名称
|
||||
var startSiteId: Int, //当前站点
|
||||
var startSiteName: String,
|
||||
var destSiteId: Int, //目的地
|
||||
var destSiteName: String,
|
||||
var isConfirmed: Boolean = false //司机端是否同意
|
||||
)
|
||||
@@ -1,6 +1,9 @@
|
||||
package com.mogo.och.common.module.utils;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.mogo.commons.debug.DebugConfig;
|
||||
import com.mogo.eagle.core.utilcode.util.NetworkUtils;
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils;
|
||||
|
||||
public class ToastUtilsOch {
|
||||
@@ -30,4 +33,12 @@ public class ToastUtilsOch {
|
||||
lastClickTime = curClickTime;
|
||||
return flag;
|
||||
}
|
||||
|
||||
public static void toastRequestError(Context context,String failMsg){
|
||||
if (!NetworkUtils.isConnected(context)) {
|
||||
ToastUtils.showShort("网络异常,请稍后重试");
|
||||
}else {
|
||||
ToastUtils.showShort(failMsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user