/* */ #include "RpcRequest.h" namespace aria2 { namespace rpc { RpcRequest::RpcRequest() : jsonRpc(false) {} RpcRequest::RpcRequest(const std::string& methodName, const SharedHandle& params) : methodName(methodName), params(params), jsonRpc(false) {} RpcRequest::RpcRequest(const std::string& methodName, const SharedHandle& params, const SharedHandle& id) : methodName(methodName), params(params), id(id), jsonRpc(false) {} RpcRequest::RpcRequest(const RpcRequest& c) : methodName(c.methodName), params(c.params), id(c.id), jsonRpc(c.jsonRpc) {} RpcRequest::~RpcRequest() {} RpcRequest& RpcRequest::operator=(const RpcRequest& c) { if(this != &c) { methodName = c.methodName; params = c.params; } return *this; } } // namespace rpc } // namespace aria2