2018-08-27 14:21:09 +00:00
|
|
|
/**
|
2018-09-11 22:27:47 +00:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-08-27 14:21:09 +00:00
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include <folly/dynamic.h>
|
|
|
|
#include <fabric/events/primitives.h>
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
/*
|
2018-09-14 05:56:06 +00:00
|
|
|
* Represents ready-to-dispatch event object.
|
2018-08-27 14:21:09 +00:00
|
|
|
*/
|
|
|
|
class RawEvent {
|
|
|
|
|
|
|
|
public:
|
|
|
|
RawEvent(
|
2018-09-14 05:56:00 +00:00
|
|
|
std::string type,
|
|
|
|
folly::dynamic payload,
|
2018-09-14 05:56:06 +00:00
|
|
|
WeakEventTarget eventTarget
|
2018-08-27 14:21:09 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
const std::string type;
|
|
|
|
const folly::dynamic payload;
|
2018-09-14 05:56:00 +00:00
|
|
|
const WeakEventTarget eventTarget;
|
2018-08-27 14:21:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|