Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
NFTBuyOffers.hpp
1//------------------------------------------------------------------------------
2/*
3 This file is part of clio: https://github.com/XRPLF/clio
4 Copyright (c) 2023, the clio developers.
5
6 Permission to use, copy, modify, and distribute this software for any
7 purpose with or without fee is hereby granted, provided that the above
8 copyright notice and this permission notice appear in all copies.
9
10 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17*/
18//==============================================================================
19
20#pragma once
21
22#include "data/BackendInterface.hpp"
23#include "rpc/common/Types.hpp"
24#include "rpc/handlers/NFTOffersCommon.hpp"
25
26#include <memory>
27
28namespace rpc {
29
36public:
42 NFTBuyOffersHandler(std::shared_ptr<BackendInterface> const& sharedPtrBackend)
43 : NFTOffersHandlerBase(sharedPtrBackend)
44 {
45 }
46
54 Result
55 process(Input input, Context const& ctx) const;
56};
57} // namespace rpc
The nft_buy_offers method returns a list of buy offers for a given NFToken object.
Definition NFTBuyOffers.hpp:35
Result process(Input input, Context const &ctx) const
Process the NFTBuyOffers command.
Definition NFTBuyOffers.cpp:32
NFTBuyOffersHandler(std::shared_ptr< BackendInterface > const &sharedPtrBackend)
Construct a new NFTBuyOffersHandler object.
Definition NFTBuyOffers.hpp:42
Contains common functionality for handling the nft_offers command.
Definition NFTOffersCommon.hpp:48
This namespace contains all the RPC logic and handlers.
Definition AMMHelpers.cpp:36
Context of an RPC call.
Definition Types.hpp:118
Result type used to return responses or error statuses to the Webserver subsystem.
Definition Types.hpp:129