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
31 lines
925 B
Swift
31 lines
925 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
public extension Network.SOGS {
|
|
struct SendDirectMessageResponse: Codable, Equatable {
|
|
enum CodingKeys: String, CodingKey {
|
|
case id
|
|
case sender
|
|
case recipient
|
|
case posted = "posted_at"
|
|
case expires = "expires_at"
|
|
}
|
|
|
|
/// The unique integer message id
|
|
public let id: Int64
|
|
|
|
/// The (blinded) Session ID of the sender of the message
|
|
public let sender: String
|
|
|
|
/// The (blinded) Session ID of the recipient of the message
|
|
public let recipient: String
|
|
|
|
/// Unix timestamp when the message was received by SOGS
|
|
public let posted: TimeInterval
|
|
|
|
/// Unix timestamp when SOGS will expire and delete the message
|
|
public let expires: TimeInterval
|
|
}
|
|
}
|