forked from shadowfacts/Tusker
33 lines
681 B
Swift
33 lines
681 B
Swift
|
//
|
||
|
// Emoji.swift
|
||
|
// Pachyderm
|
||
|
//
|
||
|
// Created by Shadowfacts on 9/8/18.
|
||
|
// Copyright © 2018 Shadowfacts. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
public class Emoji: Decodable, ClientModel {
|
||
|
var client: Client!
|
||
|
|
||
|
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):"
|
||
|
}
|
||
|
}
|