liugl
2020-12-18 661a9d7a654c5e017e3ca7333cf8fe30e1f5931a
app/src/main/java/com/okgoincar/bean/websocket/HeartBean.java
@@ -1,7 +1,13 @@
package com.okgoincar.bean.websocket;
import android.view.View;
import com.okgoincar.base.MyApplication;
import com.okgoincar.netUtls.NetKitKt;
import com.okgoincar.utils.Cache.CacheKey;
import cn.sinata.xldutils.utils.Utils;
public class HeartBean {
    private int code = 200;
@@ -44,10 +50,16 @@
    public static class DataBean{
        private int type = 2;
        private int userId = NetKitKt.getUserId();
        private String device = "carDevice";
        private String token;
        private String version;
        public DataBean() {
            type = 2;
            userId =  NetKitKt.getUserId();
            device = "carDevice";
            version = Utils.getAppVersion(MyApplication.Companion.getAppContext());
            token = CacheKey.INSTANCE.getToken();
        }
    }