2024-07-23 14:55:38 +00:00
|
|
|
import Foundation
|
|
|
|
|
2024-06-19 15:15:27 +00:00
|
|
|
enum XMPPAction: Codable {
|
|
|
|
case clientConnectionChanged(jid: String, state: ConnectionStatus)
|
2024-06-24 13:28:26 +00:00
|
|
|
case xmppMessageReceived(Message)
|
2024-06-26 10:26:04 +00:00
|
|
|
|
|
|
|
case xmppMessageSent(Message)
|
|
|
|
case xmppMessageSendFailed(msgId: String)
|
|
|
|
case xmppMessageSendSuccess(msgId: String)
|
2024-07-14 18:28:54 +00:00
|
|
|
|
2024-07-16 13:01:27 +00:00
|
|
|
case xmppSharingTryUpload(Message)
|
|
|
|
case xmppSharingUploadFailed(msgId: String, reason: String)
|
|
|
|
case xmppSharingUploadSuccess(msgId: String, attachmentRemotePath: String)
|
2024-07-22 12:02:33 +00:00
|
|
|
case serverFeaturesLoaded(jid: String, features: [String])
|
2024-07-23 14:55:38 +00:00
|
|
|
|
|
|
|
case xmppLoadArchivedMessages(jid: String, to: String?, fromDate: Date)
|
2024-06-19 15:15:27 +00:00
|
|
|
}
|