Skip to content

Commit

Permalink
fix: Added comments
Browse files Browse the repository at this point in the history
Added comments
  • Loading branch information
kdivya153 committed Jul 24, 2024
1 parent b5a9334 commit b4b494e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion languages/cpp/src/shared/src/Event/Event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ namespace FireboltSDK {
return result;
}

Firebolt::Error Event::Dispatch(const string& eventName, const WPEFramework::Core::ProxyType<WPEFramework::Core::JSONRPC::Message>& jsonResponse) /* override */

/* This function combines both internal and external event maps, and iterates over them to find the specified event.
If the event is found, it iterates over its associated callbacks, updating their states and executing them if applicable.
Callbacks in the REVOKED state are removed.
*/
Firebolt::Error Event::Dispatch(const string& eventName, const WPEFramework::Core::ProxyType<WPEFramework::Core::JSONRPC::Message>& jsonResponse) /* override */
{
string response = jsonResponse->Result.Value();
std::vector<EventMap*> eventMaps = {&_internalEventMap, &_externalEventMap};
Expand Down

0 comments on commit b4b494e

Please sign in to comment.