Filter class

Filter is a JSON object that determines which events will be sent in a subscription.

Constructors

Filter({List<String>? ids, List<String>? authors, List<int>? kinds, List<String>? e, List<String>? p, List<String>? t, int? since, int? until, int? limit})
Default constructor.
Filter.fromJson(Map<String, dynamic> json)
Deserialize a filter from a JSON.

Properties

authors List<String>?
List of public keys or prefixes. Only events from authors with a public key in this list will be included.
getter/setter pair
e List<String>?
List of event IDs that are referenced in an "e" tag and should be included in the subscription.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ids List<String>?
List of event IDs or prefixes that the subscription should include.
getter/setter pair
kinds List<int>?
List of event kinds that should be included in the subscription.
getter/setter pair
limit int?
Maximum number of events to be returned in the initial query.
getter/setter pair
p List<String>?
List of public keys that are referenced in a "p" tag and should be included in the subscription.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
since int?
Timestamp indicating the oldest event that should be included in the subscription.
getter/setter pair
t List<String>?
List of tags that are referenced in a "t" tag and should be included in the subscription.
getter/setter pair
until int?
Timestamp indicating the newest event that should be included in the subscription.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialize a filter to JSON.
toString() String
A string representation of this object.
inherited

Operators

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