Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
p x
SuZhouAvp
Commits
287cc41f
Commit
287cc41f
authored
Sep 11, 2025
by
p x
Browse files
修改感知物实体
parent
dbb8a2b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/sd/cavphmi/bean/mock/MockPerTarget.kt
deleted
100644 → 0
View file @
dbb8a2b1
package
com.sd.cavphmi.bean.mock
/**
* 感知目标物实体
****/
class
MockPerTarget
:
ArrayList
<
PerTargetItem
>()
data class
PerTargetItem
(
val
accessTime
:
Long
,
val
deviceCode
:
String
,
val
deviceId
:
String
,
val
id
:
String
,
val
intersectionCode
:
String
,
val
participants
:
List
<
Participant
>,
val
receiveTime
:
Long
,
val
reportTime
:
Long
)
data class
Participant
(
val
color
:
Int
,
val
gear
:
Int
,
val
heading
:
Double
,
val
latitude
:
Double
,
val
longitude
:
Double
,
val
ptcId
:
String
,
val
ptcType
:
String
,
val
speed
:
Double
)
\ No newline at end of file
app/src/main/java/com/sd/cavphmi/viewmodels/MockVM.kt
View file @
287cc41f
...
...
@@ -61,7 +61,7 @@ class MockVM @Inject constructor(
fun
onSubTargetMock
(
targetPre
:
MutableLiveData
<
PerTarget
>)
{
viewModelScope
.
launch
{
val
parts
=
mutableListOf
<
String
>()
FileIoUtils
.
getAssetMock
(
context
,
"mock/
onStartV2x
.txt"
,
parts
)
FileIoUtils
.
getAssetMock
(
context
,
"mock/
PerTarget
.txt"
,
parts
)
parts
.
forEach
{
str
->
delay
(
1000
)
var
bean
=
parseDataBean
(
str
,
PerTarget
::
class
.
java
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment