Skip to content

Commit 2aa852d

Browse files
Christoffer-Cortesvasile-baluta
authored andcommitted
Added method to get template for event types and updated CHANGELOG (#7)
step version and add method to get templates for event types
1 parent d29d456 commit 2aa852d

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.0.7
2+
- Added method to get template for event types.
3+
4+
## 0.0.6
5+
- Added method to get supported event types.
6+
17
## 0.0.5
28
- Removed methods to get event family, type and domainId.
39

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ apply plugin: 'eclipse'
3434

3535
jar {
3636
baseName = 'remrem-protocol'
37-
version = '0.0.6'
37+
version = '0.0.7'
3838
}
3939

4040
group 'com.ericsson.eiffel.remrem'

src/main/java/com/ericsson/eiffel/remrem/protocol/MsgService.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import java.util.Collection;
1818

19+
import com.google.gson.JsonElement;
1920
import com.google.gson.JsonObject;
2021

2122
public interface MsgService {
@@ -45,11 +46,18 @@ public interface MsgService {
4546
*/
4647
String getEventType(JsonObject eiffelMessage);
4748

48-
/** Returns a collection of event types supported by this protocol.
49-
* Use iterator to iterate throught the collection.
49+
/**
50+
* Returns a collection of event types supported by this protocol.
51+
* Use iterator to iterate throught the collection.
5052
* @return collection of supported event types
5153
*/
5254
Collection<String> getSupportedEventTypes();
55+
56+
/**
57+
* Returns a template for the specified event type.
58+
* @return Json of template file
59+
*/
60+
JsonElement getEventTemplate(String eventType);
5361

5462
/**
5563
* Returns service name.

0 commit comments

Comments
 (0)