tanghao
2022-08-03 fd7255883cff7f3518a8e4efd97b1866ec38ae55
app/src/main/java/com/okgoincar/bean/websocket/HeartBean.java
@@ -1,7 +1,10 @@
package com.okgoincar.bean.websocket;
import android.view.View;
import com.okgoincar.netUtls.NetKitKt;
import com.okgoincar.utils.Cache.CacheKey;
public class HeartBean {
    private int code = 200;
@@ -44,10 +47,14 @@
    public static class DataBean{
        private int type = 2;
        private int userId = NetKitKt.getUserId();
        private String device = "carDevice";
        private String token;
        public DataBean() {
            type = 2;
            userId =  NetKitKt.getUserId();
            device = "carDevice";
            token = CacheKey.INSTANCE.getToken();
        }
    }