Merge pull request #327 from believethehype/main

added message to LnZapEvent and interface
This commit is contained in:
Vitor Pamplona
2023-04-03 13:07:48 -04:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -36,6 +36,10 @@ class LnZapEvent(
null null
} }
} }
override fun message(): String {
return message
}
val message = content
override fun containedPost(): Event? = try { override fun containedPost(): Event? = try {
description()?.ifBlank { null }?.let { description()?.ifBlank { null }?.let {

View File

@@ -13,4 +13,6 @@ interface LnZapEventInterface : EventInterface {
fun amount(): BigDecimal? fun amount(): BigDecimal?
fun containedPost(): Event? fun containedPost(): Event?
fun message(): String
} }