forked from usdot-jpo-ode/jpo-cvmanager
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9e9ccf
commit 2b4c1a5
Showing
6 changed files
with
128 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/models/Message.java
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/models/UploadAsn1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package us.dot.its.jpo.ode.api.models; | ||
|
||
public class UploadAsn1 { | ||
MessageType type; | ||
String asn1; | ||
} |
20 changes: 20 additions & 0 deletions
20
...isualizer-api/src/main/java/us/dot/its/jpo/ode/api/models/messages/BsmDecodedMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package us.dot.its.jpo.ode.api.models.messages; | ||
|
||
import us.dot.its.jpo.ode.api.models.MessageType; | ||
import us.dot.its.jpo.ode.model.OdeBsmData; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@ToString | ||
@Setter | ||
@Getter | ||
public class BsmDecodedMessage extends DecodedMessage{ | ||
public OdeBsmData data; | ||
|
||
public BsmDecodedMessage(OdeBsmData data, String asn1Text, MessageType type, String decodeErrors) { | ||
super(asn1Text, type, decodeErrors); | ||
this.data = data; | ||
} | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
...ctvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/models/messages/DecodedMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
|
||
package us.dot.its.jpo.ode.api.models.messages; | ||
|
||
import java.time.Instant; | ||
|
||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
import us.dot.its.jpo.ode.api.models.MessageType; | ||
|
||
@ToString | ||
@Setter | ||
@EqualsAndHashCode | ||
@Getter | ||
public class DecodedMessage { | ||
String asn1Text; | ||
long decodeTime; | ||
String decodeErrors; | ||
String type; | ||
|
||
public DecodedMessage(String asn1Text, MessageType type, String decodeErrors){ | ||
this.asn1Text = asn1Text; | ||
this.decodeTime = Instant.now().toEpochMilli(); | ||
this.decodeErrors = decodeErrors; | ||
this.type = type.name(); | ||
} | ||
} | ||
|
||
|
||
|