Lists class

Lists usecase for access to nip51 lists & sets

Constructors

Lists({required Requests requests, required CacheManager cacheManager, required RelayManager relayManager})
lists

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

broadcastAddNip51ListElement(int kind, String tag, String value, Iterable<String> broadcastRelays, EventSigner eventSigner, {bool private = false}) Future<Nip51List>
broadcastAddNip51ListRelay(int kind, String relayUrl, Iterable<String> broadcastRelays, EventSigner eventSigner, {bool private = false}) Future<Nip51List>
broadcastAddNip51SetRelay(String relayUrl, String name, Iterable<String> broadcastRelays, EventSigner eventSigner, {bool private = false}) Future<Nip51Set>
broadcastRemoveNip51ListElement(int kind, String tag, String value, Iterable<String> broadcastRelays, EventSigner eventSigner) Future<Nip51List?>
broadcastRemoveNip51Relay(int kind, String relayUrl, Iterable<String> broadcastRelays, EventSigner eventSigner, {List<String>? defaultRelaysIfEmpty}) Future<Nip51List?>
broadcastRemoveNip51SetRelay(String relayUrl, String name, Iterable<String> broadcastRelays, EventSigner eventSigner, {List<String>? defaultRelaysIfEmpty, bool private = false}) Future<Nip51Set?>
getNip51RelaySets(int kind, EventSigner signer, {bool forceRefresh = false}) Future<List<Nip51Set>?>
return list of all nip51 relay sets that match a given kind
getSingleNip51List(int kind, EventSigner signer, {bool forceRefresh = false, int timeout = 5}) Future<Nip51List?>
return nip51 list by given kind
getSingleNip51RelaySet(String name, EventSigner signer, {bool forceRefresh = false}) Future<Nip51Set?>
return single nip51 set that match given name
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited