Nostrduino
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
nostr::NWCResponseCallbackBase Class Reference

#include <NWC.h>

Inheritance diagram for nostr::NWCResponseCallbackBase:
nostr::NWCResponseCallback< T >

Public Member Functions

virtual ~NWCResponseCallbackBase ()=default
 
virtual void call (Nip47 *nip47, SignedNostrEvent *ev)
 
bool accept (SignedNostrEvent *event)
 

Data Fields

std::function< void(NostrString, NostrString)> onErr = nullptr
 
unsigned long long timestampSeconds
 
unsigned int timeoutSeconds = NWC_DEFAULT_TIMEOUT
 
NostrString eventId
 
NostrString subId
 
unsigned int n = 1
 
bool requiresItemId = false
 
bool strictItemIds = false
 
std::vector< NostrStringexpectedItemIds
 
std::vector< NostrStringseenItemIds
 
std::vector< NostrStringseenEventIds
 

Constructor & Destructor Documentation

◆ ~NWCResponseCallbackBase()

virtual nostr::NWCResponseCallbackBase::~NWCResponseCallbackBase ( )
virtualdefault

Member Function Documentation

◆ accept()

bool NWCResponseCallbackBase::accept ( SignedNostrEvent event)

◆ call()

virtual void nostr::NWCResponseCallbackBase::call ( Nip47 nip47,
SignedNostrEvent ev 
)
inlinevirtual

Field Documentation

◆ eventId

NostrString nostr::NWCResponseCallbackBase::eventId

◆ expectedItemIds

std::vector<NostrString> nostr::NWCResponseCallbackBase::expectedItemIds

◆ n

unsigned int nostr::NWCResponseCallbackBase::n = 1

◆ onErr

std::function<void(NostrString, NostrString)> nostr::NWCResponseCallbackBase::onErr = nullptr

◆ requiresItemId

bool nostr::NWCResponseCallbackBase::requiresItemId = false

◆ seenEventIds

std::vector<NostrString> nostr::NWCResponseCallbackBase::seenEventIds

◆ seenItemIds

std::vector<NostrString> nostr::NWCResponseCallbackBase::seenItemIds

◆ strictItemIds

bool nostr::NWCResponseCallbackBase::strictItemIds = false

◆ subId

NostrString nostr::NWCResponseCallbackBase::subId

◆ timeoutSeconds

unsigned int nostr::NWCResponseCallbackBase::timeoutSeconds = NWC_DEFAULT_TIMEOUT

◆ timestampSeconds

unsigned long long nostr::NWCResponseCallbackBase::timestampSeconds

The documentation for this class was generated from the following files: