2018-09-11 14:52:21 +00:00
|
|
|
//
|
|
|
|
// Mention.swift
|
|
|
|
// Pachyderm
|
|
|
|
//
|
|
|
|
// Created by Shadowfacts on 9/9/18.
|
|
|
|
// Copyright © 2018 Shadowfacts. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
2022-02-04 04:11:29 +00:00
|
|
|
import WebURL
|
2018-09-11 14:52:21 +00:00
|
|
|
|
2020-04-11 19:33:39 +00:00
|
|
|
public class Mention: Codable {
|
2022-02-04 04:11:29 +00:00
|
|
|
public let url: WebURL
|
2018-09-11 14:52:21 +00:00
|
|
|
public let username: String
|
|
|
|
public let acct: String
|
2021-11-23 02:50:02 +00:00
|
|
|
/// The instance-local ID of the user being mentioned.
|
2018-09-11 14:52:21 +00:00
|
|
|
public let id: String
|
|
|
|
|
|
|
|
private enum CodingKeys: String, CodingKey {
|
|
|
|
case url
|
|
|
|
case username
|
|
|
|
case acct
|
|
|
|
case id
|
|
|
|
}
|
|
|
|
}
|