mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
645 B
Swift
23 lines
645 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
extension OpenGroupAPI {
|
|
public struct PinnedMessage: Codable {
|
|
enum CodingKeys: String, CodingKey {
|
|
case id
|
|
case pinnedAt = "pinned_at"
|
|
case pinnedBy = "pinned_by"
|
|
}
|
|
|
|
/// The numeric message id
|
|
let id: Int64
|
|
|
|
/// The unix timestamp when the message was pinned
|
|
let pinnedAt: TimeInterval
|
|
|
|
/// The session ID of the admin who pinned this message (which is not necessarily the same as the author of the message)
|
|
let pinnedBy: String
|
|
}
|
|
}
|