Add Relay Detail View

Changelog-Added: Relay Detail View
Closes: #479
This commit is contained in:
Joel Klabo authored and William Casarin committed 2023-02-06 13:21:42 -08:00
1 parent 852609ee30
commit 552402f2b5
5 files changed
+165 -1

No files matched your search

+10
View File
@@ -24,6 +24,16 @@ enum RelayFlags: Int {
case broken = 1
}
struct RelayNIP11: Codable {
var name = "No data available"
var description = "No data available"
var pubkey = "No data available"
var contact = "No data available"
var supported_nips: [Int] = []
var software = "No data available"
var version = "No data available"
}
class Relay: Identifiable {
let descriptor: RelayDescriptor
let connection: RelayConnection