ReceivedNostrEvent class
Constructors
ReceivedNostrEvent.new ({required String subscriptionId , required String content , required DateTime createdAt , required String id , required int kind , required String ? ots , required String pubkey , required String sig , required List <List <String > > tags })
ReceivedNostrEvent.deserialized (String data )
This represents a nostr event that is received from the relays,
it takes directly the relay message which is serialized, and handles all internally
factory
Properties
content
→ String
The content of the event.
final inherited
createdAt
→ DateTime
The creation date of the event.
final inherited
hashCode
→ int
The hash code for this object.
no setter inherited
id
→ String
The id of the event.
final inherited
kind
→ int
The kind of the event.
final inherited
ots
→ String ?
The ots of the event.
final inherited
props
→ List <Object ? >
The list of properties that will be used to determine whether
two instances are equal.
no setter inherited
pubkey
→ String
The public key of the event creator.
final inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
sig
→ String
The signature of the event.
final inherited
stringify
→ bool ?
If set to true
, the toString
method will be overridden to output
this instance's props
.
no setter inherited
subscriptionId
→ String
The subscription id of the event
This is meant for events that are got from the relays, and not for events that are created by you.
final
tags
→ List <List <String > >
The tags of the event.
final inherited