// // TwitterSymbol.swift // Account // // Created by Maurice Parker on 4/18/20. // Copyright © 2020 Ranchero Software, LLC. All rights reserved. // import Foundation struct TwitterSymbol: Codable, TwitterEntity { let name: String? let indices: [Int]? enum CodingKeys: String, CodingKey { case name = "name" case indices = "indices" } func renderAsHTML() -> String { var html = String() if let name = name { html += "$\(name)" } return html } }