[charter] m1司/乘结构体

This commit is contained in:
wangmingjun
2023-02-24 15:19:46 +08:00
parent 4300185a27
commit ee1d9a04a7
2 changed files with 26 additions and 0 deletions

View File

@@ -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 //司机端是否同意
)

View File

@@ -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);
}
}
}