@@ -79,15 +79,15 @@ class OLINK_EXPORT IProtocolListener
7979 * @param methodId Unambiguously describes method in object for which invoke message was received.
8080 * @param args Arguments with which method should be invoked.
8181 */
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;
8383 /* *
8484 * Client side handler, handles invokeReply message.
8585 * @param requestId Identifier of a request with which the client requested method invocation.
8686 * should be used to deliver the result to a caller.
8787 * @param methodId Unambiguously describes method in object for which invokeReply message was received.
8888 * @param value Method's result value.
8989 */
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;
9191 /* *
9292 * Client side handler, handles signal message.
9393 * @param signalId Unambiguously describes signal in object for which signal message was received.
@@ -165,7 +165,7 @@ class OLINK_EXPORT Protocol : public LoggerBase
165165 * @param args Arguments with which method should be invoked.
166166 * @return Composed invokeMessage in json format.
167167 */
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);
169169 /* *
170170 * Method message.
171171 * Composes a response to a method invocation message for a methodId.
@@ -175,7 +175,7 @@ class OLINK_EXPORT Protocol : public LoggerBase
175175 * @param value Value that is an outcome of method invocation.
176176 * @return Composed invokeReplyMessage in json format.
177177 */
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);
179179 /* *
180180 * Signal message.
181181 * Composes a notification message for signal emitted for signalId.
0 commit comments