Vernissage/PixelfedKit/Sources/PixelfedKit/Entities/FilterStatus.swift

23 lines
594 B
Swift
Raw Normal View History

2023-01-22 13:49:19 +01:00
//
// https://mczachurski.dev
// Copyright © 2023 Marcin Czachurski and the repository contributors.
2023-03-28 10:35:38 +02:00
// Licensed under the Apache License 2.0.
2023-01-22 13:49:19 +01:00
//
import Foundation
/// Represents a status ID that, if matched, should cause the filter action to be taken.
public struct FilterStatus: Codable {
/// The ID of the FilterStatus in the database.
public let id: EntityId
/// The ID of the filtered Status in the database.
public let statusId: EntityId
private enum CodingKeys: String, CodingKey {
case id
case statusId = "status_id"
}
}