Add Relay Detail View

Changelog-Added: Relay Detail View
Closes: #479
This commit is contained in:
Joel Klabo
2023-02-01 13:49:32 -08:00
committed by William Casarin
parent 852609ee30
commit 552402f2b5
5 changed files with 165 additions and 1 deletions

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