mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• Cleaned up API structures to be more consistent • Moved OpenGroupAPI into SessionNetworkingKit • Moved PushNotificationAPI into SessionNetworkingKit • Renamed to OpenGroupAPI to SOGSAPI
23 lines
656 B
Swift
23 lines
656 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
extension Network.SOGS {
|
|
public struct PinnedMessage: Codable, Equatable {
|
|
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
|
|
}
|
|
}
|