Filter

data class Filter(val ids: Set<String>? = null, val since: Instant? = null, val authors: Set<String>? = null, val kinds: Set<Int>? = null, @Json(name = "#e") val eTags: Set<String>? = null, @Json(name = "#p") val pTags: Set<String>? = null, @Json(name = "#t") val tTags: Set<String>? = null, val limit: Int? = null)

A subscription filter, as defined in nip-01.

Constructors

Link copied to clipboard
constructor(ids: Set<String>? = null, since: Instant? = null, authors: Set<String>? = null, kinds: Set<Int>? = null, @Json(name = "#e") eTags: Set<String>? = null, @Json(name = "#p") pTags: Set<String>? = null, @Json(name = "#t") tTags: Set<String>? = null, limit: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val authors: Set<String>? = null
Link copied to clipboard
val eTags: Set<String>? = null
Link copied to clipboard
val ids: Set<String>? = null
Link copied to clipboard
val kinds: Set<Int>? = null
Link copied to clipboard
val limit: Int? = null
Link copied to clipboard
val pTags: Set<String>? = null
Link copied to clipboard
val since: Instant? = null
Link copied to clipboard
val tTags: Set<String>? = null

Functions

Link copied to clipboard
fun plusAuthors(vararg authors: PubKey): Filter

Add additional author public keys to this filter