liugl
2021-01-14 40f9ac00ec5e4d6363450d1c8e0b0937cc0b1de4
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();
        }
    }