Refactoring

This commit is contained in:
Ali
2021-09-07 13:09:06 +04:00
parent f0f02dc4b9
commit 1141e09c1b
257 changed files with 1894 additions and 1720 deletions

View File

@@ -246,9 +246,9 @@ public class Serialization: NSObject, MTSerialization {
return { response -> MTDatacenterAddressListData? in
if let config = parser.parse(Buffer(data: response)) {
switch config {
case let .config(config):
case let .config(_, _, _, _, _, dcOptions, _, _, _, _, _, _,_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _):
var addressDict: [NSNumber: [Any]] = [:]
for option in config.dcOptions {
for option in dcOptions {
switch option {
case let .dcOption(flags, id, ipAddress, port, secret):
if addressDict[id as NSNumber] == nil {