[SEBA-751} Add API for subscribe/unsubscribe and set frequency APIs
Change-Id: If224851b143dcb335918cbc06d66e5fdfd99bab1
diff --git a/proto/importer.proto b/proto/importer.proto
index d2cab50..6a582a2 100644
--- a/proto/importer.proto
+++ b/proto/importer.proto
@@ -12,10 +12,23 @@
uint32 frequency = 2;
}
+message EventList {
+ string event_ip_address = 1;
+ repeated string events = 2;
+}
+
service device_management {
- rpc SendDeviceInfo(DeviceInfo)
- returns (google.protobuf.Empty) {}
+ rpc SendDeviceInfo(DeviceInfo) returns (google.protobuf.Empty) {}
+
+ rpc SetFrequency(DeviceInfo) returns (google.protobuf.Empty) {}
+
+ rpc GetEventList(DeviceInfo) returns (EventList) {}
+
+ rpc SubsrcribeGivenEvents(EventList) returns (google.protobuf.Empty) {}
+
+ rpc UnSubsrcribeGivenEvents(EventList) returns (google.protobuf.Empty) {}
}
+