Turns all base Hint classes into data classes
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.vitorpamplona.quartz.nip01Core.hints.types
|
package com.vitorpamplona.quartz.nip01Core.hints.types
|
||||||
|
|
||||||
class AddressHint(
|
data class AddressHint(
|
||||||
val addressId: String,
|
val addressId: String,
|
||||||
var relay: String? = null,
|
var relay: String? = null,
|
||||||
) : Hint {
|
) : Hint {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ package com.vitorpamplona.quartz.nip01Core.hints.types
|
|||||||
import com.vitorpamplona.quartz.nip01Core.core.HexKey
|
import com.vitorpamplona.quartz.nip01Core.core.HexKey
|
||||||
import com.vitorpamplona.quartz.nip01Core.core.hexToByteArray
|
import com.vitorpamplona.quartz.nip01Core.core.hexToByteArray
|
||||||
|
|
||||||
class EventIdHint(
|
data class EventIdHint(
|
||||||
val eventId: HexKey,
|
val eventId: HexKey,
|
||||||
var relay: String? = null,
|
var relay: String? = null,
|
||||||
) : Hint {
|
) : Hint {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ package com.vitorpamplona.quartz.nip01Core.hints.types
|
|||||||
import com.vitorpamplona.quartz.nip01Core.core.HexKey
|
import com.vitorpamplona.quartz.nip01Core.core.HexKey
|
||||||
import com.vitorpamplona.quartz.nip01Core.core.hexToByteArray
|
import com.vitorpamplona.quartz.nip01Core.core.hexToByteArray
|
||||||
|
|
||||||
class PubKeyHint(
|
data class PubKeyHint(
|
||||||
val pubkey: HexKey,
|
val pubkey: HexKey,
|
||||||
var relay: String? = null,
|
var relay: String? = null,
|
||||||
) : Hint {
|
) : Hint {
|
||||||
|
|||||||
Reference in New Issue
Block a user