5#ifndef FLUTTER_SHELL_PLATFORM_COMMON_JSON_METHOD_CODEC_H_
6#define FLUTTER_SHELL_PLATFORM_COMMON_JSON_METHOD_CODEC_H_
8#include <rapidjson/document.h>
10#include "flutter/shell/platform/common/client_wrapper/include/flutter/method_call.h"
11#include "flutter/shell/platform/common/client_wrapper/include/flutter/method_codec.h"
34 const size_t message_size)
const override;
42 const rapidjson::Document*
result)
const override;
46 const std::string& error_code,
47 const std::string& error_message,
48 const rapidjson::Document* error_details)
const override;
52 const uint8_t* response,
53 const size_t response_size,
~JsonMethodCodec()=default
static const JsonMethodCodec & GetInstance()
std::unique_ptr< std::vector< uint8_t > > EncodeMethodCallInternal(const MethodCall< rapidjson::Document > &method_call) const override
std::unique_ptr< MethodCall< rapidjson::Document > > DecodeMethodCallInternal(const uint8_t *message, const size_t message_size) const override
bool DecodeAndProcessResponseEnvelopeInternal(const uint8_t *response, const size_t response_size, MethodResult< rapidjson::Document > *result) const override
std::unique_ptr< std::vector< uint8_t > > EncodeErrorEnvelopeInternal(const std::string &error_code, const std::string &error_message, const rapidjson::Document *error_details) const override
JsonMethodCodec & operator=(JsonMethodCodec const &)=delete
std::unique_ptr< std::vector< uint8_t > > EncodeSuccessEnvelopeInternal(const rapidjson::Document *result) const override
JsonMethodCodec(JsonMethodCodec const &)=delete
JsonMethodCodec()=default
G_BEGIN_DECLS G_MODULE_EXPORT FlMethodCall * method_call