mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
5e8f1716fc
Reviewed By: bestander Differential Revision: D3324351 fbshipit-source-id: 41fa18a23c8661440a7deff244c93278f418e1d9
30 lines
520 B
C++
30 lines
520 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);
|
|
|
|
} }
|