30 lines
460 B
Swift
30 lines
460 B
Swift
|
//
|
||
|
// 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?
|
||
|
|
||
|
enum CodingKeys: String, CodingKey {
|
||
|
case fallbackURL = "fallback_url"
|
||
|
}
|
||
|
|
||
|
}
|