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?
|
2020-05-07 04:40:20 +02:00
|
|
|
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"
|
2020-05-07 04:40:20 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
}
|