Requests constructor
Requests({
- required GlobalState globalState,
- required CacheRead cacheRead,
- required CacheWrite cacheWrite,
- required NetworkEngine networkEngine,
- required EventVerifier eventVerifier,
Creates a new Requests instance
globalState
The global state of the application
cacheRead
The cache reader for retrieving cached events
cacheWrite
The cache writer for storing events
networkEngine
The engine for handling network requests
eventVerifier
The verifier for validating Nostr events
Implementation
Requests({
required GlobalState globalState,
required CacheRead cacheRead,
required CacheWrite cacheWrite,
required NetworkEngine networkEngine,
required EventVerifier eventVerifier,
}) : _engine = networkEngine,
_cacheWrite = cacheWrite,
_cacheRead = cacheRead,
_globalState = globalState,
_eventVerifier = eventVerifier;