mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-12 17:36:19 +01:00
29 lines
493 B
Swift
29 lines
493 B
Swift
|
//
|
||
|
// TwitterExtendedEntities.swift
|
||
|
// Account
|
||
|
//
|
||
|
// Created by Maurice Parker on 4/18/20.
|
||
|
// Copyright © 2020 Ranchero Software, LLC. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
struct TwitterExtendedEntities: Codable {
|
||
|
|
||
|
let medias: [TwitterMedia]?
|
||
|
|
||
|
enum CodingKeys: String, CodingKey {
|
||
|
case medias = "media"
|
||
|
}
|
||
|
|
||
|
func renderAsHTML() -> String {
|
||
|
var html = String()
|
||
|
if let medias = medias {
|
||
|
for media in medias {
|
||
|
html += media.renderAsHTML()
|
||
|
}
|
||
|
}
|
||
|
return html
|
||
|
}
|
||
|
}
|