Vernissage/PixelfedKit/Sources/PixelfedKit/Entities/Mention.swift

24 lines
661 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// https://mczachurski.dev
// Copyright © 2022 Marcin Czachurski and the repository contributors.
// Licensed under the Apache License 2.0.
//
import Foundation
/// Mentions of users within the status content.
public struct Mention: Codable {
/// The account ID of the mentioned user.
public let id: String
/// The location of the mentioned users profile.
public let url: String
/// The username of the mentioned user.
public let username: String
/// The webfinger acct: URI of the mentioned user. Equivalent to username for local users, or username@domain for remote users.
public let acct: String
}