@@ -79,15 +79,15 @@ class OLINK_EXPORT IProtocolListener
79
79
* @param methodId Unambiguously describes method in object for which invoke message was received.
80
80
* @param args Arguments with which method should be invoked.
81
81
*/
82
- virtual void handleInvoke (int requestId, const std::string& methodId, const nlohmann::json& args) = 0;
82
+ virtual void handleInvoke (unsigned int requestId, const std::string& methodId, const nlohmann::json& args) = 0;
83
83
/* *
84
84
* Client side handler, handles invokeReply message.
85
85
* @param requestId Identifier of a request with which the client requested method invocation.
86
86
* should be used to deliver the result to a caller.
87
87
* @param methodId Unambiguously describes method in object for which invokeReply message was received.
88
88
* @param value Method's result value.
89
89
*/
90
- virtual void handleInvokeReply (int requestId, const std::string& methodId, const nlohmann::json& value) = 0;
90
+ virtual void handleInvokeReply (unsigned int requestId, const std::string& methodId, const nlohmann::json& value) = 0;
91
91
/* *
92
92
* Client side handler, handles signal message.
93
93
* @param signalId Unambiguously describes signal in object for which signal message was received.
@@ -165,7 +165,7 @@ class OLINK_EXPORT Protocol : public LoggerBase
165
165
* @param args Arguments with which method should be invoked.
166
166
* @return Composed invokeMessage in json format.
167
167
*/
168
- static nlohmann::json invokeMessage (int requestId, const std::string& methodId, const nlohmann::json& args);
168
+ static nlohmann::json invokeMessage (unsigned int requestId, const std::string& methodId, const nlohmann::json& args);
169
169
/* *
170
170
* Method message.
171
171
* Composes a response to a method invocation message for a methodId.
@@ -175,7 +175,7 @@ class OLINK_EXPORT Protocol : public LoggerBase
175
175
* @param value Value that is an outcome of method invocation.
176
176
* @return Composed invokeReplyMessage in json format.
177
177
*/
178
- static nlohmann::json invokeReplyMessage (int requestId, const std::string& methodId, const nlohmann::json& value);
178
+ static nlohmann::json invokeReplyMessage (unsigned int requestId, const std::string& methodId, const nlohmann::json& value);
179
179
/* *
180
180
* Signal message.
181
181
* Composes a notification message for signal emitted for signalId.
0 commit comments