File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
src/env/application/presenter/event/serialization Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2023. Smart Operating Block
3
+ *
4
+ * Use of this source code is governed by an MIT-style
5
+ * license that can be found in the LICENSE file or at
6
+ * https://opensource.org/licenses/MIT.
7
+ */
8
+
9
+ package application .presenter .event .serialization ;
10
+
11
+ import application .presenter .event .model .Event ;
12
+
13
+ /**
14
+ * Interface that models an event deserializer.
15
+ */
16
+ public interface EventDeserializer {
17
+ /**
18
+ * Deserialize an event from string.
19
+ * @param eventKey the key of the event.
20
+ * @param event the event in string format.
21
+ * @return the deserialized event.
22
+ */
23
+ Event <?> fromString (String eventKey , String event );
24
+ }
You can’t perform that action at this time.
0 commit comments