2018-09-11 10:52:21 -04:00
|
|
|
//
|
|
|
|
// Emoji.swift
|
|
|
|
// Pachyderm
|
|
|
|
//
|
|
|
|
// Created by Shadowfacts on 9/8/18.
|
|
|
|
// Copyright © 2018 Shadowfacts. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2020-04-11 15:33:39 -04:00
|
|
|
public class Emoji: Codable {
|
2019-02-09 21:12:31 -05:00
|
|
|
public let shortcode: String
|
|
|
|
public let url: URL
|
|
|
|
public let staticURL: URL
|
|
|
|
public let visibleInPicker: Bool
|
2018-09-11 10:52:21 -04:00
|
|
|
|
|
|
|
private enum CodingKeys: String, CodingKey {
|
|
|
|
case shortcode
|
|
|
|
case url
|
|
|
|
case staticURL = "static_url"
|
2019-02-09 21:12:31 -05:00
|
|
|
case visibleInPicker = "visible_in_picker"
|
2018-09-11 10:52:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
extension Emoji: CustomDebugStringConvertible {
|
|
|
|
public var debugDescription: String {
|
|
|
|
return ":\(shortcode):"
|
|
|
|
}
|
|
|
|
}
|