NetNewsWire/Frameworks/Account/FeedProvider/Reddit/RedditMedia.swift

36 lines
591 B
Swift
Raw Normal View History

2020-05-05 02:42:10 +02:00
//
// RedditMedia.swift
// Account
//
// Created by Maurice Parker on 5/4/20.
// Copyright © 2020 Ranchero Software, LLC. All rights reserved.
//
import Foundation
struct RedditMedia: Codable {
let video: RedditVideo?
enum CodingKeys: String, CodingKey {
case video = "reddit_video"
}
}
struct RedditVideo: Codable {
let fallbackURL: String?
let hlsURL: String?
2020-05-06 03:17:46 +02:00
let height: Int?
let width: Int?
2020-05-05 02:42:10 +02:00
enum CodingKeys: String, CodingKey {
case fallbackURL = "fallback_url"
case hlsURL = "hls_url"
2020-05-06 03:17:46 +02:00
case height = "height"
case width = "width"
2020-05-05 02:42:10 +02:00
}
}