mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 09:12:02 +00:00
1731598428
Reviewed By: mhorowitz Differential Revision: D3435575 fbshipit-source-id: 93b60a5d6890d21db6b3726784bc6fd868af5ba0
30 lines
549 B
C++
30 lines
549 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
#include <folly/dynamic.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
struct MethodCall {
|
|
int moduleId;
|
|
int methodId;
|
|
folly::dynamic arguments;
|
|
int callId;
|
|
|
|
MethodCall(int mod, int meth, folly::dynamic args, int cid)
|
|
: moduleId(mod)
|
|
, methodId(meth)
|
|
, arguments(std::move(args))
|
|
, callId(cid) {}
|
|
};
|
|
|
|
std::vector<MethodCall> parseMethodCalls(const std::string& json) throw(std::invalid_argument);
|
|
|
|
} }
|