lib
jvm
lib
/
app.cash.nostrino.model
/
Downvote
Downvote
jvm
data
class
Downvote
(
val
eventId
:
ByteString
,
val
authorPubKey
:
PubKey
,
val
tags
:
List
<
Tag
>
=
listOf(EventTag(eventId), PubKeyTag(authorPubKey))
)
:
Reaction
Specialised reaction indicating a downvote.
Members
Constructors
Downvote
Link copied to clipboard
jvm
constructor
(
eventId
:
ByteString
,
authorPubKey
:
PubKey
,
tags
:
List
<
Tag
>
=
listOf(EventTag(eventId), PubKeyTag(authorPubKey))
)
Properties
author
Pub
Key
Link copied to clipboard
jvm
open
override
val
authorPubKey
:
PubKey
event
Id
Link copied to clipboard
jvm
open
override
val
eventId
:
ByteString
kind
Link copied to clipboard
jvm
open
override
val
kind
:
Int
tags
Link copied to clipboard
jvm
open
override
val
tags
:
List
<
Tag
>
Functions
as
Zap
Request
Link copied to clipboard
jvm
open
fun
asZapRequest
(
)
:
ZapRequest
?
sign
Link copied to clipboard
jvm
open
fun
sign
(
sec
:
SecKey
)
:
Event
to
Json
String
Link copied to clipboard
jvm
open
override
fun
toJsonString
(
)
:
String