mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
36 lines
807 B
Swift
36 lines
807 B
Swift
//
|
|
// Mastodon+Entity+Emoji.swift
|
|
//
|
|
//
|
|
// Created by MainasuK Cirno on 2021/1/28.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension Mastodon.Entity {
|
|
/// Emoji
|
|
///
|
|
/// - Since: 2.0.0
|
|
/// - Version: 3.3.0
|
|
/// # Last Update
|
|
/// 2021/1/28
|
|
/// # Reference
|
|
/// [Document](https://docs.joinmastodon.org/entities/emoji/)
|
|
public struct Emoji: Codable {
|
|
public let shortcode: String
|
|
public let url: String
|
|
public let staticURL: String
|
|
public let visibleInPicker: Bool
|
|
|
|
public let category: String?
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case shortcode
|
|
case url
|
|
case staticURL = "static_url"
|
|
case visibleInPicker = "visible_in_picker"
|
|
case category
|
|
}
|
|
}
|
|
}
|