mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-29 04:39:53 +00:00
* ios: started pending connections UI * ios: UI for pending contact connections complete * this has to be getter, or it would break JSON parsing * ios: update "initiated" status of connection
20 lines
610 B
Swift
20 lines
610 B
Swift
import UIKit
|
|
|
|
let s = """
|
|
{
|
|
"contactConnection" : {
|
|
"contactConnection" : {
|
|
"viaContactUri" : false,
|
|
"pccConnId" : 456,
|
|
"pccAgentConnId" : "cTdjbmR4ZzVzSmhEZHdzMQ==",
|
|
"pccConnStatus" : "new",
|
|
"updatedAt" : "2022-04-24T11:59:23.703162Z",
|
|
"createdAt" : "2022-04-24T11:59:23.703162Z"
|
|
}
|
|
}
|
|
}
|
|
"""
|
|
//let s = "\"2022-04-24T11:59:23.703162Z\""
|
|
let json = getJSONDecoder()
|
|
let d = s.data(using: .utf8)!
|
|
print (try! json.decode(ChatInfo.self, from: d))
|