2018-08-27 07:21:09 -07:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-08-27 07:21:09 -07:00
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "RawEvent.h"
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
RawEvent::RawEvent(
|
2018-09-13 22:56:00 -07:00
|
|
|
std::string type,
|
|
|
|
folly::dynamic payload,
|
2018-09-13 22:56:06 -07:00
|
|
|
WeakEventTarget eventTarget
|
2018-08-27 07:21:09 -07:00
|
|
|
):
|
2018-09-13 22:56:00 -07:00
|
|
|
type(std::move(type)),
|
|
|
|
payload(std::move(payload)),
|
2018-09-13 22:56:06 -07:00
|
|
|
eventTarget(std::move(eventTarget)) {}
|
2018-08-27 07:21:09 -07:00
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|