31 lines
639 B
Swift
31 lines
639 B
Swift
//
|
|
// Emoji.swift
|
|
// Pachyderm
|
|
//
|
|
// Created by Shadowfacts on 9/8/18.
|
|
// Copyright © 2018 Shadowfacts. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public class Emoji: Decodable {
|
|
let shortcode: String
|
|
let url: URL
|
|
let staticURL: URL
|
|
// TODO: missing in pleroma
|
|
// let visibleInPicker: Bool
|
|
|
|
private enum CodingKeys: String, CodingKey {
|
|
case shortcode
|
|
case url
|
|
case staticURL = "static_url"
|
|
// case visibleInPicker = "visible_in_picker"
|
|
}
|
|
}
|
|
|
|
extension Emoji: CustomDebugStringConvertible {
|
|
public var debugDescription: String {
|
|
return ":\(shortcode):"
|
|
}
|
|
}
|