Tusker/Pachyderm/Model/Mention.swift

26 lines
508 B
Swift
Raw Normal View History

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
import WebURL
2018-09-11 14:52:21 +00:00
public class Mention: Codable {
public let url: WebURL
2018-09-11 14:52:21 +00:00
public let username: String
public let acct: String
/// 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
}
}