修改事件id数据类型
This commit is contained in:
@@ -89,7 +89,7 @@ class MainService : Service() {
|
||||
params?.let {
|
||||
shareType = it.eventType
|
||||
fromType = it.fromType
|
||||
mainInfoId = it.parentId.toLong()
|
||||
mainInfoId = it.parentId
|
||||
mLongitude = it.lon
|
||||
mLatitude = it.lat
|
||||
Log.d(TAG, "onStartCommand shareType = $shareType --fromType = $fromType --mainInfoId = $mainInfoId -- mLongitude = $mLongitude --mLatitude = $mLatitude --it.duration = ${it.duration} ")
|
||||
|
||||
@@ -4,12 +4,12 @@ import android.os.Parcel
|
||||
import android.os.Parcelable
|
||||
import com.mogo.map.MogoLatLng
|
||||
|
||||
class UploadParams(val eventType: String, val fromType: String, val duration: Int, val parentId: String, val lat: Double, val lon: Double) : Parcelable {
|
||||
class UploadParams(val eventType: String, val fromType: String, val duration: Int, val parentId: Long, val lat: Double, val lon: Double) : Parcelable {
|
||||
constructor(parcel: Parcel) : this(
|
||||
parcel.readString()!!,
|
||||
parcel.readString()!!,
|
||||
parcel.readInt(),
|
||||
parcel.readString()!!,
|
||||
parcel.readLong(),
|
||||
parcel.readDouble(),
|
||||
parcel.readDouble()
|
||||
)
|
||||
@@ -18,7 +18,7 @@ class UploadParams(val eventType: String, val fromType: String, val duration: In
|
||||
parcel.writeString(eventType)
|
||||
parcel.writeString(fromType)
|
||||
parcel.writeInt(duration)
|
||||
parcel.writeString(parentId)
|
||||
parcel.writeLong(parentId)
|
||||
parcel.writeDouble(lat)
|
||||
parcel.writeDouble(lon)
|
||||
}
|
||||
|
||||
@@ -6,6 +6,6 @@ data class AccidentStrategyPushWrapper(
|
||||
*/
|
||||
val type: Int,
|
||||
/**
|
||||
* 触发点的poiType
|
||||
* 触发点的事件id
|
||||
*/
|
||||
val id: String, val lat: Double, val lon: Double)
|
||||
val id: Long, val lat: Double, val lon: Double)
|
||||
|
||||
@@ -27,7 +27,7 @@ public class TanluUploadParams {
|
||||
/**
|
||||
* 针对策略上报新增字段,用于车辆经过事故事件上报时,记录经过的事故事件id
|
||||
*/
|
||||
private String parentId = "";
|
||||
private long parentId = 0;
|
||||
/**
|
||||
* 针对策略上报新增字段,用于车辆经过事故事件上报时,记录触发围栏时的经纬度坐标
|
||||
*/
|
||||
@@ -55,7 +55,7 @@ public class TanluUploadParams {
|
||||
* @param parentId 经过事件id
|
||||
* @param location 触发围栏的坐标
|
||||
*/
|
||||
public TanluUploadParams(String eventType, String fromType, String parentId,
|
||||
public TanluUploadParams(String eventType, String fromType, long parentId,
|
||||
MogoLatLng location) {
|
||||
this.eventType = eventType;
|
||||
this.fromType = fromType;
|
||||
@@ -87,11 +87,11 @@ public class TanluUploadParams {
|
||||
this.duration = duration;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
public long getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
public void setParentId(long parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user