Nostrduino
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
nostr::NWCResponseCallback< T > Class Template Reference

#include <NWC.h>

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

Public Member Functions

void call (Nip47 *nip47, SignedNostrEvent *ev) override
 
- Public Member Functions inherited from nostr::NWCResponseCallbackBase
virtual ~NWCResponseCallbackBase ()=default
 
bool accept (SignedNostrEvent *event)
 

Data Fields

std::function< void(T)> onRes = nullptr
 
- Data Fields inherited from nostr::NWCResponseCallbackBase
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
 

Member Function Documentation

◆ call()

template<typename T >
void nostr::NWCResponseCallback< T >::call ( Nip47 nip47,
SignedNostrEvent ev 
)
inlineoverridevirtual

Reimplemented from nostr::NWCResponseCallbackBase.

Field Documentation

◆ onRes

template<typename T >
std::function<void(T)> nostr::NWCResponseCallback< T >::onRes = nullptr

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