18 lines
608 B
Swift
18 lines
608 B
Swift
import Foundation
|
|
|
|
enum XMPPAction: Codable {
|
|
case clientConnectionChanged(jid: String, state: ConnectionStatus)
|
|
case xmppMessageReceived(Message)
|
|
|
|
case xmppMessageSent(Message)
|
|
case xmppMessageSendFailed(msgId: String)
|
|
case xmppMessageSendSuccess(msgId: String)
|
|
|
|
case xmppSharingTryUpload(Message)
|
|
case xmppSharingUploadFailed(msgId: String, reason: String)
|
|
case xmppSharingUploadSuccess(msgId: String, attachmentRemotePath: String)
|
|
case serverFeaturesLoaded(jid: String, features: [String])
|
|
|
|
case xmppLoadArchivedMessages(jid: String, to: String?, fromDate: Date)
|
|
}
|