// Created by Michael Kirk on 12/18/16. // Copyright © 2016 Open Whisper Systems. All rights reserved. import Foundation struct TurnServerInfo { let TAG = "[TurnServerInfo]" let password: String let username: String let urls: [String] init?(attributes: [String: AnyObject]) { if let passwordAttribute = (attributes["password"] as? String) { password = passwordAttribute } else { return nil } if let usernameAttribute = attributes["username"] as? String { username = usernameAttribute } else { return nil } if let urlsAttribute = attributes["urls"] as? [String] { urls = urlsAttribute } else { return nil } } }